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.001627/0.001626, allocations: 185.6 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.089/2.089, allocations: 205.4 MB / 221.9 MB, free: 13.79 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.001191/0.001191, allocations: 94.84 kB / 270.2 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2789/0.2789, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004624/0.0004626, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.009525/0.1222, allocations: 5.839 MB / 484.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00416/0.1264, allocations: 1.576 MB / 486.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007755/0.1273, allocations: 51.62 kB / 486.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.1276, allocations: 83.34 kB / 486.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001489/0.1291, allocations: 358.8 kB / 486.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007982/0.13, allocations: 199.7 kB / 487.1 MB, free: 9.914 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008631/0.1309, allocations: 395.1 kB / 487.5 MB, free: 9.527 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.1312, allocations: 134.5 kB / 487.6 MB, free: 9.391 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005385/0.1318, allocations: 235.1 kB / 487.9 MB, free: 9.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005861/0.1324, allocations: 235.2 kB / 488.1 MB, free: 8.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.415e-05/0.1325, allocations: 20 kB / 488.1 MB, free: 8.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1326, allocations: 16 kB / 488.1 MB, free: 8.895 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.1328, allocations: 127.6 kB / 488.3 MB, free: 8.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.133, allocations: 113.5 kB / 488.4 MB, free: 8.652 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005692/0.1336, allocations: 363 kB / 488.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1336, allocations: 0 / 488.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1336, allocations: 0 / 488.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1336, allocations: 4 kB / 488.7 MB, free: 8.293 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.001828/0.1355, allocations: 0.7188 MB / 489.4 MB, free: 7.527 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.1355, allocations: 16.03 kB / 489.5 MB, free: 7.512 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.1357, allocations: 55.28 kB / 489.5 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.1367, allocations: 411.5 kB / 489.9 MB, free: 7.016 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.1367, allocations: 25 kB / 489.9 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.815e-05/0.1369, allocations: 36 kB / 490 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.1379, allocations: 451.6 kB / 490.4 MB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.138, allocations: 7.938 kB / 490.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.313e-05/0.138, allocations: 16 kB / 490.4 MB, free: 6.453 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.1381, allocations: 11.95 kB / 490.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008448/0.1389, allocations: 312.5 kB / 490.8 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.1422, allocations: 1.771 MB / 492.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.1426, allocations: 135.7 kB / 492.7 MB, free: 4.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1426, allocations: 4.062 kB / 492.7 MB, free: 4.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.1427, allocations: 42.67 kB / 492.7 MB, free: 4.039 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.177e-06/0.1427, allocations: 3.938 kB / 492.7 MB, free: 4.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001526/0.1442, allocations: 0.5999 MB / 493.3 MB, free: 3.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.1443, allocations: 110.8 kB / 493.4 MB, free: 3.246 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.145, allocations: 377.6 kB / 493.8 MB, free: 2.867 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.145, allocations: 25.7 kB / 493.8 MB, free: 2.836 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.1453, allocations: 321.8 kB / 494.1 MB, free: 2.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.604e-05/0.1454, allocations: 55.25 kB / 494.2 MB, free: 2.465 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.1454, allocations: 4 kB / 494.2 MB, free: 2.461 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1456, allocations: 322.8 kB / 494.5 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.1457, allocations: 43.98 kB / 494.5 MB, free: 2.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.146, allocations: 198.9 kB / 494.7 MB, free: 1.832 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.1463, allocations: 96.22 kB / 494.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.1463, allocations: 0 / 494.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006793/0.147, allocations: 265 kB / 495.1 MB, free: 1.473 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.147, allocations: 4 kB / 495.1 MB, free: 1.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.1471, allocations: 11.94 kB / 495.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.1471, allocations: 8 kB / 495.1 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.1476, allocations: 67.91 kB / 495.2 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.243e-05/0.1476, allocations: 12.56 kB / 495.2 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.148, allocations: 15.94 kB / 495.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.1481, allocations: 16 kB / 495.2 MB, free: 1.34 MB / 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.0003397/0.1484, allocations: 173.8 kB / 495.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.1486, allocations: 39.48 kB / 495.4 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004915/0.1491, allocations: 180.6 kB / 495.6 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1491, allocations: 4 kB / 495.6 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1491, allocations: 0 / 495.6 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.1491, allocations: 4 kB / 495.6 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.1502, allocations: 0.5264 MB / 496.1 MB, free: 356 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1502, allocations: 0 / 496.1 MB, free: 356 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.1506, allocations: 31.98 kB / 496.2 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.1506, allocations: 4 kB / 496.2 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.1506, allocations: 4 kB / 496.2 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.1507, allocations: 8.375 kB / 496.2 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1507, allocations: 0 / 496.2 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00074/0.1514, allocations: 437.5 kB / 496.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1516, allocations: 108.6 kB / 496.7 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.259e-05/0.1517, allocations: 16.03 kB / 496.7 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.152, allocations: 4 kB / 496.7 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.073e-05/0.152, allocations: 23.88 kB / 496.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.1521, allocations: 4 kB / 496.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004304/0.1525, allocations: 247.2 kB / 497 MB, free: 15.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1525, allocations: 0 / 497 MB, free: 15.42 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006829/0.1532, allocations: 76 kB / 497.1 MB, free: 15.35 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.0001535/0.1534, allocations: 95.25 kB / 497.2 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004637/0.1539, allocations: 151.7 kB / 497.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1539, allocations: 0 / 497.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.1541, allocations: 65.16 kB / 497.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.1549, allocations: 89.52 kB / 497.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.1574, allocations: 1.11 MB / 498.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006346/0.1581, allocations: 0.8467 MB / 499.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1583, allocations: 35.38 kB / 499.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1583, allocations: 4 kB / 499.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of Templates: time 0.01228/0.1706, allocations: 4.499 MB / 0.4922 GB, free: 8.391 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)