Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.2+maint.om/package.mo): time 0.0009942/0.0009941, allocations: 181.3 kB / 8.13 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9477/0.9477, allocations: 194.2 MB / 202.8 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001671/0.001671, allocations: 114.5 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1479/0.1479, allocations: 37.92 MB / 330.5 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1581/0.306, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06442/0.3705, allocations: 53.24 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2236/0.5941, allocations: 97.1 MB / 0.5276 GB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001623/0.5943, allocations: 85.08 kB / 0.5276 GB, free: 8.652 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.05456/0.6489, allocations: 24.74 MB / 0.5518 GB, free: 6.363 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.6489, allocations: 8 kB / 0.5518 GB, free: 6.355 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.6503, allocations: 194.2 kB / 0.552 GB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007841/0.6511, allocations: 0.5144 MB / 0.5525 GB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.6511, allocations: 16 kB / 0.5525 GB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.416e-05/0.6512, allocations: 32 kB / 0.5525 GB, free: 5.648 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008081/0.6521, allocations: 0.501 MB / 0.553 GB, free: 5.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009003/0.653, allocations: 0.6275 MB / 0.5536 GB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.653, allocations: 7.906 kB / 0.5537 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.383e-05/0.6531, allocations: 0 / 0.5537 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.333e-05/0.6532, allocations: 40.91 kB / 0.5537 GB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003536/0.6567, allocations: 2.61 MB / 0.5562 GB, free: 2.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.6574, allocations: 383.8 kB / 0.5566 GB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003985/0.6578, allocations: 302.8 kB / 0.5569 GB, free: 2.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.6578, allocations: 12.11 kB / 0.5569 GB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004348/0.6583, allocations: 354.4 kB / 0.5572 GB, free: 1.883 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 3.056e-06/0.6583, allocations: 4 kB / 0.5572 GB, free: 1.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.002171/0.6605, allocations: 1.454 MB / 0.5587 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.6605, allocations: 111.3 kB / 0.5588 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.6609, allocations: 322.9 kB / 0.5591 GB, free: 308 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.6609, allocations: 29.7 kB / 0.5591 GB, free: 272 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.661, allocations: 235.3 kB / 0.5593 GB, free: 60 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.6612, allocations: 192.9 kB / 0.5595 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.6612, allocations: 0 / 0.5595 GB, free: 15.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.6614, allocations: 363.1 kB / 0.5599 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.6617, allocations: 226.6 kB / 0.5601 GB, free: 15.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.6621, allocations: 326.5 kB / 0.5604 GB, free: 15.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003643/0.6624, allocations: 266.8 kB / 0.5606 GB, free: 14.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.6625, allocations: 4 kB / 0.5607 GB, free: 14.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00137/0.6638, allocations: 0.8022 MB / 0.5614 GB, free: 14.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000264/0.6641, allocations: 0.9653 MB / 0.5624 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.6641, allocations: 0 / 0.5624 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005236/0.6647, allocations: 167.3 kB / 0.5625 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.6652, allocations: 122.6 kB / 0.5627 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.6667, allocations: 2.081 MB / 0.5647 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005197/0.6673, allocations: 58.94 kB / 0.5647 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/0.6673, allocations: 19 kB / 0.5648 GB, free: 10.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-06/0.6673, allocations: 0 / 0.5648 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001122/0.6685, allocations: 0.6742 MB / 0.5654 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.6685, allocations: 4 kB / 0.5654 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004329/0.6689, allocations: 151.2 kB / 0.5656 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.6694, allocations: 119.5 kB / 0.5657 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002816/0.6723, allocations: 3.397 MB / 0.569 GB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004726/0.6727, allocations: 47.95 kB / 0.569 GB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/0.6728, allocations: 22 kB / 0.5691 GB, free: 6.941 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001538/0.673, allocations: 112.9 kB / 0.5692 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.545e-05/0.673, allocations: 59.33 kB / 0.5692 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.6741, allocations: 0.6767 MB / 0.5699 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.6742, allocations: 4.094 kB / 0.5699 GB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6742, allocations: 11.88 kB / 0.5699 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.6742, allocations: 3.984 kB / 0.5699 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.6765, allocations: 1.883 MB / 0.5717 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.6765, allocations: 7.984 kB / 0.5718 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.6771, allocations: 136.4 kB / 0.5719 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000208/0.6774, allocations: 69.61 kB / 0.572 GB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.6774, allocations: 12 kB / 0.572 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.679, allocations: 2.566 MB / 0.5745 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.679, allocations: 12.06 kB / 0.5745 GB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001525/0.6806, allocations: 1.392 MB / 0.5758 GB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00209/0.6827, allocations: 2.135 MB / 0.5779 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.6829, allocations: 188.5 kB / 0.5781 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.503e-05/0.683, allocations: 15.98 kB / 0.5781 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000516/0.6835, allocations: 59.84 kB / 0.5782 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.6836, allocations: 48.36 kB / 0.5782 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.6837, allocations: 20 kB / 0.5782 GB, free: 12.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002395/0.6839, allocations: 259.2 kB / 0.5785 GB, free: 12.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001912/0.6858, allocations: 232.1 kB / 0.5787 GB, free: 12.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000165/0.686, allocations: 127.8 kB / 0.5788 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.688, allocations: 1.335 MB / 0.5801 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.6881, allocations: 0 / 0.5801 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007572/0.6889, allocations: 0.5493 MB / 0.5807 GB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005422/0.6894, allocations: 85.53 kB / 0.5808 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.6915, allocations: 1.225 MB / 0.5819 GB, free: 8.965 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.6921, allocations: 0.9966 MB / 0.5829 GB, free: 7.941 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6921, allocations: 0 / 0.5829 GB, free: 7.941 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)