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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") [: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.001054/0.001054, allocations: 191.3 kB / 8.139 MB, free: 2.203 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.284/1.284, allocations: 194.2 MB / 202.8 MB, free: 8.809 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.001807/0.001807, allocations: 121.9 kB / 247.7 MB, free: 6.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1671/0.1671, allocations: 37.92 MB / 330.5 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.292e-06/6.332e-06, allocations: 0 / 389.8 MB, free: 78.1 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/0.09307, allocations: 53.24 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.4122, allocations: 97.1 MB / 0.5275 GB, free: 8.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.4125, allocations: 82.73 kB / 0.5276 GB, free: 8.727 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06257/0.4751, allocations: 23.82 MB / 0.5508 GB, free: 7.387 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001006/0.4753, allocations: 23.92 kB / 0.5508 GB, free: 7.363 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002313/0.4776, allocations: 0.8992 MB / 0.5517 GB, free: 6.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4777, allocations: 12.03 kB / 0.5517 GB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.4795, allocations: 190.9 kB / 0.5519 GB, free: 6.254 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.4806, allocations: 0.5179 MB / 0.5524 GB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.4807, allocations: 16 kB / 0.5524 GB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.4809, allocations: 32 kB / 0.5525 GB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001032/0.4819, allocations: 0.4985 MB / 0.5529 GB, free: 5.414 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.483, allocations: 0.6262 MB / 0.5536 GB, free: 4.926 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.4831, allocations: 3.906 kB / 0.5536 GB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.331e-05/0.4831, allocations: 7.812 kB / 0.5536 GB, free: 4.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.416e-05/0.4832, allocations: 33.3 kB / 0.5536 GB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004378/0.4876, allocations: 2.614 MB / 0.5561 GB, free: 2.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007753/0.4884, allocations: 378 kB / 0.5565 GB, free: 2.453 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004712/0.4889, allocations: 305.1 kB / 0.5568 GB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.489, allocations: 12.42 kB / 0.5568 GB, free: 2.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005121/0.4895, allocations: 351.9 kB / 0.5571 GB, free: 1.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 3.807e-06/0.4895, allocations: 0 / 0.5571 GB, free: 1.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.002653/0.4922, allocations: 1.459 MB / 0.5586 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.4922, allocations: 107.3 kB / 0.5587 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.4927, allocations: 325.6 kB / 0.559 GB, free: 408 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.861e-05/0.4927, allocations: 25.7 kB / 0.559 GB, free: 376 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.4929, allocations: 241.7 kB / 0.5592 GB, free: 156 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.4931, allocations: 189.2 kB / 0.5594 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.4932, allocations: 4.031 kB / 0.5594 GB, free: 15.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4933, allocations: 364.4 kB / 0.5598 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.4937, allocations: 226.2 kB / 0.56 GB, free: 15.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.4942, allocations: 327.3 kB / 0.5603 GB, free: 15.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004604/0.4946, allocations: 265.8 kB / 0.5606 GB, free: 15.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.4947, allocations: 4 kB / 0.5606 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001788/0.4965, allocations: 0.7997 MB / 0.5613 GB, free: 14.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004403/0.4969, allocations: 0.9575 MB / 0.5623 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4969, allocations: 4 kB / 0.5623 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006197/0.4976, allocations: 183.9 kB / 0.5625 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.4981, allocations: 120.5 kB / 0.5626 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/0.5003, allocations: 2.075 MB / 0.5646 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005973/0.5009, allocations: 52.02 kB / 0.5646 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.501, allocations: 26.98 kB / 0.5647 GB, free: 11.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.403e-06/0.501, allocations: 4 kB / 0.5647 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001236/0.5022, allocations: 0.6615 MB / 0.5653 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.5022, allocations: 0 / 0.5653 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004863/0.5027, allocations: 165 kB / 0.5655 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005157/0.5033, allocations: 119.4 kB / 0.5656 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.5069, allocations: 3.394 MB / 0.5689 GB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.5075, allocations: 47.95 kB / 0.569 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.752e-05/0.5075, allocations: 26.48 kB / 0.569 GB, free: 7.031 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.0002172/0.5078, allocations: 116.6 kB / 0.5691 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.5079, allocations: 55.34 kB / 0.5691 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.5092, allocations: 0.6789 MB / 0.5698 GB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.5092, allocations: 8 kB / 0.5698 GB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5092, allocations: 3.938 kB / 0.5698 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.5092, allocations: 7.984 kB / 0.5698 GB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.5122, allocations: 1.883 MB / 0.5717 GB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.5122, allocations: 4 kB / 0.5717 GB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006639/0.5129, allocations: 140.3 kB / 0.5718 GB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002489/0.5132, allocations: 61.62 kB / 0.5719 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/0.5132, allocations: 15.98 kB / 0.5719 GB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.5153, allocations: 2.566 MB / 0.5744 GB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/0.5153, allocations: 11.98 kB / 0.5744 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001826/0.5171, allocations: 1.399 MB / 0.5758 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.5174, allocations: 180.4 kB / 0.5759 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.5175, allocations: 15.89 kB / 0.5759 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.5181, allocations: 55.95 kB / 0.576 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5183, allocations: 56.3 kB / 0.5761 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.5183, allocations: 20 kB / 0.5761 GB, free: 15.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003201/0.5186, allocations: 255.1 kB / 0.5763 GB, free: 15.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00112/0.5198, allocations: 228.2 kB / 0.5765 GB, free: 14.82 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.000235/0.52, allocations: 127 kB / 0.5767 GB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.5226, allocations: 1.343 MB / 0.578 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5226, allocations: 0 / 0.578 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009042/0.5235, allocations: 0.5412 MB / 0.5785 GB, free: 12.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006954/0.5242, allocations: 89.66 kB / 0.5786 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.527, allocations: 1.21 MB / 0.5798 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009393/0.5279, allocations: 0.9849 MB / 0.5807 GB, free: 10.36 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5279, allocations: 0 / 0.5807 GB, free: 10.36 MB / 394.7 MB Notification: Performance of Templates: time 0.01871/0.5467, allocations: 10.79 MB / 0.5913 GB, free: 15.57 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (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 & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)