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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001144/0.001144, allocations: 179.8 kB / 8.349 MB, free: 0.7227 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.921/1.921, allocations: 194.3 MB / 203.1 MB, free: 12.95 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.001694/0.001694, allocations: 128 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2308/0.2308, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.308e-05/2.273e-05, allocations: 4 kB / 390.5 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3238, allocations: 53.23 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4563, allocations: 97.14 MB / 0.5281 GB, free: 412 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4567, allocations: 83.95 kB / 0.5282 GB, free: 328 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3754/0.8321, allocations: 24.13 MB / 0.5518 GB, free: 77.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.8322, allocations: 0 / 0.5518 GB, free: 77.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.979e-05/0.8323, allocations: 16 kB / 0.5518 GB, free: 77.62 MB / 378.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.002058/0.8343, allocations: 0.8896 MB / 0.5527 GB, free: 76.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.8344, allocations: 12.02 kB / 0.5527 GB, free: 76.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002072/0.8365, allocations: 190.9 kB / 0.5529 GB, free: 76.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.8375, allocations: 0.5113 MB / 0.5534 GB, free: 75.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.8376, allocations: 16 kB / 0.5534 GB, free: 75.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.8377, allocations: 39.94 kB / 0.5534 GB, free: 75.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00122/0.839, allocations: 498.5 kB / 0.5539 GB, free: 75.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.8403, allocations: 0.6221 MB / 0.5545 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/0.8404, allocations: 4 kB / 0.5545 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.67e-05/0.8405, allocations: 0 / 0.5545 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.8406, allocations: 41.28 kB / 0.5545 GB, free: 74.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004982/0.8456, allocations: 2.592 MB / 0.5571 GB, free: 72.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.8468, allocations: 482.1 kB / 0.5575 GB, free: 71.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005743/0.8474, allocations: 291 kB / 0.5578 GB, free: 71.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.545e-05/0.8474, allocations: 8.266 kB / 0.5578 GB, free: 71.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006778/0.8481, allocations: 352.8 kB / 0.5582 GB, free: 70.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 5.22e-06/0.8482, allocations: 4 kB / 0.5582 GB, free: 70.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003132/0.8513, allocations: 1.44 MB / 0.5596 GB, free: 69.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.8514, allocations: 115.3 kB / 0.5597 GB, free: 69.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/0.8518, allocations: 333.1 kB / 0.56 GB, free: 68.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.079e-05/0.8519, allocations: 25.7 kB / 0.56 GB, free: 68.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.8521, allocations: 300.5 kB / 0.5603 GB, free: 68.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.8523, allocations: 185.2 kB / 0.5605 GB, free: 68.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.8524, allocations: 0 / 0.5605 GB, free: 68.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.8525, allocations: 366.7 kB / 0.5608 GB, free: 68.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.8529, allocations: 225.2 kB / 0.561 GB, free: 67.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.8534, allocations: 320.6 kB / 0.5614 GB, free: 67.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004524/0.8538, allocations: 262 kB / 0.5616 GB, free: 67.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8538, allocations: 8.031 kB / 0.5616 GB, free: 67.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001772/0.8556, allocations: 0.781 MB / 0.5624 GB, free: 66.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002268/0.8559, allocations: 0.9873 MB / 0.5633 GB, free: 65.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.8559, allocations: 7.984 kB / 0.5633 GB, free: 65.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006938/0.8566, allocations: 178.3 kB / 0.5635 GB, free: 65.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006414/0.8572, allocations: 111.9 kB / 0.5636 GB, free: 65.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/0.8591, allocations: 2.081 MB / 0.5657 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007576/0.8598, allocations: 55.92 kB / 0.5657 GB, free: 62.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.8599, allocations: 19.98 kB / 0.5657 GB, free: 62.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.8599, allocations: 5.719 kB / 0.5657 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001554/0.8615, allocations: 0.6705 MB / 0.5664 GB, free: 62.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.8615, allocations: 4 kB / 0.5664 GB, free: 62.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005763/0.8621, allocations: 157.9 kB / 0.5665 GB, free: 61.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/0.8628, allocations: 119.8 kB / 0.5667 GB, free: 61.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003785/0.8666, allocations: 3.426 MB / 0.57 GB, free: 58.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.8674, allocations: 55.91 kB / 0.5701 GB, free: 58.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-05/0.8675, allocations: 23.94 kB / 0.5701 GB, free: 58.05 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.0003269/0.8678, allocations: 124.2 kB / 0.5702 GB, free: 57.93 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001361/0.8692, allocations: 0.6016 MB / 0.5708 GB, free: 57.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.8693, allocations: 51.34 kB / 0.5708 GB, free: 57.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.8709, allocations: 0.666 MB / 0.5715 GB, free: 56.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.8709, allocations: 8 kB / 0.5715 GB, free: 56.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.8709, allocations: 8.031 kB / 0.5715 GB, free: 56.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.8709, allocations: 3.984 kB / 0.5715 GB, free: 56.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.8738, allocations: 1.421 MB / 0.5729 GB, free: 55.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.8738, allocations: 0 / 0.5729 GB, free: 55.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008753/0.8747, allocations: 135.8 kB / 0.573 GB, free: 54.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.875, allocations: 65.77 kB / 0.5731 GB, free: 54.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/0.8751, allocations: 15.94 kB / 0.5731 GB, free: 54.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.8771, allocations: 2.579 MB / 0.5756 GB, free: 52.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/0.8772, allocations: 4.078 kB / 0.5756 GB, free: 52.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.8792, allocations: 1.181 MB / 0.5768 GB, free: 50.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/0.8796, allocations: 184.4 kB / 0.5769 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-05/0.8797, allocations: 4 kB / 0.577 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.8804, allocations: 59.92 kB / 0.577 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.8806, allocations: 60.38 kB / 0.5771 GB, free: 50.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/0.8807, allocations: 16 kB / 0.5771 GB, free: 50.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004106/0.8811, allocations: 259 kB / 0.5773 GB, free: 50.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8811, allocations: 0 / 0.5773 GB, free: 50.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001587/0.8827, allocations: 232 kB / 0.5775 GB, free: 49.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.002466/0.8852, allocations: 2.227 MB / 0.5797 GB, free: 47.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002972/0.8882, allocations: 1.413 MB / 0.5811 GB, free: 46.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.8882, allocations: 0 / 0.5811 GB, free: 46.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008986/0.8891, allocations: 0.5218 MB / 0.5816 GB, free: 45.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000859/0.89, allocations: 90.38 kB / 0.5817 GB, free: 45.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/0.8932, allocations: 1.23 MB / 0.5829 GB, free: 44.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.8937, allocations: 0.9433 MB / 0.5838 GB, free: 43.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008302/0.8945, allocations: 176.2 kB / 0.584 GB, free: 43.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.8949, allocations: 219.3 kB / 0.5842 GB, free: 42.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8949, allocations: 0 / 0.5842 GB, free: 42.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0417/0.9367, allocations: 13.21 MB / 0.5971 GB, free: 29.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.9369, allocations: 139.1 kB / 0.5972 GB, free: 29.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/3.341, allocations: 0 / 0.5972 GB, free: 29.5 MB / 378.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)