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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001207/0.001208, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.1 MB / 223.1 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001105, allocations: 95.92 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2235/0.2235, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001113, allocations: 44.11 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2578, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.00449/0.2623, allocations: 3.84 MB / 480.9 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.2645, allocations: 1.794 MB / 482.7 MB, free: 5.973 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.2647, allocations: 11.75 kB / 482.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007361/0.2654, allocations: 220.2 kB / 483 MB, free: 5.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.2659, allocations: 243.6 kB / 483.2 MB, free: 5.711 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.2663, allocations: 159.3 kB / 483.4 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005385/0.2669, allocations: 0.5789 MB / 483.9 MB, free: 5.426 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003064/0.2672, allocations: 174.4 kB / 484.1 MB, free: 5.355 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003798/0.2676, allocations: 164.3 kB / 484.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.268, allocations: 180.1 kB / 484.4 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.268, allocations: 13.53 kB / 484.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008795/0.2689, allocations: 374.3 kB / 484.8 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.2691, allocations: 102.7 kB / 484.9 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.2693, allocations: 133.8 kB / 485 MB, free: 4.957 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009449/0.2702, allocations: 0.5208 MB / 485.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2703, allocations: 1.375 kB / 485.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2703, allocations: 0 / 485.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2703, allocations: 0 / 485.6 MB, free: 4.758 MB / 314.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.0009151/0.2712, allocations: 0.6181 MB / 486.2 MB, free: 4.227 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.2713, allocations: 17.61 kB / 486.2 MB, free: 4.219 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008125/0.2721, allocations: 94.39 kB / 486.3 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.2725, allocations: 365.5 kB / 486.7 MB, free: 3.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2726, allocations: 11.53 kB / 486.7 MB, free: 3.895 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.2726, allocations: 20.19 kB / 486.7 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.2731, allocations: 365.7 kB / 487 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2732, allocations: 1.531 kB / 487 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.2732, allocations: 7.094 kB / 487.1 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.008e-05/0.2732, allocations: 17.59 kB / 487.1 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.2738, allocations: 388.6 kB / 487.4 MB, free: 3.578 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.2753, allocations: 1.546 MB / 489 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.2759, allocations: 320.7 kB / 489.3 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2761, allocations: 109.4 kB / 489.4 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.2761, allocations: 17.7 kB / 489.4 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.2764, allocations: 196.3 kB / 489.6 MB, free: 2.043 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.285e-06/0.2764, allocations: 3.984 kB / 489.6 MB, free: 2.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006741/0.2771, allocations: 385 kB / 490 MB, free: 1.887 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.2771, allocations: 136.8 kB / 490.1 MB, free: 1.727 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.2774, allocations: 297.3 kB / 490.4 MB, free: 1.555 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.2775, allocations: 34.02 kB / 490.5 MB, free: 1.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.163e-05/0.2776, allocations: 174.9 kB / 490.6 MB, free: 1.371 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.2776, allocations: 83.91 kB / 490.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/0.2777, allocations: 53.97 kB / 490.8 MB, free: 1.277 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.2778, allocations: 344.1 kB / 491.1 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.2779, allocations: 97 kB / 491.2 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.2781, allocations: 177.7 kB / 491.4 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.2785, allocations: 303.8 kB / 491.7 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2785, allocations: 1.984 kB / 491.7 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000506/0.279, allocations: 360.9 kB / 492 MB, free: 432 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.279, allocations: 13.58 kB / 492 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2791, allocations: 1.469 kB / 492 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.2791, allocations: 5.031 kB / 492 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.2793, allocations: 68.81 kB / 492.1 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.2793, allocations: 4.578 kB / 492.1 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.2795, allocations: 28.42 kB / 492.1 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.2795, allocations: 12.09 kB / 492.2 MB, free: 396 kB / 314.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 0.0001622/0.2797, allocations: 180.6 kB / 492.3 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.2797, allocations: 37.59 kB / 492.4 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005357/0.2803, allocations: 316.8 kB / 492.7 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2803, allocations: 3.312 kB / 492.7 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.413e-06/0.2803, allocations: 1.719 kB / 492.7 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2803, allocations: 9.141 kB / 492.7 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009489/0.2813, allocations: 0.7408 MB / 493.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.2813, allocations: 1.094 kB / 493.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.2814, allocations: 51.5 kB / 493.5 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.2815, allocations: 6.344 kB / 493.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.2815, allocations: 5.719 kB / 493.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2815, allocations: 1.531 kB / 493.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2815, allocations: 1.344 kB / 493.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009703/0.2825, allocations: 1.12 MB / 494.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.741e-05/0.2826, allocations: 103.1 kB / 494.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.2826, allocations: 9.125 kB / 494.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.2827, allocations: 8.266 kB / 494.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.2828, allocations: 19.53 kB / 494.8 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.2828, allocations: 9.812 kB / 494.8 MB, free: 14.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.2831, allocations: 213.8 kB / 495 MB, free: 14.45 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2831, allocations: 1.062 kB / 495 MB, free: 14.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004655/0.2835, allocations: 83.55 kB / 495.1 MB, free: 14.43 MB / 330.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 (25): * Single equations (assignments): 22 * 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.0009047/0.2844, allocations: 465.4 kB / 495.5 MB, free: 14.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.2849, allocations: 254.2 kB / 495.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2849, allocations: 0 / 495.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.2851, allocations: 115.7 kB / 495.9 MB, free: 13.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.2856, allocations: 59.78 kB / 495.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.2867, allocations: 0.8936 MB / 496.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.287, allocations: 0.8015 MB / 497.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.2873, allocations: 92.67 kB / 497.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.278e-05/0.2874, allocations: 36.41 kB / 497.7 MB, free: 12.59 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2874, allocations: 0 / 497.7 MB, free: 12.59 MB / 330.7 MB Notification: Performance of Templates: time 0.006779/0.2942, allocations: 3.523 MB / 0.4895 GB, free: 11.3 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches