Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000912/0.000912, allocations: 171.9 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.57/1.57, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007576/0.0007578, allocations: 94.23 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.1752/0.1752, allocations: 38.07 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 16 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1055, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006434/0.112, allocations: 5.503 MB / 484.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.116, allocations: 2.67 MB / 487.2 MB, free: 9.824 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006634/0.1167, allocations: 43.75 kB / 487.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004908/0.1172, allocations: 115.1 kB / 487.4 MB, free: 9.668 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009574/0.1182, allocations: 390 kB / 487.8 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009572/0.1191, allocations: 339.3 kB / 488.1 MB, free: 8.953 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.1201, allocations: 1.072 MB / 489.2 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009483/0.1211, allocations: 0.6365 MB / 489.8 MB, free: 7.207 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004303/0.1215, allocations: 322.5 kB / 490.1 MB, free: 6.891 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004367/0.122, allocations: 378.4 kB / 490.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.1221, allocations: 24 kB / 490.5 MB, free: 6.496 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005137/0.1226, allocations: 255.3 kB / 490.8 MB, free: 6.246 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1228, allocations: 175.4 kB / 490.9 MB, free: 6.074 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1229, allocations: 145.3 kB / 491.1 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000716/0.1236, allocations: 0.7949 MB / 491.9 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1236, allocations: 0 / 491.9 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1236, allocations: 0 / 491.9 MB, free: 5.129 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1237, allocations: 0 / 491.9 MB, free: 5.129 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001983/0.1256, allocations: 1 MB / 492.9 MB, free: 4.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1257, allocations: 8.031 kB / 492.9 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.1268, allocations: 186.9 kB / 493.1 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008268/0.1277, allocations: 0.5355 MB / 493.6 MB, free: 3.301 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.1277, allocations: 41.31 kB / 493.7 MB, free: 3.262 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.854e-05/0.1278, allocations: 59.98 kB / 493.7 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1293, allocations: 0.7943 MB / 494.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.1293, allocations: 7.906 kB / 494.5 MB, free: 2.363 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.749e-05/0.1294, allocations: 23.98 kB / 494.5 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.786e-05/0.1295, allocations: 49.19 kB / 494.6 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.1309, allocations: 0.7584 MB / 495.3 MB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003917/0.1348, allocations: 2.927 MB / 498.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.1362, allocations: 0.6167 MB / 498.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006734/0.1369, allocations: 370.8 kB / 499.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-05/0.1369, allocations: 8.422 kB / 499.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007835/0.1377, allocations: 442.2 kB / 499.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 2.846e-06/0.1377, allocations: 0 / 499.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004161/0.1419, allocations: 2.191 MB / 0.4901 GB, free: 10.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.142, allocations: 111.4 kB / 0.4902 GB, free: 10.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.1426, allocations: 490 kB / 0.4907 GB, free: 10.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.1427, allocations: 37.7 kB / 0.4907 GB, free: 10.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.1429, allocations: 316.5 kB / 0.491 GB, free: 9.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.1431, allocations: 201 kB / 0.4912 GB, free: 9.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.1431, allocations: 8 kB / 0.4912 GB, free: 9.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1433, allocations: 374.7 kB / 0.4916 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.1439, allocations: 297.1 kB / 0.4919 GB, free: 8.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006527/0.1445, allocations: 422.9 kB / 0.4923 GB, free: 8.445 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006461/0.1452, allocations: 363.8 kB / 0.4926 GB, free: 8.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1452, allocations: 0 / 0.4926 GB, free: 8.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002131/0.1473, allocations: 1.056 MB / 0.4936 GB, free: 7.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.1475, allocations: 207.3 kB / 0.4938 GB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1475, allocations: 4 kB / 0.4938 GB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006814/0.1482, allocations: 217.1 kB / 0.4941 GB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004897/0.1487, allocations: 115.9 kB / 0.4942 GB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.1529, allocations: 3.861 MB / 0.4979 GB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.1535, allocations: 63.92 kB / 0.498 GB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.1536, allocations: 24 kB / 0.498 GB, free: 2.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.812e-06/0.1536, allocations: 7.938 kB / 0.498 GB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00172/0.1553, allocations: 0.883 MB / 0.4989 GB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1553, allocations: 4 kB / 0.4989 GB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004827/0.1558, allocations: 173.9 kB / 0.4991 GB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.1563, allocations: 123.8 kB / 0.4992 GB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.1596, allocations: 3.607 MB / 0.5027 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000556/0.1602, allocations: 59.94 kB / 0.5028 GB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.1602, allocations: 24 kB / 0.5028 GB, free: 13.05 MB / 362.7 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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.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 (59): * Single equations (assignments): 56 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004105/0.1607, allocations: 309 kB / 0.5031 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.662e-05/0.1608, allocations: 63.25 kB / 0.5031 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.1624, allocations: 0.8577 MB / 0.504 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.1625, allocations: 8 kB / 0.504 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1625, allocations: 0 / 0.504 GB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.1625, allocations: 3.984 kB / 0.504 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/0.1652, allocations: 1.702 MB / 0.5056 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1652, allocations: 4.188 kB / 0.5057 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006203/0.1658, allocations: 135.8 kB / 0.5058 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002264/0.166, allocations: 61.67 kB / 0.5058 GB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.502e-05/0.1661, allocations: 19.98 kB / 0.5059 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001974/0.1681, allocations: 2.697 MB / 0.5085 GB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1681, allocations: 4.031 kB / 0.5085 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.1704, allocations: 1.345 MB / 0.5098 GB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.1707, allocations: 192.3 kB / 0.51 GB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.1708, allocations: 20 kB / 0.51 GB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.1713, allocations: 59.92 kB / 0.5101 GB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.1714, allocations: 56.45 kB / 0.5101 GB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.1715, allocations: 23.98 kB / 0.5101 GB, free: 5.062 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005448/0.172, allocations: 338.8 kB / 0.5105 GB, free: 4.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.172, allocations: 0 / 0.5105 GB, free: 4.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001003/0.1731, allocations: 264 kB / 0.5107 GB, free: 4.477 MB / 362.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) * 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 (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.0001852/0.1732, allocations: 119.1 kB / 0.5108 GB, free: 4.352 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.1764, allocations: 1.774 MB / 0.5126 GB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1764, allocations: 0 / 0.5126 GB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009969/0.1774, allocations: 0.6219 MB / 0.5132 GB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.1782, allocations: 122 kB / 0.5133 GB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.183/0.3612, allocations: 1.846 MB / 0.5151 GB, free: 51.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008826/0.3621, allocations: 0.9466 MB / 0.516 GB, free: 50.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004638/0.3626, allocations: 54.98 kB / 0.5161 GB, free: 50.58 MB / 362.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3627, allocations: 2.516 kB / 0.5161 GB, free: 50.58 MB / 362.7 MB Notification: Performance of Templates: time 0.03145/0.3941, allocations: 14.02 MB / 0.5298 GB, free: 46.29 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)