Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.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.LoadDispatcherTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadDispatcher.hydroDispatch.1.|loadDispatcher.hydroDispatch.2.|loadDispatcher.hydroDispatch.3.|loadDispatcher.plantDispatch.1.|loadDispatcher.plantDispatch.2.|loadDispatcher.plantDispatch.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadDispatcher.hydroDispatch.1.|loadDispatcher.hydroDispatch.2.|loadDispatcher.hydroDispatch.3.|loadDispatcher.plantDispatch.1.|loadDispatcher.plantDispatch.2.|loadDispatcher.plantDispatch.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") [: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.001089/0.001089, allocations: 185.3 kB / 8.138 MB, free: 2.199 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.321/1.321, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008598/0.0008598, allocations: 95.59 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1607/0.1607, allocations: 37.97 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.907e-06/8.947e-06, allocations: 4 kB / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09345, allocations: 56.32 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2755/0.369, allocations: 93.88 MB / 0.5471 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006535/0.3756, allocations: 2.207 MB / 0.5492 GB, free: 14.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03106/0.4067, allocations: 11.18 MB / 0.5602 GB, free: 3.324 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.4068, allocations: 15.94 kB / 0.5602 GB, free: 3.309 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001735/0.4085, allocations: 0.9162 MB / 0.5611 GB, free: 2.328 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.4086, allocations: 12.03 kB / 0.5611 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.4087, allocations: 71.14 kB / 0.5611 GB, free: 2.246 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008668/0.4096, allocations: 0.5111 MB / 0.5616 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.4096, allocations: 12 kB / 0.5617 GB, free: 1.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/0.4097, allocations: 23.91 kB / 0.5617 GB, free: 1.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007312/0.4104, allocations: 405.4 kB / 0.5621 GB, free: 1.262 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000726/0.4112, allocations: 460.2 kB / 0.5625 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.4112, allocations: 7.938 kB / 0.5625 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.4112, allocations: 4 kB / 0.5625 GB, free: 0.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4113, allocations: 8 kB / 0.5625 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.4137, allocations: 2.072 MB / 0.5645 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007607/0.4145, allocations: 431.1 kB / 0.565 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.4147, allocations: 187.2 kB / 0.5651 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.4148, allocations: 8.234 kB / 0.5651 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004411/0.4153, allocations: 286.1 kB / 0.5654 GB, free: 13.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.196e-06/0.4153, allocations: 4 kB / 0.5654 GB, free: 13.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.0008495/0.4161, allocations: 407.4 kB / 0.5658 GB, free: 13.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.4162, allocations: 187.9 kB / 0.566 GB, free: 12.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.4168, allocations: 437.2 kB / 0.5664 GB, free: 12.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.311e-05/0.4169, allocations: 33.7 kB / 0.5664 GB, free: 12.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.417, allocations: 204.3 kB / 0.5666 GB, free: 12.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.4171, allocations: 126.4 kB / 0.5668 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.4172, allocations: 0 / 0.5668 GB, free: 12.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.4173, allocations: 362.7 kB / 0.5671 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/0.4176, allocations: 160.8 kB / 0.5673 GB, free: 11.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.418, allocations: 277.3 kB / 0.5675 GB, free: 11.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.4183, allocations: 180.9 kB / 0.5677 GB, free: 11.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.4183, allocations: 0 / 0.5677 GB, free: 11.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000854/0.4192, allocations: 0.5074 MB / 0.5682 GB, free: 10.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005125/0.4197, allocations: 1.213 MB / 0.5694 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4197, allocations: 7.984 kB / 0.5694 GB, free: 9.348 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.4197, allocations: 15.94 kB / 0.5694 GB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000594/0.4203, allocations: 123.9 kB / 0.5695 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.4203, allocations: 4 kB / 0.5695 GB, free: 9.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000512/0.4209, allocations: 95.53 kB / 0.5696 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/0.4209, allocations: 23.97 kB / 0.5696 GB, free: 9.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/0.4209, allocations: 4 kB / 0.5696 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007061/0.4216, allocations: 413 kB / 0.57 GB, free: 8.684 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.4217, allocations: 7.938 kB / 0.57 GB, free: 8.676 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.712e-06/0.4217, allocations: 4 kB / 0.57 GB, free: 8.672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.4222, allocations: 120.1 kB / 0.5702 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4222, allocations: 11.98 kB / 0.5702 GB, free: 8.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.4227, allocations: 83.64 kB / 0.5702 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.4227, allocations: 19.98 kB / 0.5703 GB, free: 8.441 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.loadDispatcher.data.nextTimeEvent,$whenCondition3,loadDispatcher.data.nextTimeEvent,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.count,$whenCondition1,$PRE.frequency.T_start,frequency.T_start,$PRE.frequency.count,frequency.count,system.initime,loadDispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001647/0.4229, allocations: 126.8 kB / 0.5704 GB, free: 8.312 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.254e-05/0.423, allocations: 55.25 kB / 0.5704 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007394/0.4237, allocations: 382.7 kB / 0.5708 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4237, allocations: 4 kB / 0.5708 GB, free: 7.863 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4237, allocations: 3.938 kB / 0.5708 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.4238, allocations: 7.984 kB / 0.5708 GB, free: 7.852 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006053/0.4244, allocations: 0.521 MB / 0.5713 GB, free: 7.293 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4244, allocations: 0 / 0.5713 GB, free: 7.293 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/0.4249, allocations: 115.9 kB / 0.5714 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.4249, allocations: 4 kB / 0.5714 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/0.425, allocations: 11.98 kB / 0.5714 GB, free: 7.164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.425, allocations: 7.906 kB / 0.5715 GB, free: 7.156 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.425, allocations: 0 / 0.5715 GB, free: 7.156 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001141/0.4261, allocations: 0.7666 MB / 0.5722 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.4264, allocations: 200.2 kB / 0.5724 GB, free: 6.129 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.4265, allocations: 11.91 kB / 0.5724 GB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004546/0.427, allocations: 71.94 kB / 0.5725 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.4271, allocations: 51.92 kB / 0.5725 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-05/0.4272, allocations: 16 kB / 0.5725 GB, free: 5.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004024/0.4276, allocations: 334.9 kB / 0.5729 GB, free: 5.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007587/0.4283, allocations: 191.5 kB / 0.573 GB, free: 5.469 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (loadDispatcher.secondaryControl.I.y) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.count,$whenCondition1,frequency.T_start,frequency.count,system.initime) * Number of discrete states: 4 (frequency.count,loadDispatcher.hydroDaily.count,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0008277/0.4292, allocations: 388.8 kB / 0.5734 GB, free: 5.105 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.4303, allocations: 0.7377 MB / 0.5741 GB, free: 4.344 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4303, allocations: 4.062 kB / 0.5741 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.4307, allocations: 227.8 kB / 0.5744 GB, free: 4.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006108/0.4313, allocations: 98.2 kB / 0.5744 GB, free: 4.023 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.433, allocations: 0.748 MB / 0.5752 GB, free: 3.238 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006554/0.4337, allocations: 0.9347 MB / 0.5761 GB, free: 2.277 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4337, allocations: 4 kB / 0.5761 GB, free: 2.273 MB / 410.7 MB Notification: Performance of Templates: time 0.01692/0.4506, allocations: 9.952 MB / 0.5858 GB, free: 8.297 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches