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.001616/0.001621, allocations: 191.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001133/0.001132, allocations: 90.81 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2648/0.2648, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007059/0.0007061, allocations: 8 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1206, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005252/0.1259, allocations: 2.998 MB / 482 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1288, allocations: 1.226 MB / 483.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.129, allocations: 11.94 kB / 483.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.1292, allocations: 31.77 kB / 483.3 MB, free: 13.74 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000613/0.1298, allocations: 131.6 kB / 483.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.1303, allocations: 99.73 kB / 483.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.1307, allocations: 167.6 kB / 483.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000635/0.1313, allocations: 238.9 kB / 483.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.1316, allocations: 99.61 kB / 484 MB, free: 13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.1318, allocations: 75.69 kB / 484.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.1318, allocations: 8 kB / 484.1 MB, free: 12.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003624/0.1322, allocations: 115.7 kB / 484.2 MB, free: 12.81 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.894e-05/0.1323, allocations: 43.89 kB / 484.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.608e-05/0.1324, allocations: 61.58 kB / 484.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004049/0.1328, allocations: 195.6 kB / 484.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1328, allocations: 0 / 484.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1328, allocations: 0 / 484.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1329, allocations: 0 / 484.5 MB, free: 12.51 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.0008241/0.1337, allocations: 470.9 kB / 485 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1337, allocations: 15.91 kB / 485 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009762/0.1347, allocations: 91.58 kB / 485.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.1352, allocations: 254.5 kB / 485.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.1352, allocations: 12.33 kB / 485.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.1353, allocations: 16 kB / 485.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.1359, allocations: 271.9 kB / 485.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.136, allocations: 0 / 485.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.136, allocations: 8 kB / 485.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.834e-05/0.1361, allocations: 12.28 kB / 485.6 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005693/0.1366, allocations: 220.4 kB / 485.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.139, allocations: 1.21 MB / 487.1 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.1393, allocations: 137.2 kB / 487.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1394, allocations: 4.281 kB / 487.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.1394, allocations: 38.5 kB / 487.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 4.398e-06/0.1394, allocations: 0 / 487.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004928/0.1399, allocations: 161.4 kB / 487.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/0.14, allocations: 85.05 kB / 487.5 MB, free: 9.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.1403, allocations: 199 kB / 487.7 MB, free: 9.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.1404, allocations: 29.7 kB / 487.7 MB, free: 9.035 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.1405, allocations: 218.2 kB / 487.9 MB, free: 8.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.239e-05/0.1406, allocations: 51.47 kB / 488 MB, free: 8.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.1406, allocations: 8 kB / 488 MB, free: 8.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1408, allocations: 310.8 kB / 488.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.1409, allocations: 47.97 kB / 488.3 MB, free: 8.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.1411, allocations: 125.9 kB / 488.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.1413, allocations: 64.36 kB / 488.5 MB, free: 8.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1413, allocations: 4 kB / 488.5 MB, free: 8.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004737/0.1418, allocations: 201.2 kB / 488.7 MB, free: 7.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1419, allocations: 4 kB / 488.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1419, allocations: 8 kB / 488.7 MB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.1419, allocations: 7.984 kB / 488.7 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.1423, allocations: 48.27 kB / 488.8 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.1436, allocations: 1.329 MB / 490.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.1438, allocations: 19.88 kB / 490.1 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.1438, allocations: 12.19 kB / 490.1 MB, free: 6.414 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.0001859/0.144, allocations: 153.7 kB / 490.3 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.1441, allocations: 19.81 kB / 490.3 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.1445, allocations: 131 kB / 490.4 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1445, allocations: 4 kB / 490.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1445, allocations: 0 / 490.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1445, allocations: 7.922 kB / 490.4 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009883/0.1455, allocations: 0.4921 MB / 490.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1455, allocations: 0 / 490.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.1458, allocations: 31.92 kB / 491 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.1459, allocations: 4 kB / 491 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.1459, allocations: 0 / 491 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.1472, allocations: 1.337 MB / 492.3 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.1472, allocations: 4 kB / 492.3 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005895/0.1478, allocations: 339.1 kB / 492.6 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.1479, allocations: 104.9 kB / 492.7 MB, free: 3.531 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.148, allocations: 3.953 kB / 492.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1482, allocations: 8 kB / 492.8 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.1482, allocations: 11.92 kB / 492.8 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1483, allocations: 8.062 kB / 492.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002067/0.1485, allocations: 148.4 kB / 492.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1485, allocations: 0 / 492.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004866/0.149, allocations: 51.89 kB / 493 MB, free: 3.305 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.0001446/0.1491, allocations: 99.19 kB / 493.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005332/0.1497, allocations: 132.2 kB / 493.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1497, allocations: 0 / 493.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.15, allocations: 55.91 kB / 493.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.1504, allocations: 27.94 kB / 493.3 MB, free: 2.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.1519, allocations: 0.6403 MB / 493.9 MB, free: 2.309 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.1524, allocations: 0.7595 MB / 494.7 MB, free: 1.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.1525, allocations: 19.38 kB / 494.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1525, allocations: 0 / 494.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of Templates: time 0.007741/0.1602, allocations: 2.913 MB / 497.6 MB, free: 14.58 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)