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.0007865/0.0007865, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003911/0.003911, allocations: 160.2 kB / 24.7 MB, free: 8.879 MB / 18.57 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 0.8452/0.8452, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2046/0.2046, allocations: 29.41 MB / 290.8 MB, free: 2.434 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.397e-05, allocations: 6.281 kB / 431.5 MB, free: 13.1 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003612/0.003636, allocations: 3.587 MB / 435.1 MB, free: 9.488 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.005567, allocations: 1.835 MB / 436.9 MB, free: 7.645 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.005733, allocations: 7.938 kB / 436.9 MB, free: 7.637 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006336/0.006367, allocations: 238.8 kB / 437.1 MB, free: 7.402 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005692/0.006936, allocations: 310.5 kB / 437.4 MB, free: 7.098 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.00726, allocations: 175.2 kB / 437.6 MB, free: 6.926 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.00761, allocations: 466.7 kB / 438.1 MB, free: 6.469 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.007861, allocations: 169.9 kB / 438.2 MB, free: 6.301 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003357/0.008197, allocations: 265.7 kB / 438.5 MB, free: 6.043 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.008383, allocations: 174.9 kB / 438.7 MB, free: 5.875 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.008415, allocations: 32 kB / 438.7 MB, free: 5.844 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003573/0.008772, allocations: 331 kB / 439 MB, free: 5.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.00887, allocations: 131.6 kB / 439.1 MB, free: 5.391 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.229e-05/0.008952, allocations: 103.7 kB / 439.2 MB, free: 5.289 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008106/0.009763, allocations: 0.5921 MB / 439.8 MB, free: 4.695 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.009765, allocations: 0 / 439.8 MB, free: 4.695 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.009767, allocations: 0 / 439.8 MB, free: 4.695 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.009772, allocations: 0 / 439.8 MB, free: 4.695 MB / 410.7 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.0006464/0.01042, allocations: 0.5827 MB / 440.4 MB, free: 4.078 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.01045, allocations: 15.98 kB / 440.4 MB, free: 4.062 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004145/0.01087, allocations: 92.59 kB / 440.5 MB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.01118, allocations: 292.5 kB / 440.8 MB, free: 3.664 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.01119, allocations: 16.75 kB / 440.8 MB, free: 3.648 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.01122, allocations: 16.38 kB / 440.8 MB, free: 3.633 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/0.01161, allocations: 407.3 kB / 441.2 MB, free: 3.199 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.01162, allocations: 3.938 kB / 441.2 MB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.01164, allocations: 8 kB / 441.3 MB, free: 3.188 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.01167, allocations: 12.38 kB / 441.3 MB, free: 3.176 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.01208, allocations: 440.7 kB / 441.7 MB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01322, allocations: 1.353 MB / 443.1 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.01367, allocations: 353 kB / 443.4 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.01378, allocations: 109.7 kB / 443.5 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.0138, allocations: 4 kB / 443.5 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.01402, allocations: 216.7 kB / 443.7 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.01403, allocations: 0 / 443.7 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005238/0.01455, allocations: 424 kB / 444.1 MB, free: 200 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.01461, allocations: 136.7 kB / 444.3 MB, free: 32 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1457/0.1603, allocations: 344 kB / 444.6 MB, free: 54.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.1604, allocations: 38.69 kB / 444.6 MB, free: 54.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.303e-05/0.1605, allocations: 181.6 kB / 444.8 MB, free: 54.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.1605, allocations: 87.23 kB / 444.9 MB, free: 54.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.704e-05/0.1606, allocations: 56.69 kB / 445 MB, free: 54.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.1606, allocations: 334.3 kB / 445.3 MB, free: 54.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1607, allocations: 110.3 kB / 445.4 MB, free: 54.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.1609, allocations: 223.7 kB / 445.6 MB, free: 54.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.1611, allocations: 326.1 kB / 445.9 MB, free: 54.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1611, allocations: 0.8438 kB / 445.9 MB, free: 54.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003389/0.1614, allocations: 391.5 kB / 446.3 MB, free: 53.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1615, allocations: 9.656 kB / 446.3 MB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1615, allocations: 3.094 kB / 446.3 MB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1615, allocations: 6.562 kB / 446.3 MB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1616, allocations: 62.38 kB / 446.4 MB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1617, allocations: 3.656 kB / 446.4 MB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.116e-05/0.1617, allocations: 29.06 kB / 446.4 MB, free: 53.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.1618, allocations: 16.03 kB / 446.4 MB, free: 53.84 MB / 410.7 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 9.305e-05/0.1618, allocations: 184.4 kB / 446.6 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.1619, allocations: 28.62 kB / 446.6 MB, free: 53.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.1623, allocations: 407.3 kB / 447 MB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1623, allocations: 5.312 kB / 447.1 MB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1623, allocations: 3.562 kB / 447.1 MB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1623, allocations: 3.219 kB / 447.1 MB, free: 53.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000547/0.1628, allocations: 0.747 MB / 447.8 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1628, allocations: 0 / 447.8 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.1629, allocations: 57.31 kB / 447.9 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.1629, allocations: 7.156 kB / 447.9 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.1629, allocations: 10.73 kB / 447.9 MB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1629, allocations: 3.344 kB / 447.9 MB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1629, allocations: 0 / 447.9 MB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.1632, allocations: 488 kB / 448.4 MB, free: 52.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.529e-05/0.1633, allocations: 39.62 kB / 448.4 MB, free: 52.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.1633, allocations: 7.25 kB / 448.4 MB, free: 52.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.118e-05/0.1634, allocations: 14.56 kB / 448.4 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.1634, allocations: 23.7 kB / 448.4 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.1634, allocations: 20.25 kB / 448.5 MB, free: 52.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1635, allocations: 248.5 kB / 448.7 MB, free: 52.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1635, allocations: 0 / 448.7 MB, free: 52.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.1638, allocations: 103.3 kB / 448.8 MB, free: 52.64 MB / 410.7 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.0007333/0.1645, allocations: 0.5572 MB / 449.4 MB, free: 52.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.1648, allocations: 282.6 kB / 449.6 MB, free: 52.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1648, allocations: 4 kB / 449.6 MB, free: 52.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.1649, allocations: 142.1 kB / 449.8 MB, free: 52.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1652, allocations: 49.92 kB / 449.8 MB, free: 52.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006023/0.1658, allocations: 0.674 MB / 450.5 MB, free: 51.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.386e-05/0.1659, allocations: 202 kB / 450.7 MB, free: 51.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.502e-05/0.166, allocations: 41.83 kB / 450.7 MB, free: 51.82 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.166, allocations: 3.938 kB / 450.7 MB, free: 51.82 MB / 410.7 MB Notification: Performance of Templates: time 0.004461/0.1704, allocations: 5.163 MB / 455.9 MB, free: 51.26 MB / 410.7 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: 4.89770932123065]