Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000995/0.0009947, allocations: 173 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.38/1.38, 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.0007678/0.0007677, allocations: 94.3 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.1789/0.1789, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004499/0.0004499, allocations: 8 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1415, allocations: 56.34 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004205/0.1458, allocations: 3.079 MB / 482.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.1479, allocations: 1.238 MB / 483.4 MB, free: 13.69 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1481, allocations: 11.94 kB / 483.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.1483, allocations: 35.7 kB / 483.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.1487, allocations: 147.3 kB / 483.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.149, allocations: 95.75 kB / 483.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.1494, allocations: 318.9 kB / 484 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006109/0.1501, allocations: 250.9 kB / 484.2 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.1503, allocations: 103.5 kB / 484.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.1505, allocations: 103.6 kB / 484.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.1505, allocations: 8 kB / 484.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002472/0.1508, allocations: 107.7 kB / 484.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.703e-05/0.1509, allocations: 59.8 kB / 484.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.066e-05/0.1509, allocations: 61.58 kB / 484.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.1512, allocations: 195.5 kB / 484.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1512, allocations: 4 kB / 484.9 MB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1512, allocations: 0 / 484.9 MB, free: 12.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1513, allocations: 0 / 484.9 MB, free: 12.2 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007777/0.152, allocations: 475 kB / 485.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1521, allocations: 8.031 kB / 485.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006992/0.1528, allocations: 83.53 kB / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.1532, allocations: 258.4 kB / 485.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1532, allocations: 8.328 kB / 485.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.1532, allocations: 19.98 kB / 485.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.1537, allocations: 260 kB / 485.9 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1537, allocations: 11.92 kB / 485.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.1538, allocations: 4 kB / 486 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.739e-05/0.1538, allocations: 20.28 kB / 486 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003595/0.1542, allocations: 216.4 kB / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.1559, allocations: 1.218 MB / 487.4 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.1561, allocations: 133.2 kB / 487.5 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.403e-05/0.1562, allocations: 45.77 kB / 487.6 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.1562, allocations: 0 / 487.6 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1562, allocations: 42.56 kB / 487.6 MB, free: 9.184 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.1562, allocations: 0 / 487.6 MB, free: 9.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003548/0.1566, allocations: 161.3 kB / 487.8 MB, free: 9.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.1567, allocations: 77.11 kB / 487.9 MB, free: 8.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.1569, allocations: 203 kB / 488 MB, free: 8.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.1569, allocations: 29.7 kB / 488.1 MB, free: 8.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.157, allocations: 159.9 kB / 488.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.02e-05/0.1571, allocations: 47.36 kB / 488.3 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.1571, allocations: 7.938 kB / 488.3 MB, free: 8.465 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1572, allocations: 330.8 kB / 488.6 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.736e-05/0.1573, allocations: 39.98 kB / 488.7 MB, free: 8.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.1575, allocations: 126 kB / 488.8 MB, free: 7.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1576, allocations: 67.92 kB / 488.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1576, allocations: 7.953 kB / 488.8 MB, free: 7.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002818/0.1579, allocations: 201.6 kB / 489 MB, free: 7.656 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1579, allocations: 4 kB / 489 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1579, allocations: 4 kB / 489.1 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.158, allocations: 4.344 kB / 489.1 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.1582, allocations: 55.91 kB / 489.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1593, allocations: 1.321 MB / 490.4 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1594, allocations: 23.91 kB / 490.5 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.1594, allocations: 8 kB / 490.5 MB, free: 6.105 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001401/0.1596, allocations: 149.7 kB / 490.6 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.1596, allocations: 19.75 kB / 490.6 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.1599, allocations: 151 kB / 490.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1599, allocations: 0 / 490.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.1599, allocations: 0 / 490.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1599, allocations: 3.938 kB / 490.8 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006832/0.1606, allocations: 0.4921 MB / 491.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.1606, allocations: 4 kB / 491.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.1608, allocations: 23.98 kB / 491.3 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1608, allocations: 4 kB / 491.3 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1608, allocations: 0 / 491.3 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.1619, allocations: 1.333 MB / 492.6 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1619, allocations: 0 / 492.6 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004235/0.1623, allocations: 309.9 kB / 492.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.255e-05/0.1624, allocations: 96.89 kB / 493 MB, free: 3.281 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.1624, allocations: 4 kB / 493 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.922e-05/0.1625, allocations: 4 kB / 493 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.1626, allocations: 7.984 kB / 493 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.1626, allocations: 7.953 kB / 493.1 MB, free: 3.258 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001603/0.1628, allocations: 156.4 kB / 493.2 MB, free: 3.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1628, allocations: 4 kB / 493.2 MB, free: 3.102 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003641/0.1631, allocations: 43.91 kB / 493.3 MB, free: 3.059 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001251/0.1633, allocations: 107.1 kB / 493.4 MB, free: 2.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002958/0.1636, allocations: 124.3 kB / 493.5 MB, free: 2.824 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.1636, allocations: 4.125 kB / 493.5 MB, free: 2.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.1637, allocations: 59.84 kB / 493.5 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.1642, allocations: 31.98 kB / 493.6 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.1652, allocations: 0.6514 MB / 494.2 MB, free: 2.039 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.1656, allocations: 0.7404 MB / 495 MB, free: 1.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.1657, allocations: 19.44 kB / 495 MB, free: 1.25 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1657, allocations: 0 / 495 MB, free: 1.25 MB / 330.7 MB Notification: Performance of Templates: time 0.005592/0.1713, allocations: 2.987 MB / 498 MB, free: 14.26 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)