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.00125/0.00125, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001417/0.001417, allocations: 182 kB / 17.56 MB, free: 6.203 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.442/1.442, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1798/0.1798, allocations: 38.08 MB / 330.8 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003309, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1208, allocations: 59.16 MB / 459.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009445/0.1302, allocations: 8.754 MB / 468.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.1359, allocations: 2.816 MB / 471.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008445/0.1368, allocations: 59.62 kB / 471.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006845/0.1375, allocations: 210.6 kB / 471.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0012/0.1387, allocations: 481.9 kB / 472.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.1398, allocations: 399.3 kB / 472.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002068/0.1419, allocations: 1.948 MB / 474.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.1437, allocations: 1.111 MB / 475.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008509/0.1446, allocations: 441.8 kB / 476 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000926/0.1455, allocations: 0.654 MB / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.837e-05/0.1456, allocations: 36 kB / 476.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004441/0.146, allocations: 195.6 kB / 476.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004299/0.1465, allocations: 446.8 kB / 477.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.147, allocations: 0.4951 MB / 477.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.148, allocations: 1.175 MB / 479 MB, free: 3.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.148, allocations: 3.984 kB / 479 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1481, allocations: 7.938 kB / 479 MB, free: 3.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1481, allocations: 0 / 479 MB, free: 3.758 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.002025/0.1501, allocations: 1.127 MB / 480.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1502, allocations: 12.03 kB / 480.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008773/0.151, allocations: 163.5 kB / 480.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.1521, allocations: 0.6804 MB / 481 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.875e-05/0.1522, allocations: 78.28 kB / 481.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.1524, allocations: 84.11 kB / 481.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.154, allocations: 1.171 MB / 482.4 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.1541, allocations: 7.938 kB / 482.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.174e-05/0.1542, allocations: 39.98 kB / 482.4 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.09e-05/0.1543, allocations: 53.98 kB / 482.5 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.1557, allocations: 0.925 MB / 483.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.1612, allocations: 4.811 MB / 488.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.1623, allocations: 0.6757 MB / 488.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005118/0.1629, allocations: 379.8 kB / 489.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/0.1629, allocations: 8.562 kB / 489.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006018/0.1635, allocations: 443.7 kB / 489.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.625e-06/0.1635, allocations: 0 / 489.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005296/0.1688, allocations: 2.463 MB / 492.1 MB, free: 6.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.1689, allocations: 166.8 kB / 492.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006496/0.1696, allocations: 0.5978 MB / 492.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.1697, allocations: 37.7 kB / 492.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.17, allocations: 486.6 kB / 493.4 MB, free: 4.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.1702, allocations: 232.8 kB / 493.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.236e-05/0.1703, allocations: 73.69 kB / 493.7 MB, free: 4.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1705, allocations: 386.8 kB / 494.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.1709, allocations: 285.8 kB / 494.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.1716, allocations: 0.5524 MB / 494.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.1728, allocations: 0.9611 MB / 495.9 MB, free: 2.059 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/0.1728, allocations: 7.938 kB / 495.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001967/0.1747, allocations: 1.211 MB / 497.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.55e-05/0.1748, allocations: 40.77 kB / 497.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1748, allocations: 11.94 kB / 497.2 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.1759, allocations: 341.4 kB / 497.5 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.1763, allocations: 139.8 kB / 497.6 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005993/0.1824, allocations: 4.945 MB / 0.4908 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.1829, allocations: 36.03 kB / 0.4908 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.875e-05/0.183, allocations: 44.22 kB / 0.4909 GB, free: 10.97 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.000556/0.1835, allocations: 365.1 kB / 0.4912 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.1837, allocations: 75.06 kB / 0.4913 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.1855, allocations: 1.036 MB / 0.4923 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.1856, allocations: 12 kB / 0.4923 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1856, allocations: 4 kB / 0.4923 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.1856, allocations: 11.92 kB / 0.4923 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.1891, allocations: 2.063 MB / 0.4943 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1891, allocations: 0 / 0.4943 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.1894, allocations: 71.91 kB / 0.4944 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008577/0.1903, allocations: 313.5 kB / 0.4947 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.1903, allocations: 19.98 kB / 0.4947 GB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005481/0.1958, allocations: 4.893 MB / 0.4995 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1958, allocations: 4 kB / 0.4995 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.1978, allocations: 1.115 MB / 0.5006 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.198, allocations: 144.2 kB / 0.5007 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.733e-05/0.1981, allocations: 19.98 kB / 0.5008 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.1984, allocations: 16 kB / 0.5008 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.1986, allocations: 56.42 kB / 0.5008 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.1986, allocations: 24 kB / 0.5008 GB, free: 256 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2793/0.4779, allocations: 414.6 kB / 0.5012 GB, free: 55.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4779, allocations: 0 / 0.5012 GB, free: 55.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001515/0.4794, allocations: 268.9 kB / 0.5015 GB, free: 55.32 MB / 382.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.0001906/0.4797, allocations: 120.5 kB / 0.5016 GB, free: 55.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.4817, allocations: 1.145 MB / 0.5027 GB, free: 54.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4817, allocations: 0 / 0.5027 GB, free: 54.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.4828, allocations: 0.7577 MB / 0.5035 GB, free: 54.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.4839, allocations: 169.5 kB / 0.5036 GB, free: 54.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.487, allocations: 2.172 MB / 0.5058 GB, free: 53.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008173/0.4879, allocations: 1.111 MB / 0.5068 GB, free: 52.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005967/0.4885, allocations: 173.7 kB / 0.507 GB, free: 52.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.4886, allocations: 50.2 kB / 0.5071 GB, free: 52.86 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4886, allocations: 0 / 0.5071 GB, free: 52.86 MB / 382.1 MB Notification: Performance of Templates: time 0.02094/0.5096, allocations: 10.1 MB / 0.5169 GB, free: 50.64 MB / 382.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)