Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 209.9 kB / 24.49 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1737/0.1737, allocations: 38.53 MB / 353.2 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 63.91 kB / 493.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3168, allocations: 62.47 MB / 0.5432 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008438/0.3252, allocations: 5.443 MB / 0.5485 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.3283, allocations: 1.619 MB / 0.5501 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005688/0.3289, allocations: 22.94 kB / 0.5502 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005932/0.3295, allocations: 133.2 kB / 0.5503 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.3307, allocations: 319.5 kB / 0.5506 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.3313, allocations: 162.5 kB / 0.5507 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.3325, allocations: 0.6935 MB / 0.5514 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006248/0.3332, allocations: 336.1 kB / 0.5517 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007349/0.3339, allocations: 303.4 kB / 0.552 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007436/0.3346, allocations: 306.9 kB / 0.5523 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.3348, allocations: 45.72 kB / 0.5524 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.335, allocations: 46.88 kB / 0.5524 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.3352, allocations: 155.8 kB / 0.5526 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003308/0.3356, allocations: 264.6 kB / 0.5528 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008187/0.3364, allocations: 0.5997 MB / 0.5534 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3364, allocations: 0 / 0.5534 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3364, allocations: 1.25 kB / 0.5534 GB, free: 8.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.3364, allocations: 0 / 0.5534 GB, free: 8.828 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001545/0.3379, allocations: 0.7211 MB / 0.5541 GB, free: 8.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.338, allocations: 13.58 kB / 0.5541 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.3381, allocations: 62.98 kB / 0.5542 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007998/0.3389, allocations: 391.2 kB / 0.5545 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.339, allocations: 88.5 kB / 0.5546 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.057e-05/0.3391, allocations: 48.52 kB / 0.5547 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008334/0.34, allocations: 0.4975 MB / 0.5552 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.34, allocations: 5.562 kB / 0.5552 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.34, allocations: 16.25 kB / 0.5552 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.34, allocations: 10.88 kB / 0.5552 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006427/0.3407, allocations: 342.2 kB / 0.5555 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.3432, allocations: 1.902 MB / 0.5574 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004521/0.3436, allocations: 211.7 kB / 0.5576 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.3438, allocations: 85.91 kB / 0.5577 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.3438, allocations: 6.188 kB / 0.5577 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.3439, allocations: 36.78 kB / 0.5577 GB, free: 5.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.3439, allocations: 0 / 0.5577 GB, free: 5.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001744/0.3456, allocations: 0.7863 MB / 0.5585 GB, free: 4.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.04e-05/0.3457, allocations: 110.8 kB / 0.5586 GB, free: 4.398 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.3461, allocations: 329.7 kB / 0.5589 GB, free: 4.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.3461, allocations: 33.7 kB / 0.5589 GB, free: 4.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.3463, allocations: 268.2 kB / 0.5592 GB, free: 3.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.153e-05/0.3464, allocations: 87.3 kB / 0.5593 GB, free: 3.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.3465, allocations: 65.66 kB / 0.5593 GB, free: 3.602 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3467, allocations: 346.8 kB / 0.5597 GB, free: 3.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3469, allocations: 87.73 kB / 0.5597 GB, free: 3.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.3472, allocations: 221 kB / 0.5599 GB, free: 2.891 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.3484, allocations: 491.8 kB / 0.5604 GB, free: 2.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3484, allocations: 7.938 kB / 0.5604 GB, free: 2.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000868/0.3492, allocations: 406.1 kB / 0.5608 GB, free: 1.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.3493, allocations: 12.09 kB / 0.5608 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3493, allocations: 4 kB / 0.5608 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.3496, allocations: 80.78 kB / 0.5609 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/0.3499, allocations: 63.91 kB / 0.561 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.3522, allocations: 1.838 MB / 0.5628 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.3524, allocations: 12 kB / 0.5628 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.3525, allocations: 20 kB / 0.5628 GB, free: 15.8 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002612/0.3527, allocations: 193.7 kB / 0.563 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.715e-05/0.3528, allocations: 39.75 kB / 0.563 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.558e-05/0.3529, allocations: 39.19 kB / 0.563 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3529, allocations: 4 kB / 0.5631 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3529, allocations: 8 kB / 0.5631 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3529, allocations: 0 / 0.5631 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.3542, allocations: 0.7475 MB / 0.5638 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3542, allocations: 4 kB / 0.5638 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.3545, allocations: 43.94 kB / 0.5638 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.359e-05/0.3546, allocations: 24.86 kB / 0.5639 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.3546, allocations: 4 kB / 0.5639 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.3556, allocations: 1.283 MB / 0.5651 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3556, allocations: 0 / 0.5651 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007698/0.3564, allocations: 0.5037 MB / 0.5656 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.3565, allocations: 43.8 kB / 0.5657 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.3565, allocations: 12 kB / 0.5657 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.3567, allocations: 11.98 kB / 0.5657 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.517e-05/0.3568, allocations: 23.97 kB / 0.5657 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3568, allocations: 4 kB / 0.5657 GB, free: 12.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002701/0.3571, allocations: 227.2 kB / 0.5659 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3571, allocations: 0 / 0.5659 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005639/0.3577, allocations: 92 kB / 0.566 GB, free: 12.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001414/0.3578, allocations: 99.12 kB / 0.5661 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.3586, allocations: 362.3 kB / 0.5664 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3586, allocations: 0 / 0.5664 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.359, allocations: 215.6 kB / 0.5667 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000673/0.3597, allocations: 103.8 kB / 0.5667 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.3615, allocations: 0.9814 MB / 0.5677 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005288/0.3621, allocations: 0.8426 MB / 0.5685 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.855e-05/0.3622, allocations: 31.44 kB / 0.5686 GB, free: 9.566 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3622, allocations: 3.938 kB / 0.5686 GB, free: 9.562 MB / 414.1 MB Notification: Performance of Templates: time 0.01109/0.3732, allocations: 6.964 MB / 0.5754 GB, free: 2.617 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.981367527972907]