Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001385/0.001385, allocations: 174.3 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008012/0.0008012, allocations: 102.2 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1708/0.1708, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003733, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 56.33 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.00558/0.1197, allocations: 4.875 MB / 483.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.1234, allocations: 2.18 MB / 486.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000444/0.1238, allocations: 31.81 kB / 486.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004482/0.1243, allocations: 99.19 kB / 486.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007021/0.125, allocations: 278.4 kB / 486.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00078/0.1258, allocations: 295.4 kB / 486.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008691/0.1267, allocations: 0.8813 MB / 487.7 MB, free: 9.375 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008271/0.1275, allocations: 0.5547 MB / 488.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003668/0.1279, allocations: 266.7 kB / 488.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.1283, allocations: 290.6 kB / 488.8 MB, free: 8.242 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.221e-05/0.1283, allocations: 27.94 kB / 488.8 MB, free: 8.215 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003339/0.1287, allocations: 159.6 kB / 489 MB, free: 8.059 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.1288, allocations: 135.5 kB / 489.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.129, allocations: 141.3 kB / 489.2 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006563/0.1297, allocations: 0.678 MB / 489.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1297, allocations: 0 / 489.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1297, allocations: 0 / 489.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1297, allocations: 0 / 489.9 MB, free: 7.102 MB / 330.7 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.001825/0.1315, allocations: 0.9293 MB / 490.8 MB, free: 6.113 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1316, allocations: 8.031 kB / 490.9 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007625/0.1323, allocations: 147 kB / 491 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007717/0.1331, allocations: 0.5004 MB / 491.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.359e-05/0.1332, allocations: 44.97 kB / 491.5 MB, free: 5.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.046e-05/0.1333, allocations: 48 kB / 491.6 MB, free: 5.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.1345, allocations: 0.6865 MB / 492.3 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.1345, allocations: 0 / 492.3 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.222e-05/0.1345, allocations: 23.98 kB / 492.3 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.783e-05/0.1346, allocations: 28.95 kB / 492.3 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1359, allocations: 0.6323 MB / 493 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.1392, allocations: 2.712 MB / 495.7 MB, free: 1.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.1405, allocations: 0.6366 MB / 496.3 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.141, allocations: 222.3 kB / 496.5 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.1411, allocations: 8.328 kB / 496.5 MB, free: 172 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006234/0.1417, allocations: 321.9 kB / 496.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 1.724e-06/0.1417, allocations: 0 / 496.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.001783/0.1435, allocations: 0.7992 MB / 497.6 MB, free: 15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.1436, allocations: 140.7 kB / 497.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006458/0.1443, allocations: 494.1 kB / 498.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.1443, allocations: 37.7 kB / 498.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.1445, allocations: 312 kB / 498.6 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.1447, allocations: 137.9 kB / 498.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.1447, allocations: 8 kB / 498.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.1449, allocations: 366.8 kB / 499.1 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/0.1454, allocations: 201 kB / 499.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.146, allocations: 331.2 kB / 499.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/0.1466, allocations: 261.6 kB / 499.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1466, allocations: 0 / 499.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001766/0.1484, allocations: 0.8268 MB / 0.489 GB, free: 11.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.1485, allocations: 219 kB / 0.4892 GB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1485, allocations: 7.938 kB / 0.4892 GB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005449/0.1491, allocations: 164.1 kB / 0.4893 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000376/0.1495, allocations: 95.81 kB / 0.4894 GB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.1525, allocations: 2.472 MB / 0.4919 GB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.153, allocations: 83.64 kB / 0.4919 GB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.1531, allocations: 27.92 kB / 0.492 GB, free: 8.555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.1531, allocations: 4 kB / 0.492 GB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001302/0.1544, allocations: 0.6346 MB / 0.4926 GB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1544, allocations: 4 kB / 0.4926 GB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.1547, allocations: 124.8 kB / 0.4927 GB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.1551, allocations: 104.1 kB / 0.4928 GB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.1574, allocations: 2.237 MB / 0.495 GB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004216/0.1578, allocations: 75.48 kB / 0.4951 GB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.1578, allocations: 24.06 kB / 0.4951 GB, free: 5.211 MB / 346.7 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (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 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003082/0.1582, allocations: 296.7 kB / 0.4954 GB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.1582, allocations: 55.34 kB / 0.4954 GB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.1594, allocations: 0.5421 MB / 0.496 GB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1594, allocations: 4 kB / 0.496 GB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1594, allocations: 4 kB / 0.496 GB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1594, allocations: 3.984 kB / 0.496 GB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.1613, allocations: 1.203 MB / 0.4971 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1613, allocations: 0 / 0.4971 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.1617, allocations: 95.88 kB / 0.4972 GB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.019e-05/0.1618, allocations: 28.84 kB / 0.4973 GB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.1619, allocations: 4 kB / 0.4973 GB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008993/0.1628, allocations: 1.352 MB / 0.4986 GB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1628, allocations: 3.953 kB / 0.4986 GB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.1644, allocations: 0.892 MB / 0.4995 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.1646, allocations: 172.6 kB / 0.4996 GB, free: 312 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/0.1647, allocations: 19.94 kB / 0.4996 GB, free: 292 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.1651, allocations: 51.95 kB / 0.4997 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.166e-05/0.1652, allocations: 35.94 kB / 0.4997 GB, free: 204 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.1652, allocations: 19.92 kB / 0.4997 GB, free: 184 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004892/0.1657, allocations: 354.8 kB / 0.5001 GB, free: 15.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1657, allocations: 8 kB / 0.5001 GB, free: 15.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007649/0.1665, allocations: 251.3 kB / 0.5003 GB, free: 15.58 MB / 362.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) * 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 (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.0001349/0.1666, allocations: 107.2 kB / 0.5004 GB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.1686, allocations: 1.172 MB / 0.5016 GB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1686, allocations: 0 / 0.5016 GB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.1693, allocations: 366.8 kB / 0.5019 GB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.1699, allocations: 110.2 kB / 0.502 GB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.1721, allocations: 1.515 MB / 0.5035 GB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.1726, allocations: 0.902 MB / 0.5044 GB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.1727, allocations: 35.44 kB / 0.5044 GB, free: 11.25 MB / 362.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1727, allocations: 0 / 0.5044 GB, free: 11.25 MB / 362.7 MB Notification: Performance of Templates: time 0.0117/0.1844, allocations: 9.551 MB / 0.5138 GB, free: 1.688 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)