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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 111.6 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 63.91 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.377, allocations: 58.05 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004732/0.3818, allocations: 3.617 MB / 0.5076 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.3842, allocations: 1.798 MB / 0.5094 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.3844, allocations: 10.69 kB / 0.5094 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009996/0.3854, allocations: 237.9 kB / 0.5096 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007114/0.3861, allocations: 269.5 kB / 0.5099 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.3868, allocations: 203.6 kB / 0.5101 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.3874, allocations: 442.4 kB / 0.5105 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003998/0.3878, allocations: 187.5 kB / 0.5107 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004296/0.3883, allocations: 193 kB / 0.5109 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.3886, allocations: 175.4 kB / 0.511 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/0.3886, allocations: 26.81 kB / 0.511 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005117/0.3891, allocations: 324.1 kB / 0.5114 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.3893, allocations: 118 kB / 0.5115 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.3894, allocations: 153.5 kB / 0.5116 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006882/0.3901, allocations: 0.5126 MB / 0.5121 GB, free: 2.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3901, allocations: 0 / 0.5121 GB, free: 2.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3901, allocations: 0 / 0.5121 GB, free: 2.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.3901, allocations: 1.188 kB / 0.5121 GB, free: 2.711 MB / 382.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.0008472/0.391, allocations: 0.6212 MB / 0.5127 GB, free: 2.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.391, allocations: 13.08 kB / 0.5127 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008335/0.3919, allocations: 96.16 kB / 0.5128 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.3925, allocations: 376.7 kB / 0.5132 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.3925, allocations: 12.66 kB / 0.5132 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.3926, allocations: 20.64 kB / 0.5132 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.3932, allocations: 362.1 kB / 0.5136 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3932, allocations: 0 / 0.5136 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.3933, allocations: 7.281 kB / 0.5136 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.593e-05/0.3933, allocations: 19.45 kB / 0.5136 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.3939, allocations: 387.5 kB / 0.514 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.396, allocations: 1.545 MB / 0.5155 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.3966, allocations: 319.1 kB / 0.5158 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.3968, allocations: 100.7 kB / 0.5159 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.073e-05/0.3969, allocations: 15.22 kB / 0.5159 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/0.3972, allocations: 196.2 kB / 0.5161 GB, free: 4 kB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.3972, allocations: 0 / 0.5161 GB, free: 4 kB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009038/0.3981, allocations: 383.8 kB / 0.5164 GB, free: 15.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.3982, allocations: 145.2 kB / 0.5166 GB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.3986, allocations: 294.8 kB / 0.5169 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.3987, allocations: 32.83 kB / 0.5169 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.3988, allocations: 179 kB / 0.5171 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.247e-05/0.3989, allocations: 79.84 kB / 0.5171 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.399, allocations: 58.42 kB / 0.5172 GB, free: 15.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3992, allocations: 340 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.3995, allocations: 96.53 kB / 0.5176 GB, free: 14.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.3998, allocations: 182.8 kB / 0.5178 GB, free: 14.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/0.4003, allocations: 306.5 kB / 0.5181 GB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4004, allocations: 1.125 kB / 0.5181 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006301/0.401, allocations: 353.2 kB / 0.5184 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.401, allocations: 6 kB / 0.5184 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.401, allocations: 3.406 kB / 0.5184 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.4011, allocations: 4.594 kB / 0.5184 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.4013, allocations: 68.39 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.4014, allocations: 8.812 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.4015, allocations: 28.97 kB / 0.5185 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.4015, allocations: 15.56 kB / 0.5185 GB, free: 14.35 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.0001838/0.4017, allocations: 182.6 kB / 0.5187 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.4018, allocations: 30.12 kB / 0.5187 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005719/0.4024, allocations: 314.4 kB / 0.519 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.4024, allocations: 8.312 kB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.4024, allocations: 4.906 kB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.4024, allocations: 5.938 kB / 0.5191 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.4035, allocations: 0.7481 MB / 0.5198 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4035, allocations: 1.156 kB / 0.5198 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.4036, allocations: 47.36 kB / 0.5198 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.4037, allocations: 5.625 kB / 0.5198 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.4037, allocations: 5.531 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.4037, allocations: 1.719 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4037, allocations: 5.438 kB / 0.5199 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005758/0.4043, allocations: 406 kB / 0.5202 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.229e-05/0.4044, allocations: 110.4 kB / 0.5203 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.199e-05/0.4044, allocations: 13.44 kB / 0.5204 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.4046, allocations: 8.266 kB / 0.5204 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.4046, allocations: 27.14 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.4047, allocations: 8.656 kB / 0.5204 GB, free: 13.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00027/0.4049, allocations: 216.7 kB / 0.5206 GB, free: 13.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4049, allocations: 0 / 0.5206 GB, free: 13.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004448/0.4054, allocations: 74 kB / 0.5207 GB, free: 13.04 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 (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.001242/0.4066, allocations: 470 kB / 0.5211 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005406/0.4072, allocations: 247 kB / 0.5214 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4072, allocations: 1.188 kB / 0.5214 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.4074, allocations: 119 kB / 0.5215 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.4079, allocations: 67.94 kB / 0.5215 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.4092, allocations: 0.5899 MB / 0.5221 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.4097, allocations: 0.7911 MB / 0.5229 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.4099, allocations: 93.59 kB / 0.523 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.068e-05/0.41, allocations: 39.28 kB / 0.523 GB, free: 11.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.41, allocations: 0 / 0.523 GB, free: 11.59 MB / 398.1 MB Notification: Performance of Templates: time 0.008321/0.4183, allocations: 3.617 MB / 0.5266 GB, free: 11.2 MB / 398.1 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/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) Reference file matches