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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001086/0.001086, allocations: 191.9 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.205/1.205, allocations: 194.2 MB / 212.2 MB, free: 2.375 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001662/0.001662, allocations: 114.2 kB / 256.6 MB, free: 4.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1619/0.1619, allocations: 37.94 MB / 338.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 67.89 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08748, allocations: 52.18 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008229/0.09575, allocations: 9.245 MB / 463.2 MB, free: 7.281 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00445/0.1002, allocations: 2.872 MB / 466.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00092/0.1012, allocations: 71.56 kB / 466.2 MB, free: 4.328 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.1028, allocations: 0.8056 MB / 467 MB, free: 3.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008647/0.1037, allocations: 477.9 kB / 467.4 MB, free: 3.051 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.1046, allocations: 407.3 kB / 467.8 MB, free: 2.652 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.1057, allocations: 1.952 MB / 469.8 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006267/0.1063, allocations: 0.654 MB / 470.4 MB, free: 36 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005458/0.1069, allocations: 489.8 kB / 470.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.1077, allocations: 0.7009 MB / 471.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.711e-05/0.1078, allocations: 52 kB / 471.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003949/0.1082, allocations: 211.6 kB / 471.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003807/0.1086, allocations: 470.8 kB / 472.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004478/0.109, allocations: 0.5013 MB / 472.8 MB, free: 13.63 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009728/0.11, allocations: 1.211 MB / 474.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.11, allocations: 0 / 474.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.11, allocations: 0 / 474.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.11, allocations: 0 / 474.1 MB, free: 12.41 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00205/0.1121, allocations: 1.31 MB / 475.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1121, allocations: 8.031 kB / 475.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007845/0.1129, allocations: 163.5 kB / 475.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.114, allocations: 0.6882 MB / 476.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/0.1141, allocations: 58.38 kB / 476.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.1142, allocations: 91.88 kB / 476.4 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.1157, allocations: 1.175 MB / 477.5 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.1158, allocations: 7.938 kB / 477.6 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.256e-05/0.1158, allocations: 39.92 kB / 477.6 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.551e-05/0.1159, allocations: 53.98 kB / 477.6 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1172, allocations: 0.9288 MB / 478.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004956/0.1222, allocations: 4.796 MB / 483.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.1232, allocations: 0.664 MB / 484 MB, free: 2.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.1237, allocations: 379.8 kB / 484.4 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.1238, allocations: 16.53 kB / 484.4 MB, free: 1.625 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005724/0.1244, allocations: 439.7 kB / 484.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of pre-optimization done (n=65): time 2.796e-06/0.1244, allocations: 3.938 kB / 484.9 MB, free: 1.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004893/0.1293, allocations: 2.444 MB / 487.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.1294, allocations: 162.8 kB / 487.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006504/0.1301, allocations: 0.6017 MB / 488.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.1301, allocations: 37.7 kB / 488.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.1305, allocations: 482.6 kB / 488.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.1307, allocations: 224.8 kB / 488.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.1309, allocations: 158.6 kB / 488.9 MB, free: 12.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.131, allocations: 382.8 kB / 489.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000415/0.1315, allocations: 289.8 kB / 489.6 MB, free: 12.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006205/0.1321, allocations: 0.5563 MB / 490.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1332, allocations: 0.9611 MB / 491.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1332, allocations: 4 kB / 491.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001909/0.1351, allocations: 1.215 MB / 492.3 MB, free: 9.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.1352, allocations: 38.58 kB / 492.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1352, allocations: 8 kB / 492.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000976/0.1362, allocations: 345.9 kB / 492.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.1366, allocations: 143.7 kB / 492.9 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005244/0.1419, allocations: 4.945 MB / 497.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004878/0.1424, allocations: 32.03 kB / 497.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-05/0.1425, allocations: 47.92 kB / 497.9 MB, free: 3.402 MB / 346.7 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.0004831/0.143, allocations: 355.2 kB / 498.2 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.1431, allocations: 75.06 kB / 498.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.1449, allocations: 1.04 MB / 499.3 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1449, allocations: 8 kB / 499.3 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.1449, allocations: 7.938 kB / 499.4 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.145, allocations: 7.984 kB / 499.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.148, allocations: 2.051 MB / 0.4897 GB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.148, allocations: 4 kB / 0.4897 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/0.1483, allocations: 76.06 kB / 0.4897 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008267/0.1492, allocations: 313.3 kB / 0.49 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.1492, allocations: 16 kB / 0.4901 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005029/0.1542, allocations: 4.872 MB / 0.4948 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1543, allocations: 11.94 kB / 0.4948 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.1569, allocations: 2.142 MB / 0.4969 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.1572, allocations: 148.1 kB / 0.4971 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.322e-05/0.1572, allocations: 20 kB / 0.4971 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000318/0.1576, allocations: 19.98 kB / 0.4971 GB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.1577, allocations: 56.42 kB / 0.4971 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.1578, allocations: 16 kB / 0.4972 GB, free: 7.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004684/0.1582, allocations: 415 kB / 0.4976 GB, free: 7.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1582, allocations: 0 / 0.4976 GB, free: 7.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009889/0.1592, allocations: 276 kB / 0.4978 GB, free: 6.977 MB / 362.7 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.0001615/0.1594, allocations: 118.7 kB / 0.4979 GB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.1611, allocations: 1.148 MB / 0.4991 GB, free: 5.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1611, allocations: 0 / 0.4991 GB, free: 5.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009769/0.1621, allocations: 0.7672 MB / 0.4998 GB, free: 4.867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000812/0.1629, allocations: 171.6 kB / 0.5 GB, free: 4.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.166, allocations: 2.519 MB / 0.5024 GB, free: 2.125 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.1667, allocations: 1.129 MB / 0.5035 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004633/0.1672, allocations: 178.3 kB / 0.5037 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.1673, allocations: 55.42 kB / 0.5038 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1673, allocations: 0 / 0.5038 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of Templates: time 0.1801/0.3474, allocations: 10.73 MB / 0.5142 GB, free: 62.87 MB / 362.7 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)