Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.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.001493/0.001493, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001951/0.001951, allocations: 206.7 kB / 23.73 MB, free: 4.398 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.517/1.517, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1867/0.1867, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") [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.002291/0.002291, allocations: 67.89 kB / 493 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3635, allocations: 62.48 MB / 0.5424 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005947/0.3695, allocations: 3.611 MB / 0.546 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.3729, allocations: 1.823 MB / 0.5477 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.3731, allocations: 10.38 kB / 0.5477 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009672/0.3741, allocations: 234.4 kB / 0.548 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008831/0.375, allocations: 301 kB / 0.5483 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.3755, allocations: 187.2 kB / 0.5484 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.3761, allocations: 456.1 kB / 0.5489 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.3765, allocations: 158.3 kB / 0.549 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.377, allocations: 205.3 kB / 0.5492 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003024/0.3773, allocations: 179.6 kB / 0.5494 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.3773, allocations: 30.16 kB / 0.5494 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006747/0.378, allocations: 327.8 kB / 0.5497 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.3782, allocations: 125.3 kB / 0.5498 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.3784, allocations: 132.2 kB / 0.55 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000879/0.3792, allocations: 0.5754 MB / 0.5505 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3792, allocations: 1.188 kB / 0.5505 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3792, allocations: 0 / 0.5505 GB, free: 10.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.3793, allocations: 0 / 0.5505 GB, free: 10.4 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001067/0.3803, allocations: 0.5848 MB / 0.5511 GB, free: 9.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.3804, allocations: 13.02 kB / 0.5511 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007952/0.3812, allocations: 94.3 kB / 0.5512 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.3817, allocations: 299.4 kB / 0.5515 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.3818, allocations: 12.75 kB / 0.5515 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/0.3818, allocations: 19.88 kB / 0.5515 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006819/0.3825, allocations: 403.6 kB / 0.5519 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3825, allocations: 0 / 0.5519 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.3825, allocations: 6.656 kB / 0.5519 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.3826, allocations: 20.25 kB / 0.5519 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007732/0.3833, allocations: 444.6 kB / 0.5524 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.3855, allocations: 1.356 MB / 0.5537 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008551/0.3863, allocations: 346.6 kB / 0.554 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.3865, allocations: 114.9 kB / 0.5541 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3866, allocations: 3.438 kB / 0.5541 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.387, allocations: 214.9 kB / 0.5543 GB, free: 7.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.695e-06/0.387, allocations: 0 / 0.5543 GB, free: 7.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009262/0.3879, allocations: 428 kB / 0.5547 GB, free: 7.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.388, allocations: 132.5 kB / 0.5549 GB, free: 7.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004642/0.3885, allocations: 347.6 kB / 0.5552 GB, free: 6.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.3885, allocations: 29.7 kB / 0.5552 GB, free: 6.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.3887, allocations: 184.3 kB / 0.5554 GB, free: 6.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.296e-05/0.3888, allocations: 79.38 kB / 0.5555 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3889, allocations: 62.17 kB / 0.5555 GB, free: 6.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.3891, allocations: 346.8 kB / 0.5559 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.3893, allocations: 104.5 kB / 0.556 GB, free: 6.062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.3896, allocations: 221 kB / 0.5562 GB, free: 5.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005242/0.3901, allocations: 332.3 kB / 0.5565 GB, free: 5.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3901, allocations: 0 / 0.5565 GB, free: 5.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007131/0.3908, allocations: 385.1 kB / 0.5569 GB, free: 5.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3909, allocations: 4 kB / 0.5569 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3909, allocations: 8.25 kB / 0.5569 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.3909, allocations: 8 kB / 0.5569 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/0.3912, allocations: 63.84 kB / 0.5569 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3912, allocations: 4 kB / 0.5569 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.3913, allocations: 31.77 kB / 0.557 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.3914, allocations: 19.94 kB / 0.557 GB, free: 4.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002336/0.3916, allocations: 173.8 kB / 0.5572 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.3917, allocations: 31.81 kB / 0.5572 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008073/0.3925, allocations: 408 kB / 0.5576 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3925, allocations: 8 kB / 0.5576 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3925, allocations: 0 / 0.5576 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3925, allocations: 3.984 kB / 0.5576 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.3937, allocations: 0.7522 MB / 0.5583 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.3937, allocations: 3.984 kB / 0.5583 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.3939, allocations: 51.92 kB / 0.5584 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.3939, allocations: 4 kB / 0.5584 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.394, allocations: 11.98 kB / 0.5584 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.394, allocations: 0 / 0.5584 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.394, allocations: 3.938 kB / 0.5584 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.3947, allocations: 496 kB / 0.5589 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.3948, allocations: 31.73 kB / 0.5589 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.992e-05/0.3948, allocations: 16 kB / 0.5589 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.395, allocations: 15.92 kB / 0.5589 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.395, allocations: 27.91 kB / 0.559 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.3951, allocations: 11.98 kB / 0.559 GB, free: 2.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.3954, allocations: 255 kB / 0.5592 GB, free: 2.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3954, allocations: 0 / 0.5592 GB, free: 2.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.3959, allocations: 99.77 kB / 0.5593 GB, free: 2.484 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001959/0.3978, allocations: 0.5381 MB / 0.5598 GB, free: 2.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006151/0.3984, allocations: 279.6 kB / 0.5601 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3984, allocations: 0 / 0.5601 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.3987, allocations: 143.8 kB / 0.5602 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004999/0.3992, allocations: 67.91 kB / 0.5603 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.4004, allocations: 0.6545 MB / 0.5609 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.4006, allocations: 192.9 kB / 0.5611 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.4008, allocations: 82.91 kB / 0.5612 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.4009, allocations: 39.42 kB / 0.5612 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of SimCode: time 4.7e-07/0.4009, allocations: 3.938 kB / 0.5612 GB, free: 0.668 MB / 398.1 MB Notification: Performance of Templates: time 0.01026/0.4112, allocations: 4.703 MB / 0.5658 GB, free: 12.02 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.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: 5.523946136236191]