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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.00136/0.00136, allocations: 188 kB / 18 MB, free: 5.219 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.471/1.471, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.187/0.187, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001381/0.001381, allocations: 63.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1117, allocations: 55.25 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006875/0.1186, allocations: 5.648 MB / 492.8 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003755/0.1224, allocations: 2.653 MB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004355/0.1229, allocations: 23.92 kB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.124, allocations: 358 kB / 495.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009192/0.1249, allocations: 469.7 kB / 496.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009156/0.1259, allocations: 459 kB / 496.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.127, allocations: 1.068 MB / 497.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007317/0.1277, allocations: 0.5629 MB / 498.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004711/0.1282, allocations: 426.3 kB / 498.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.1287, allocations: 426.2 kB / 499.2 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.87e-05/0.1288, allocations: 72 kB / 499.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006974/0.1295, allocations: 0.4989 MB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.1297, allocations: 231.3 kB / 499.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002984/0.13, allocations: 378 kB / 0.4886 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.1311, allocations: 1.083 MB / 0.4896 GB, free: 9.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1311, allocations: 4 kB / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1311, allocations: 0 / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.1311, allocations: 0 / 0.4897 GB, free: 9.992 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001995/0.1331, allocations: 1.11 MB / 0.4907 GB, free: 8.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1332, allocations: 11.89 kB / 0.4907 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.1344, allocations: 183.8 kB / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008636/0.1352, allocations: 0.5716 MB / 0.4915 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/0.1353, allocations: 41.69 kB / 0.4915 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.1354, allocations: 60.38 kB / 0.4916 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.1367, allocations: 0.7866 MB / 0.4923 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.1368, allocations: 3.938 kB / 0.4923 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.686e-05/0.1368, allocations: 24 kB / 0.4924 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.495e-05/0.1369, allocations: 33.3 kB / 0.4924 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1383, allocations: 0.7388 MB / 0.4931 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003802/0.1421, allocations: 2.9 MB / 0.496 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1435, allocations: 0.5845 MB / 0.4965 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.1442, allocations: 350.8 kB / 0.4969 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.266e-05/0.1442, allocations: 12.53 kB / 0.4969 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007661/0.145, allocations: 426.1 kB / 0.4973 GB, free: 1.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 1.823e-06/0.145, allocations: 0 / 0.4973 GB, free: 1.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004015/0.149, allocations: 2.12 MB / 0.4993 GB, free: 15.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.1491, allocations: 115.4 kB / 0.4995 GB, free: 15.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006272/0.1498, allocations: 486 kB / 0.4999 GB, free: 15.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.1498, allocations: 37.7 kB / 0.5 GB, free: 15.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.15, allocations: 316.5 kB / 0.5003 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1502, allocations: 193.2 kB / 0.5004 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.1504, allocations: 110.2 kB / 0.5006 GB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1505, allocations: 370.8 kB / 0.5009 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005933/0.1511, allocations: 295.2 kB / 0.5012 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.1518, allocations: 403 kB / 0.5016 GB, free: 13.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.153, allocations: 0.7224 MB / 0.5023 GB, free: 12.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.153, allocations: 7.938 kB / 0.5023 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002071/0.1551, allocations: 1.013 MB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.73e-05/0.1552, allocations: 33.7 kB / 0.5033 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1552, allocations: 4 kB / 0.5033 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005972/0.1558, allocations: 185.8 kB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.1563, allocations: 119.7 kB / 0.5036 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004305/0.1606, allocations: 4.127 MB / 0.5076 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006124/0.1612, allocations: 60 kB / 0.5077 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.1613, allocations: 23.98 kB / 0.5077 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008484/0.1621, allocations: 449.2 kB / 0.5081 GB, free: 6.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006128/0.1628, allocations: 390.9 kB / 0.5085 GB, free: 5.781 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001154/0.1639, allocations: 0.6951 MB / 0.5092 GB, free: 5.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.416e-06/0.1639, allocations: 0 / 0.5092 GB, free: 5.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001758/0.1657, allocations: 0.9307 MB / 0.5101 GB, free: 4.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.1658, allocations: 37.61 kB / 0.5101 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1658, allocations: 4 kB / 0.5101 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004886/0.1663, allocations: 178 kB / 0.5103 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.1667, allocations: 111.9 kB / 0.5104 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003476/0.1702, allocations: 3.939 MB / 0.5143 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005415/0.1708, allocations: 55.94 kB / 0.5143 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.1708, allocations: 23.98 kB / 0.5143 GB, free: 15.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.1711, allocations: 228.1 kB / 0.5146 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.1712, allocations: 59.28 kB / 0.5146 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.1729, allocations: 0.8188 MB / 0.5154 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1729, allocations: 4 kB / 0.5154 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.1729, allocations: 4 kB / 0.5154 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.1729, allocations: 7.922 kB / 0.5154 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.1764, allocations: 1.664 MB / 0.5171 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/0.1765, allocations: 4 kB / 0.5171 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006116/0.1771, allocations: 140 kB / 0.5172 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002179/0.1773, allocations: 61.67 kB / 0.5172 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.1774, allocations: 16 kB / 0.5173 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.1794, allocations: 2.894 MB / 0.5201 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1795, allocations: 3.938 kB / 0.5201 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.1817, allocations: 1.31 MB / 0.5214 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/0.182, allocations: 188.3 kB / 0.5216 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.1821, allocations: 12 kB / 0.5216 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.1826, allocations: 59.92 kB / 0.5216 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.1827, allocations: 56.44 kB / 0.5217 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.1828, allocations: 19.98 kB / 0.5217 GB, free: 7.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005248/0.1833, allocations: 342.8 kB / 0.522 GB, free: 7.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1833, allocations: 0 / 0.522 GB, free: 7.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001093/0.1844, allocations: 271.9 kB / 0.5223 GB, free: 6.871 MB / 414.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001735/0.1846, allocations: 115.1 kB / 0.5224 GB, free: 6.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003052/0.1877, allocations: 1.742 MB / 0.5241 GB, free: 4.926 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1877, allocations: 0 / 0.5241 GB, free: 4.926 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.1887, allocations: 0.6065 MB / 0.5247 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007983/0.1896, allocations: 138.3 kB / 0.5248 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.1922, allocations: 1.508 MB / 0.5263 GB, free: 2.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.1928, allocations: 0.947 MB / 0.5272 GB, free: 1.629 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004454/0.1932, allocations: 152.5 kB / 0.5274 GB, free: 1.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.1934, allocations: 47.42 kB / 0.5274 GB, free: 1.434 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1934, allocations: 0 / 0.5274 GB, free: 1.434 MB / 414.1 MB Notification: Performance of Templates: time 0.2334/0.4269, allocations: 10.24 MB / 0.5374 GB, free: 49.43 MB / 414.1 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)