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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") [: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.001114/0.001115, allocations: 190 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.219/1.219, allocations: 194.2 MB / 202.8 MB, free: 8.68 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.001776/0.001776, allocations: 115.2 kB / 247.7 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1848/0.1848, allocations: 37.92 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.142e-06, allocations: 0 / 389.8 MB, free: 78.14 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.0932, allocations: 53.23 MB / 443 MB, free: 25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3138/0.407, allocations: 95.13 MB / 0.5255 GB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.4074, allocations: 87.03 kB / 0.5256 GB, free: 8.832 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0476/0.455, allocations: 18.05 MB / 0.5433 GB, free: 13.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.172e-05/0.4551, allocations: 15.94 kB / 0.5433 GB, free: 13.32 MB / 362.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.002159/0.4572, allocations: 0.8435 MB / 0.5441 GB, free: 12.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4573, allocations: 12.03 kB / 0.5441 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.4587, allocations: 151 kB / 0.5443 GB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.4598, allocations: 483.5 kB / 0.5447 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.4599, allocations: 15.98 kB / 0.5447 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.46, allocations: 35.91 kB / 0.5448 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008579/0.4609, allocations: 403.1 kB / 0.5451 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.4618, allocations: 0.5191 MB / 0.5457 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.4619, allocations: 3.938 kB / 0.5457 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.949e-05/0.4619, allocations: 0 / 0.5457 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.812e-05/0.462, allocations: 40.34 kB / 0.5457 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/0.4662, allocations: 2.458 MB / 0.5481 GB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.4673, allocations: 0.5019 MB / 0.5486 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002768/0.4676, allocations: 155.6 kB / 0.5487 GB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.4677, allocations: 4.328 kB / 0.5487 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/0.4681, allocations: 236.8 kB / 0.549 GB, free: 8.363 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 4.128e-06/0.4681, allocations: 0 / 0.549 GB, free: 8.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.000861/0.469, allocations: 373 kB / 0.5493 GB, free: 8.082 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.4691, allocations: 136.5 kB / 0.5494 GB, free: 7.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.4695, allocations: 329.9 kB / 0.5498 GB, free: 7.652 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.4696, allocations: 25.7 kB / 0.5498 GB, free: 7.621 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.4698, allocations: 231.6 kB / 0.55 GB, free: 7.414 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.4699, allocations: 133.3 kB / 0.5501 GB, free: 7.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/0.47, allocations: 0 / 0.5501 GB, free: 7.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4702, allocations: 361.5 kB / 0.5505 GB, free: 6.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.4705, allocations: 130.7 kB / 0.5506 GB, free: 6.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.4708, allocations: 237.2 kB / 0.5508 GB, free: 6.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.4711, allocations: 165.4 kB / 0.551 GB, free: 6.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4711, allocations: 4 kB / 0.551 GB, free: 6.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001176/0.4723, allocations: 0.5547 MB / 0.5515 GB, free: 6.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006297/0.473, allocations: 1.133 MB / 0.5526 GB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.473, allocations: 4 kB / 0.5526 GB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005231/0.4735, allocations: 131.3 kB / 0.5528 GB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.474, allocations: 95.7 kB / 0.5529 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.4751, allocations: 0.8515 MB / 0.5537 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.4757, allocations: 67.62 kB / 0.5538 GB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.4757, allocations: 23.17 kB / 0.5538 GB, free: 3.879 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.4757, allocations: 3.938 kB / 0.5538 GB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009035/0.4766, allocations: 442.6 kB / 0.5542 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.4767, allocations: 4 kB / 0.5542 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003387/0.477, allocations: 118.3 kB / 0.5543 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.4774, allocations: 95.36 kB / 0.5544 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002607/0.48, allocations: 2.066 MB / 0.5564 GB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.4806, allocations: 59.7 kB / 0.5565 GB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.4806, allocations: 19.5 kB / 0.5565 GB, free: 1.473 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.0002386/0.4809, allocations: 127.6 kB / 0.5566 GB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.481, allocations: 47.44 kB / 0.5567 GB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007495/0.4818, allocations: 390.4 kB / 0.557 GB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.4818, allocations: 4 kB / 0.5571 GB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.4818, allocations: 7.906 kB / 0.5571 GB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4818, allocations: 3.984 kB / 0.5571 GB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.4834, allocations: 0.935 MB / 0.558 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4834, allocations: 0 / 0.558 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000507/0.4839, allocations: 95.88 kB / 0.5581 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.484, allocations: 35.69 kB / 0.5581 GB, free: 160 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.143e-05/0.4841, allocations: 3.062 kB / 0.5581 GB, free: 160 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.4852, allocations: 1.282 MB / 0.5594 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.4852, allocations: 4.031 kB / 0.5594 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001016/0.4862, allocations: 0.6934 MB / 0.56 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.4865, allocations: 166 kB / 0.5602 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.529e-05/0.4866, allocations: 6.359 kB / 0.5602 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004435/0.487, allocations: 47.95 kB / 0.5602 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.4872, allocations: 34.02 kB / 0.5603 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.4872, allocations: 11 kB / 0.5603 GB, free: 14.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003144/0.4875, allocations: 249.2 kB / 0.5605 GB, free: 13.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000941/0.4885, allocations: 230.6 kB / 0.5607 GB, free: 13.61 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.0002551/0.4887, allocations: 115.1 kB / 0.5609 GB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.4906, allocations: 0.8392 MB / 0.5617 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4906, allocations: 0 / 0.5617 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004253/0.4911, allocations: 292 kB / 0.562 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.4916, allocations: 71.61 kB / 0.562 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.4937, allocations: 0.878 MB / 0.5629 GB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007753/0.4945, allocations: 0.9342 MB / 0.5638 GB, free: 10.76 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.4945, allocations: 0 / 0.5638 GB, free: 10.76 MB / 378.7 MB Notification: Performance of Templates: time 0.01633/0.5109, allocations: 8.192 MB / 0.5718 GB, free: 2.617 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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 & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)