Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 110 kB / 16.63 MB, free: 6.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 189.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1757/0.1757, allocations: 38.03 MB / 329.4 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 60.52 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1181, allocations: 58.06 MB / 456.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.007135/0.1252, allocations: 5.072 MB / 461.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.1281, allocations: 1.609 MB / 463 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004658/0.1286, allocations: 23.88 kB / 463 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1298, allocations: 354.4 kB / 463.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000638/0.1304, allocations: 207.1 kB / 463.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006881/0.1311, allocations: 227.6 kB / 463.8 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006751/0.1318, allocations: 0.5378 MB / 464.3 MB, free: 376 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.1323, allocations: 305.1 kB / 464.6 MB, free: 72 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004372/0.1328, allocations: 235.1 kB / 464.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005549/0.1333, allocations: 323 kB / 465.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.069e-05/0.1334, allocations: 32 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.1338, allocations: 135.8 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.134, allocations: 227.4 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.1344, allocations: 234.9 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00067/0.135, allocations: 0.5607 MB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1351, allocations: 0 / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1351, allocations: 0 / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.1351, allocations: 0 / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001434/0.1365, allocations: 0.735 MB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1366, allocations: 19.83 kB / 467.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.1372, allocations: 76.33 kB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000669/0.1379, allocations: 399.2 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.45e-05/0.1379, allocations: 33.38 kB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.138, allocations: 44.12 kB / 467.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009911/0.139, allocations: 0.6287 MB / 468.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.1391, allocations: 3.938 kB / 468.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.652e-05/0.1391, allocations: 16 kB / 468.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.1393, allocations: 32.98 kB / 468.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007962/0.1401, allocations: 483.4 kB / 468.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.1434, allocations: 2.891 MB / 471.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.1438, allocations: 229 kB / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.144, allocations: 141.7 kB / 472.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.144, allocations: 7.938 kB / 472.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.144, allocations: 38.55 kB / 472.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.694e-06/0.1441, allocations: 4 kB / 472.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001516/0.1456, allocations: 0.9592 MB / 473.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1456, allocations: 89.05 kB / 473.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.146, allocations: 324.4 kB / 473.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.146, allocations: 29.7 kB / 473.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.1462, allocations: 275.2 kB / 473.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.681e-05/0.1463, allocations: 102.5 kB / 473.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1464, allocations: 98.09 kB / 474 MB, free: 6.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1466, allocations: 350.9 kB / 474.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.1468, allocations: 145 kB / 474.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.1472, allocations: 343.2 kB / 474.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.1478, allocations: 0.5208 MB / 475.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1478, allocations: 4 kB / 475.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007421/0.1486, allocations: 0.5247 MB / 475.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1486, allocations: 8 kB / 475.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1486, allocations: 8.031 kB / 475.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.394e-05/0.1487, allocations: 12 kB / 475.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.1491, allocations: 119.8 kB / 476 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.1491, allocations: 11.94 kB / 476 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.1493, allocations: 23.98 kB / 476 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.1494, allocations: 24 kB / 476 MB, free: 4.023 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.1496, allocations: 225.5 kB / 476.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/0.1497, allocations: 31.62 kB / 476.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006362/0.1503, allocations: 365.6 kB / 476.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.1503, allocations: 4 kB / 476.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.872e-06/0.1504, allocations: 3.938 kB / 476.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1504, allocations: 3.984 kB / 476.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.1518, allocations: 0.8912 MB / 477.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1518, allocations: 0 / 477.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.1522, allocations: 71.89 kB / 477.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.1522, allocations: 4 kB / 477.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.1522, allocations: 8 kB / 477.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.1522, allocations: 3.938 kB / 477.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1522, allocations: 3.938 kB / 477.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00086/0.1531, allocations: 0.5849 MB / 478.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.329e-05/0.1532, allocations: 100.7 kB / 478.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.241e-05/0.1533, allocations: 8 kB / 478.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.1535, allocations: 15.97 kB / 478.3 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.1535, allocations: 27.91 kB / 478.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.1536, allocations: 16 kB / 478.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.1538, allocations: 223 kB / 478.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1538, allocations: 0 / 478.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004715/0.1543, allocations: 92 kB / 478.7 MB, free: 1.227 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001458/0.1544, allocations: 103.2 kB / 478.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006846/0.1551, allocations: 404.2 kB / 479.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1551, allocations: 4 kB / 479.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.1553, allocations: 143.8 kB / 479.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.1559, allocations: 64.92 kB / 479.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.1577, allocations: 1.173 MB / 480.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005415/0.1583, allocations: 0.8582 MB / 481.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003619/0.1586, allocations: 135.1 kB / 481.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1587, allocations: 31.44 kB / 481.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1588, allocations: 0 / 481.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of Templates: time 0.00792/0.1667, allocations: 3.325 MB / 484.9 MB, free: 10.96 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)