Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.001065/0.001065, allocations: 182.8 kB / 8.135 MB, free: 2.223 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.9463/0.9463, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.001678/0.001678, allocations: 123.3 kB / 247.8 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1467/0.1467, allocations: 37.92 MB / 330.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1586/0.3053, allocations: 59.35 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06418/0.3695, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2194/0.589, allocations: 95.13 MB / 0.5256 GB, free: 9.426 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.5892, allocations: 83.91 kB / 0.5257 GB, free: 9.414 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.04225/0.6315, allocations: 18.92 MB / 0.5442 GB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.6315, allocations: 8 kB / 0.5442 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009686/0.6325, allocations: 155 kB / 0.5444 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/0.6332, allocations: 485.7 kB / 0.5448 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.6332, allocations: 16 kB / 0.5448 GB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.006e-05/0.6333, allocations: 35.89 kB / 0.5449 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006501/0.634, allocations: 401.6 kB / 0.5452 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007526/0.6348, allocations: 0.5247 MB / 0.5458 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.6348, allocations: 4 kB / 0.5458 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.6348, allocations: 0 / 0.5458 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.064e-05/0.6349, allocations: 24.94 kB / 0.5458 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.638, allocations: 2.465 MB / 0.5482 GB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007889/0.6388, allocations: 0.4945 MB / 0.5487 GB, free: 9.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.6391, allocations: 162 kB / 0.5488 GB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.6391, allocations: 8.328 kB / 0.5488 GB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/0.6394, allocations: 239.4 kB / 0.5491 GB, free: 8.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.894e-06/0.6394, allocations: 0 / 0.5491 GB, free: 8.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.0006366/0.6401, allocations: 368.5 kB / 0.5494 GB, free: 8.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.6401, allocations: 143.6 kB / 0.5496 GB, free: 8.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.6404, allocations: 329.6 kB / 0.5499 GB, free: 8.141 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.6405, allocations: 29.77 kB / 0.5499 GB, free: 8.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.6406, allocations: 228 kB / 0.5501 GB, free: 7.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.6407, allocations: 132.7 kB / 0.5502 GB, free: 7.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.6407, allocations: 0 / 0.5502 GB, free: 7.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.6409, allocations: 357.8 kB / 0.5506 GB, free: 7.445 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.6411, allocations: 131.6 kB / 0.5507 GB, free: 7.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.6414, allocations: 239.8 kB / 0.5509 GB, free: 7.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.6416, allocations: 166 kB / 0.5511 GB, free: 7.051 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6416, allocations: 0 / 0.5511 GB, free: 7.051 MB / 362.7 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001001/0.6426, allocations: 0.5565 MB / 0.5516 GB, free: 6.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003046/0.6429, allocations: 1.132 MB / 0.5527 GB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.6429, allocations: 4 kB / 0.5528 GB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.6433, allocations: 129.5 kB / 0.5529 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/0.6437, allocations: 103.4 kB / 0.553 GB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008467/0.6446, allocations: 0.8443 MB / 0.5538 GB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.6451, allocations: 75.61 kB / 0.5539 GB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.6451, allocations: 15.44 kB / 0.5539 GB, free: 4.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.322e-06/0.6451, allocations: 4 kB / 0.5539 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000778/0.6459, allocations: 446.4 kB / 0.5543 GB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.6459, allocations: 4 kB / 0.5543 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.6462, allocations: 113.3 kB / 0.5544 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.6466, allocations: 99.45 kB / 0.5545 GB, free: 3.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.6486, allocations: 2.053 MB / 0.5565 GB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.649, allocations: 63.7 kB / 0.5566 GB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.649, allocations: 15.88 kB / 0.5566 GB, free: 1.969 MB / 362.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 hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.6493, allocations: 135.5 kB / 0.5567 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.369e-05/0.6494, allocations: 43.44 kB / 0.5568 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.65, allocations: 387.5 kB / 0.5571 GB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.65, allocations: 4 kB / 0.5571 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.65, allocations: 3.906 kB / 0.5572 GB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.65, allocations: 4 kB / 0.5572 GB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.6512, allocations: 0.9416 MB / 0.5581 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6512, allocations: 0 / 0.5581 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004703/0.6517, allocations: 99.88 kB / 0.5582 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.841e-05/0.6518, allocations: 32.44 kB / 0.5582 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.6518, allocations: 8 kB / 0.5582 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007664/0.6526, allocations: 1.28 MB / 0.5595 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6526, allocations: 0 / 0.5595 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008504/0.6534, allocations: 0.699 MB / 0.5601 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001168/0.6546, allocations: 1.268 MB / 0.5614 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.6548, allocations: 160.9 kB / 0.5615 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.6549, allocations: 15.48 kB / 0.5615 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.6553, allocations: 43.95 kB / 0.5616 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.891e-05/0.6554, allocations: 30.61 kB / 0.5616 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.6554, allocations: 10.94 kB / 0.5616 GB, free: 13.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002266/0.6557, allocations: 256.8 kB / 0.5619 GB, free: 13.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001777/0.6574, allocations: 230.7 kB / 0.5621 GB, free: 13.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.6576, allocations: 121.9 kB / 0.5622 GB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.6591, allocations: 0.8301 MB / 0.563 GB, free: 12.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6591, allocations: 3.938 kB / 0.563 GB, free: 12.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.6595, allocations: 279.2 kB / 0.5633 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.6599, allocations: 84.02 kB / 0.5634 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.6615, allocations: 0.8769 MB / 0.5642 GB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005328/0.6621, allocations: 0.9394 MB / 0.5651 GB, free: 10.21 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6621, allocations: 4 kB / 0.5651 GB, free: 10.21 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)