Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001503, allocations: 177.2 kB / 15.78 MB, free: 6.352 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.838/1.838, allocations: 205.4 MB / 221.9 MB, free: 13.75 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.0008297/0.0008296, allocations: 86.3 kB / 270.3 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1717/0.1717, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003729, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1055, allocations: 56.34 MB / 479.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006369/0.1119, allocations: 6.11 MB / 485.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.115, allocations: 1.537 MB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005137/0.1156, allocations: 51.62 kB / 486.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004128/0.116, allocations: 99.14 kB / 486.9 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1172, allocations: 381.8 kB / 487.2 MB, free: 9.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005647/0.1178, allocations: 207.7 kB / 487.4 MB, free: 9.617 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000969/0.1188, allocations: 0.7707 MB / 488.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.1191, allocations: 126.5 kB / 488.3 MB, free: 8.715 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004513/0.1195, allocations: 262.7 kB / 488.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005145/0.1201, allocations: 318.9 kB / 488.9 MB, free: 8.145 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.1201, allocations: 20 kB / 488.9 MB, free: 8.125 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.1202, allocations: 16 kB / 488.9 MB, free: 8.109 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.1204, allocations: 147.5 kB / 489.1 MB, free: 7.965 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1206, allocations: 109.5 kB / 489.2 MB, free: 7.852 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.1209, allocations: 355.1 kB / 489.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1209, allocations: 3.938 kB / 489.5 MB, free: 7.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1209, allocations: 4 kB / 489.5 MB, free: 7.496 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.121, allocations: 0 / 489.5 MB, free: 7.496 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001331/0.1223, allocations: 0.7189 MB / 490.3 MB, free: 6.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1223, allocations: 12.03 kB / 490.3 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.778e-05/0.1224, allocations: 51.34 kB / 490.3 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.1231, allocations: 415.4 kB / 490.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.1232, allocations: 29 kB / 490.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.1233, allocations: 36 kB / 490.8 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007725/0.124, allocations: 455.6 kB / 491.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1241, allocations: 0 / 491.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1241, allocations: 12 kB / 491.2 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.1241, allocations: 15.95 kB / 491.3 MB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.1247, allocations: 312.4 kB / 491.6 MB, free: 5.344 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.127, allocations: 1.779 MB / 493.3 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002337/0.1273, allocations: 143.6 kB / 493.5 MB, free: 3.281 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.697e-05/0.1274, allocations: 54.67 kB / 493.5 MB, free: 3.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.1274, allocations: 4 kB / 493.5 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.228e-05/0.1275, allocations: 34.56 kB / 493.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.1275, allocations: 3.938 kB / 493.6 MB, free: 3.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009778/0.1285, allocations: 0.6038 MB / 494.2 MB, free: 2.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/0.1286, allocations: 110.8 kB / 494.3 MB, free: 2.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/0.1289, allocations: 369.5 kB / 494.7 MB, free: 2.004 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.129, allocations: 25.7 kB / 494.7 MB, free: 1.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002971/0.1293, allocations: 279.4 kB / 494.9 MB, free: 1.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/0.1294, allocations: 55.25 kB / 495 MB, free: 1.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.1294, allocations: 8 kB / 495 MB, free: 1.633 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1296, allocations: 350.8 kB / 495.4 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.841e-05/0.1297, allocations: 43.98 kB / 495.4 MB, free: 1.238 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1299, allocations: 198.9 kB / 495.6 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.13, allocations: 84.3 kB / 495.7 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.13, allocations: 11.88 kB / 495.7 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004064/0.1305, allocations: 284.7 kB / 496 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1305, allocations: 4.625 kB / 496 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1305, allocations: 8 kB / 496 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.1305, allocations: 8 kB / 496 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.1308, allocations: 71.91 kB / 496.1 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.1308, allocations: 11.94 kB / 496.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.131, allocations: 19.83 kB / 496.1 MB, free: 488 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.131, allocations: 12 kB / 496.1 MB, free: 476 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000203/0.1312, allocations: 177.8 kB / 496.3 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.122e-05/0.1313, allocations: 35.58 kB / 496.3 MB, free: 252 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.1316, allocations: 184.5 kB / 496.5 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1317, allocations: 0 / 496.5 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1317, allocations: 4.438 kB / 496.5 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1317, allocations: 3.984 kB / 496.5 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006733/0.1324, allocations: 0.5226 MB / 497 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1324, allocations: 4 kB / 497 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.1326, allocations: 35.98 kB / 497.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1326, allocations: 0 / 497.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.1326, allocations: 8.031 kB / 497.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1326, allocations: 3.938 kB / 497.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1326, allocations: 7.938 kB / 497.1 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.133, allocations: 396.4 kB / 497.5 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.478e-05/0.1331, allocations: 112.6 kB / 497.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.1332, allocations: 8 kB / 497.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.1334, allocations: 8.031 kB / 497.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.1334, allocations: 11.92 kB / 497.6 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.1334, allocations: 8 kB / 497.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002485/0.1337, allocations: 251.2 kB / 497.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1337, allocations: 0 / 497.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000385/0.1341, allocations: 68 kB / 497.9 MB, free: 14.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001278/0.1342, allocations: 107.2 kB / 498 MB, free: 14.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.1345, allocations: 151.7 kB / 498.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1345, allocations: 0 / 498.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1346, allocations: 61.09 kB / 498.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000657/0.1353, allocations: 89.58 kB / 498.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.1368, allocations: 1.11 MB / 499.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.1373, allocations: 0.8389 MB / 0.4885 GB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.829e-05/0.1374, allocations: 35.44 kB / 0.4886 GB, free: 12.07 MB / 346.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1374, allocations: 0 / 0.4886 GB, free: 12.07 MB / 346.7 MB Notification: Performance of Templates: time 0.006791/0.1442, allocations: 4.581 MB / 0.493 GB, free: 7.496 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)