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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 185.7 kB / 8.135 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008962/0.000896, allocations: 95.2 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1591/0.1591, allocations: 37.98 MB / 347.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.901e-06, allocations: 0 / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09118, allocations: 56.32 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2822/0.3734, allocations: 94.22 MB / 0.5474 GB, free: 348 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006184/0.3796, allocations: 2.216 MB / 0.5496 GB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03641/0.4161, allocations: 14.47 MB / 0.5637 GB, free: 15.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.4161, allocations: 4 kB / 0.5637 GB, free: 15.52 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.001051/0.4172, allocations: 0.5971 MB / 0.5643 GB, free: 14.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.4172, allocations: 8.031 kB / 0.5643 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008532/0.4181, allocations: 107.5 kB / 0.5644 GB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.4187, allocations: 346.2 kB / 0.5647 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.4188, allocations: 16 kB / 0.5647 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.4188, allocations: 8 kB / 0.5648 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005487/0.4194, allocations: 336.6 kB / 0.5651 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.4198, allocations: 336.3 kB / 0.5654 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.4199, allocations: 4 kB / 0.5654 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.4199, allocations: 7.984 kB / 0.5654 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/0.4199, allocations: 20.36 kB / 0.5654 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4219, allocations: 1.599 MB / 0.567 GB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.4223, allocations: 289.1 kB / 0.5673 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.4224, allocations: 105.7 kB / 0.5674 GB, free: 11.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.4225, allocations: 7.984 kB / 0.5674 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.4227, allocations: 194.7 kB / 0.5676 GB, free: 11.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.923e-06/0.4227, allocations: 0 / 0.5676 GB, free: 11.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005095/0.4232, allocations: 294.6 kB / 0.5678 GB, free: 11.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.4233, allocations: 132.5 kB / 0.568 GB, free: 10.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.4236, allocations: 287.4 kB / 0.5682 GB, free: 10.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.4237, allocations: 25.7 kB / 0.5683 GB, free: 10.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.4237, allocations: 148.1 kB / 0.5684 GB, free: 10.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.991e-05/0.4238, allocations: 86.81 kB / 0.5685 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.4238, allocations: 0 / 0.5685 GB, free: 10.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4239, allocations: 338.8 kB / 0.5688 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.4241, allocations: 100.5 kB / 0.5689 GB, free: 9.863 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.4243, allocations: 179.1 kB / 0.5691 GB, free: 9.652 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.4245, allocations: 135.8 kB / 0.5692 GB, free: 9.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4245, allocations: 0 / 0.5692 GB, free: 9.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004892/0.425, allocations: 349.1 kB / 0.5695 GB, free: 9.172 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.425, allocations: 4 kB / 0.5695 GB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.425, allocations: 4.312 kB / 0.5695 GB, free: 9.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.4251, allocations: 8 kB / 0.5696 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.4254, allocations: 63.91 kB / 0.5696 GB, free: 9.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4254, allocations: 7.984 kB / 0.5696 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.4255, allocations: 23.69 kB / 0.5696 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.4256, allocations: 15.94 kB / 0.5697 GB, free: 9.047 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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.996e-05/0.4257, allocations: 116.9 kB / 0.5698 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.096e-05/0.4257, allocations: 27.62 kB / 0.5698 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.4263, allocations: 378.6 kB / 0.5702 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4263, allocations: 4 kB / 0.5702 GB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4264, allocations: 3.906 kB / 0.5702 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4264, allocations: 0 / 0.5702 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.4274, allocations: 0.776 MB / 0.5709 GB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4274, allocations: 0 / 0.5709 GB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.4276, allocations: 59.98 kB / 0.571 GB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.4277, allocations: 0 / 0.571 GB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.4277, allocations: 7.984 kB / 0.571 GB, free: 7.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.4277, allocations: 7.938 kB / 0.571 GB, free: 7.621 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4277, allocations: 0 / 0.571 GB, free: 7.621 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005046/0.4282, allocations: 468.6 kB / 0.5714 GB, free: 7.129 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.899e-05/0.4283, allocations: 124.6 kB / 0.5716 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.4284, allocations: 4 kB / 0.5716 GB, free: 6.984 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.4285, allocations: 12 kB / 0.5716 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.4286, allocations: 19.91 kB / 0.5716 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.4286, allocations: 15.98 kB / 0.5716 GB, free: 6.938 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002022/0.4288, allocations: 223.1 kB / 0.5718 GB, free: 6.719 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000443/0.4293, allocations: 95.78 kB / 0.5719 GB, free: 6.625 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006924/0.43, allocations: 355 kB / 0.5723 GB, free: 6.293 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004273/0.4304, allocations: 268.1 kB / 0.5725 GB, free: 6.031 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4304, allocations: 4.062 kB / 0.5725 GB, free: 6.027 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.4307, allocations: 151.8 kB / 0.5727 GB, free: 5.879 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.4311, allocations: 44.84 kB / 0.5727 GB, free: 5.836 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009403/0.432, allocations: 463.2 kB / 0.5731 GB, free: 5.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004925/0.4325, allocations: 0.8506 MB / 0.574 GB, free: 4.469 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4325, allocations: 0 / 0.574 GB, free: 4.469 MB / 410.7 MB Notification: Performance of Templates: time 0.007654/0.4402, allocations: 3.695 MB / 0.5776 GB, free: 0.7695 MB / 410.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/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