Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002139/0.002138, allocations: 112.1 kB / 17.29 MB, free: 6.059 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.002761/0.002761, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.864/2.864, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4514/0.4514, allocations: 38.03 MB / 330.1 MB, free: 8.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002711/0.002711, allocations: 60.77 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2072, allocations: 58.06 MB / 457 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.02377/0.2311, allocations: 9.237 MB / 466.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.2423, allocations: 2.812 MB / 469 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.2448, allocations: 59.62 kB / 469.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004583/0.2494, allocations: 0.8159 MB / 469.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003158/0.2526, allocations: 474 kB / 470.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.2553, allocations: 407.3 kB / 470.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.259, allocations: 1.274 MB / 472 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002497/0.2615, allocations: 0.7323 MB / 472.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.2636, allocations: 0.5446 MB / 473.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.2658, allocations: 0.7125 MB / 474 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004614/0.2663, allocations: 76 kB / 474.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.2676, allocations: 211.7 kB / 474.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.2688, allocations: 498.7 kB / 474.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.2706, allocations: 0.5247 MB / 475.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.2734, allocations: 0.9472 MB / 476.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.177e-05/0.2734, allocations: 0 / 476.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.147e-06/0.2734, allocations: 0 / 476.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.95e-05/0.2736, allocations: 0 / 476.3 MB, free: 5.031 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00551/0.2791, allocations: 1.306 MB / 477.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.952e-05/0.2792, allocations: 19.83 kB / 477.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.2809, allocations: 171.4 kB / 477.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002921/0.2838, allocations: 0.6766 MB / 478.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002939/0.2842, allocations: 62.38 kB / 478.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004439/0.2847, allocations: 88.03 kB / 478.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00479/0.2895, allocations: 1.179 MB / 479.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.555e-05/0.2896, allocations: 4 kB / 479.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.2899, allocations: 35.98 kB / 479.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.2901, allocations: 57.97 kB / 479.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003262/0.2934, allocations: 0.9365 MB / 480.8 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.3049, allocations: 4.792 MB / 485.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.3072, allocations: 0.6744 MB / 486.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.3083, allocations: 379.8 kB / 486.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.386e-05/0.3084, allocations: 12.56 kB / 486.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001207/0.3097, allocations: 447.7 kB / 487.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 7.043e-06/0.3097, allocations: 0 / 487.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.0115/0.3212, allocations: 2.44 MB / 489.5 MB, free: 7.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002143/0.3215, allocations: 166.8 kB / 489.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.3236, allocations: 0.5939 MB / 490.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.3238, allocations: 41.7 kB / 490.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008389/0.3247, allocations: 490.6 kB / 490.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006028/0.3254, allocations: 216.9 kB / 491 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006524/0.326, allocations: 162.5 kB / 491.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003459/0.3264, allocations: 386.8 kB / 491.5 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009701/0.3274, allocations: 277.8 kB / 491.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.3286, allocations: 0.5602 MB / 492.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.331, allocations: 0.9572 MB / 493.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/0.3311, allocations: 3.938 kB / 493.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004018/0.3351, allocations: 1.22 MB / 494.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.016e-05/0.3352, allocations: 41.86 kB / 494.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.782e-05/0.3353, allocations: 11.94 kB / 494.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/0.3371, allocations: 345.4 kB / 495 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009574/0.3381, allocations: 143.8 kB / 495.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.3491, allocations: 5.393 MB / 0.4888 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.3502, allocations: 28 kB / 0.4888 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.3505, allocations: 43.98 kB / 0.4888 GB, free: 11.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001186/0.3517, allocations: 355.2 kB / 0.4892 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.352, allocations: 79 kB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.3556, allocations: 1.036 MB / 0.4902 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.3556, allocations: 8.141 kB / 0.4903 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/0.3557, allocations: 4 kB / 0.4903 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.942e-05/0.3557, allocations: 7.969 kB / 0.4903 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006071/0.3618, allocations: 2.055 MB / 0.4923 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.3619, allocations: 7.938 kB / 0.4923 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000644/0.3625, allocations: 76.06 kB / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001681/0.3642, allocations: 313.7 kB / 0.4927 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.3644, allocations: 19.94 kB / 0.4927 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009845/0.3742, allocations: 5.32 MB / 0.4979 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.3743, allocations: 0 / 0.4979 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/0.3778, allocations: 1.123 MB / 0.499 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004527/0.3783, allocations: 140.2 kB / 0.4991 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.3786, allocations: 19.98 kB / 0.4991 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.3792, allocations: 19.94 kB / 0.4991 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002632/0.3795, allocations: 60.42 kB / 0.4992 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.3796, allocations: 20 kB / 0.4992 GB, free: 416 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008977/0.3805, allocations: 423 kB / 0.4996 GB, free: 0 / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3805, allocations: 0 / 0.4996 GB, free: 0 / 382.1 MB Notification: Performance of remove unused functions: time 0.00197/0.3825, allocations: 264 kB / 0.4999 GB, free: 15.74 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003364/0.3829, allocations: 126.2 kB / 0.5 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004049/0.3869, allocations: 1.265 MB / 0.5012 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.387, allocations: 0 / 0.5012 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.3891, allocations: 0.7722 MB / 0.502 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.3912, allocations: 187.8 kB / 0.5022 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006792/0.398, allocations: 2.222 MB / 0.5043 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001567/0.3996, allocations: 1.099 MB / 0.5054 GB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.4001, allocations: 63.42 kB / 0.5055 GB, free: 9.859 MB / 398.1 MB Notification: Performance of SimCode: time 2.194e-06/0.4001, allocations: 0 / 0.5055 GB, free: 9.859 MB / 398.1 MB Notification: Performance of Templates: time 0.4103/0.8104, allocations: 16.97 MB / 0.522 GB, free: 69.61 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)