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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) [: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.001247/0.001247, allocations: 182.8 kB / 8.137 MB, free: 2.188 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.707/1.707, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009945/0.0009945, allocations: 95.83 kB / 261.7 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1857/0.1857, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.237/0.4227, allocations: 62.44 MB / 410.1 MB, free: 46.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.5409, allocations: 56.32 MB / 466.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3792/0.9202, allocations: 93.89 MB / 0.5472 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.007571/0.9279, allocations: 2.203 MB / 0.5493 GB, free: 14.39 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.0371/0.965, allocations: 12.12 MB / 0.5612 GB, free: 2.176 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.9651, allocations: 8 kB / 0.5612 GB, free: 2.168 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.9655, allocations: 71.16 kB / 0.5612 GB, free: 2.098 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.9668, allocations: 0.5111 MB / 0.5617 GB, free: 1.543 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.9668, allocations: 12 kB / 0.5617 GB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.967, allocations: 31.89 kB / 0.5618 GB, free: 1.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009705/0.968, allocations: 405.4 kB / 0.5622 GB, free: 1.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008191/0.9688, allocations: 456.2 kB / 0.5626 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.9688, allocations: 3.938 kB / 0.5626 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.9689, allocations: 8 kB / 0.5626 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.9689, allocations: 8 kB / 0.5626 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.9722, allocations: 2.068 MB / 0.5646 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009296/0.9731, allocations: 439.1 kB / 0.5651 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/0.9735, allocations: 187.2 kB / 0.5652 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.755e-05/0.9735, allocations: 8 kB / 0.5652 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005081/0.9741, allocations: 282.1 kB / 0.5655 GB, free: 13.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.847e-06/0.9741, allocations: 4 kB / 0.5655 GB, free: 13.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.000943/0.975, allocations: 411.4 kB / 0.5659 GB, free: 13.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.9752, allocations: 187.9 kB / 0.5661 GB, free: 12.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008084/0.976, allocations: 437.3 kB / 0.5665 GB, free: 12.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.853e-05/0.9761, allocations: 37.69 kB / 0.5665 GB, free: 12.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.9763, allocations: 200.3 kB / 0.5667 GB, free: 12.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.9765, allocations: 122.4 kB / 0.5668 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.9765, allocations: 0 / 0.5668 GB, free: 12.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.9767, allocations: 374.7 kB / 0.5672 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.977, allocations: 152.9 kB / 0.5674 GB, free: 11.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.9773, allocations: 281.3 kB / 0.5676 GB, free: 11.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.9777, allocations: 180.9 kB / 0.5678 GB, free: 11.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.9777, allocations: 0 / 0.5678 GB, free: 11.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009706/0.9787, allocations: 0.4992 MB / 0.5683 GB, free: 10.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007037/0.9794, allocations: 1.221 MB / 0.5695 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.9794, allocations: 4 kB / 0.5695 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.624e-05/0.9795, allocations: 11.88 kB / 0.5695 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.9801, allocations: 135.8 kB / 0.5696 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.9801, allocations: 7.984 kB / 0.5696 GB, free: 9.039 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006948/0.9809, allocations: 87.55 kB / 0.5697 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.615e-05/0.9809, allocations: 23.98 kB / 0.5697 GB, free: 8.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.981, allocations: 4 kB / 0.5697 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007977/0.9818, allocations: 409.2 kB / 0.5701 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.9818, allocations: 12 kB / 0.5701 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.9818, allocations: 4 kB / 0.5701 GB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.9823, allocations: 123.8 kB / 0.5703 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.9823, allocations: 4 kB / 0.5703 GB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.9829, allocations: 79.64 kB / 0.5703 GB, free: 8.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.044e-05/0.983, allocations: 23.98 kB / 0.5704 GB, free: 8.285 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.0002367/0.9832, allocations: 122.9 kB / 0.5705 GB, free: 8.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.9834, allocations: 55.25 kB / 0.5705 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008879/0.9843, allocations: 378.8 kB / 0.5709 GB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.9843, allocations: 12 kB / 0.5709 GB, free: 7.707 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.9843, allocations: 3.938 kB / 0.5709 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.9844, allocations: 7.922 kB / 0.5709 GB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008528/0.9852, allocations: 0.521 MB / 0.5714 GB, free: 7.137 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.9852, allocations: 0 / 0.5714 GB, free: 7.137 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.9858, allocations: 115.9 kB / 0.5715 GB, free: 7.023 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.9858, allocations: 4 kB / 0.5715 GB, free: 7.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.9859, allocations: 8 kB / 0.5715 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.567e-06/0.9859, allocations: 7.906 kB / 0.5716 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.9859, allocations: 0 / 0.5716 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001388/0.9873, allocations: 0.7744 MB / 0.5723 GB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001798/0.9891, allocations: 1.393 MB / 0.5737 GB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/0.9894, allocations: 200.2 kB / 0.5739 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.9896, allocations: 8 kB / 0.5739 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004722/0.99, allocations: 64 kB / 0.5739 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.9902, allocations: 51.92 kB / 0.574 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.424e-05/0.9903, allocations: 16 kB / 0.574 GB, free: 4.387 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004493/0.9907, allocations: 338.9 kB / 0.5743 GB, free: 4.059 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00206/0.9928, allocations: 211.7 kB / 0.5745 GB, free: 3.852 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.0009334/0.9937, allocations: 379.1 kB / 0.5749 GB, free: 3.496 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.995, allocations: 0.742 MB / 0.5756 GB, free: 2.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.9951, allocations: 0 / 0.5756 GB, free: 2.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000399/0.9955, allocations: 232 kB / 0.5758 GB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006502/0.9961, allocations: 103.7 kB / 0.5759 GB, free: 2.406 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.9981, allocations: 0.7466 MB / 0.5767 GB, free: 1.621 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007558/0.9989, allocations: 0.9344 MB / 0.5776 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9989, allocations: 0 / 0.5776 GB, free: 0.6602 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat does not exist to compare? outputFormat=mat