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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 107.3 kB / 17.69 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 188.1 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1611/0.1611, allocations: 37.98 MB / 309.8 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 63.91 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.09119, allocations: 55.24 MB / 487.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006195/0.09743, allocations: 5.153 MB / 492.9 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003174/0.1006, allocations: 2.191 MB / 495.1 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003186/0.101, allocations: 23.88 kB / 495.1 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008072/0.1018, allocations: 254.5 kB / 495.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000667/0.1025, allocations: 342.1 kB / 495.7 MB, free: 388 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007652/0.1033, allocations: 395.2 kB / 496 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007966/0.1041, allocations: 0.9126 MB / 497 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006241/0.1047, allocations: 0.5083 MB / 497.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.1051, allocations: 346.7 kB / 497.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004017/0.1055, allocations: 362.3 kB / 498.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.884e-05/0.1056, allocations: 68 kB / 498.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004987/0.1061, allocations: 347.2 kB / 498.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.1063, allocations: 183.5 kB / 498.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002766/0.1066, allocations: 338.2 kB / 499.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008255/0.1074, allocations: 0.9228 MB / 0.4883 GB, free: 12.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1074, allocations: 0 / 0.4883 GB, free: 12.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1074, allocations: 0 / 0.4883 GB, free: 12.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1075, allocations: 4 kB / 0.4883 GB, free: 12.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001745/0.1092, allocations: 1.038 MB / 0.4893 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.1093, allocations: 11.89 kB / 0.4893 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007897/0.1101, allocations: 144 kB / 0.4894 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007883/0.1109, allocations: 0.5365 MB / 0.49 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.1109, allocations: 41.38 kB / 0.49 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.486e-05/0.111, allocations: 56.31 kB / 0.4901 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.1121, allocations: 0.6866 MB / 0.4907 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1122, allocations: 3.906 kB / 0.4907 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.1122, allocations: 20 kB / 0.4908 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.6e-05/0.1123, allocations: 28.98 kB / 0.4908 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.1135, allocations: 0.601 MB / 0.4914 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.1168, allocations: 2.677 MB / 0.494 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.118, allocations: 0.6006 MB / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.1185, allocations: 214.2 kB / 0.4948 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.1185, allocations: 4.328 kB / 0.4948 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005874/0.1191, allocations: 309.6 kB / 0.4951 GB, free: 4.734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.923e-06/0.1192, allocations: 0 / 0.4951 GB, free: 4.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001721/0.1209, allocations: 0.7524 MB / 0.4958 GB, free: 3.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.121, allocations: 144.6 kB / 0.496 GB, free: 3.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.1216, allocations: 0.4981 MB / 0.4964 GB, free: 3.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.1217, allocations: 33.7 kB / 0.4965 GB, free: 3.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.1219, allocations: 303.9 kB / 0.4968 GB, free: 2.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.122, allocations: 145.9 kB / 0.4969 GB, free: 2.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1222, allocations: 86.25 kB / 0.497 GB, free: 2.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1223, allocations: 362.8 kB / 0.4973 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/0.1228, allocations: 203 kB / 0.4975 GB, free: 2.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.1233, allocations: 307.2 kB / 0.4978 GB, free: 1.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009591/0.1243, allocations: 0.5216 MB / 0.4983 GB, free: 1.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.778e-06/0.1243, allocations: 4 kB / 0.4983 GB, free: 1.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001674/0.126, allocations: 0.7686 MB / 0.4991 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.126, allocations: 37.69 kB / 0.4991 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1261, allocations: 4 kB / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004719/0.1265, allocations: 145.1 kB / 0.4993 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003682/0.1269, allocations: 95.75 kB / 0.4993 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/0.1301, allocations: 2.647 MB / 0.5019 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004892/0.1306, allocations: 79.55 kB / 0.502 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.1306, allocations: 20 kB / 0.502 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005802/0.1312, allocations: 333.1 kB / 0.5023 GB, free: 12.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004672/0.1317, allocations: 299.2 kB / 0.5026 GB, free: 12.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008434/0.1325, allocations: 0.4986 MB / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.003e-06/0.1325, allocations: 0 / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001313/0.1339, allocations: 0.6942 MB / 0.5038 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.1339, allocations: 33.7 kB / 0.5038 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1339, allocations: 4 kB / 0.5038 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003353/0.1343, allocations: 124.8 kB / 0.5039 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.1346, allocations: 87.81 kB / 0.504 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.137, allocations: 2.455 MB / 0.5064 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/0.1375, allocations: 63.55 kB / 0.5065 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.1376, allocations: 20 kB / 0.5065 GB, free: 8.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.1377, allocations: 216.3 kB / 0.5067 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.1378, allocations: 55.34 kB / 0.5068 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.139, allocations: 0.5121 MB / 0.5073 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.139, allocations: 4 kB / 0.5073 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.139, allocations: 4 kB / 0.5073 GB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.139, allocations: 7.984 kB / 0.5073 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.1407, allocations: 1.171 MB / 0.5084 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1407, allocations: 3.938 kB / 0.5084 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.1411, allocations: 91.88 kB / 0.5085 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.416e-05/0.1412, allocations: 32.78 kB / 0.5085 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.1413, allocations: 8 kB / 0.5086 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008546/0.1421, allocations: 1.45 MB / 0.51 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1422, allocations: 3.938 kB / 0.51 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.1437, allocations: 0.8385 MB / 0.5108 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.1439, allocations: 172.3 kB / 0.511 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.348e-05/0.1439, allocations: 19.94 kB / 0.511 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003793/0.1443, allocations: 43.88 kB / 0.511 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.376e-05/0.1444, allocations: 36.19 kB / 0.5111 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.1445, allocations: 12 kB / 0.5111 GB, free: 3.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004738/0.1449, allocations: 354.8 kB / 0.5114 GB, free: 3.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1449, allocations: 4 kB / 0.5114 GB, free: 3.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008152/0.1458, allocations: 247.4 kB / 0.5116 GB, free: 2.855 MB / 398.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001329/0.1459, allocations: 123.3 kB / 0.5118 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.1479, allocations: 1.13 MB / 0.5129 GB, free: 1.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1479, allocations: 4.062 kB / 0.5129 GB, free: 1.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005844/0.1485, allocations: 330.5 kB / 0.5132 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006385/0.1492, allocations: 126.5 kB / 0.5133 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.1513, allocations: 1.27 MB / 0.5145 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004727/0.1518, allocations: 0.8981 MB / 0.5154 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.1519, allocations: 39.44 kB / 0.5155 GB, free: 14.81 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1519, allocations: 3.938 kB / 0.5155 GB, free: 14.81 MB / 414.1 MB Notification: Performance of Templates: time 0.01194/0.1639, allocations: 9.635 MB / 0.5249 GB, free: 5.156 MB / 414.1 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)