Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008879/0.0008878, allocations: 173.3 kB / 15.77 MB, free: 6.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007299/0.0007299, allocations: 82.38 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2009/0.2009, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003957, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.133, allocations: 56.34 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009082/0.1421, allocations: 8.214 MB / 487.3 MB, free: 9.785 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005793/0.1479, allocations: 2.736 MB / 490 MB, free: 7.039 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009703/0.149, allocations: 55.62 kB / 490.1 MB, free: 6.984 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007711/0.1497, allocations: 266.2 kB / 490.3 MB, free: 6.723 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.1511, allocations: 0.5869 MB / 490.9 MB, free: 6.133 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.1525, allocations: 463.2 kB / 491.4 MB, free: 5.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.1542, allocations: 1.523 MB / 492.9 MB, free: 4.152 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.1558, allocations: 0.9827 MB / 493.9 MB, free: 3.133 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008972/0.1567, allocations: 465.8 kB / 494.3 MB, free: 2.676 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.1577, allocations: 0.6386 MB / 495 MB, free: 2.035 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.541e-05/0.1578, allocations: 40 kB / 495 MB, free: 1.996 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004664/0.1583, allocations: 143.8 kB / 495.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004347/0.1587, allocations: 458.8 kB / 495.6 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.159, allocations: 209.1 kB / 495.8 MB, free: 1.195 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.16, allocations: 0.9235 MB / 496.7 MB, free: 276 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.1601, allocations: 4 kB / 496.7 MB, free: 272 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1601, allocations: 0 / 496.7 MB, free: 272 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1601, allocations: 0 / 496.7 MB, free: 272 kB / 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.002195/0.1623, allocations: 1.142 MB / 497.9 MB, free: 15.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1623, allocations: 8.031 kB / 497.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000884/0.1632, allocations: 162.6 kB / 498 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.1644, allocations: 0.6718 MB / 498.7 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.1645, allocations: 58 kB / 498.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1647, allocations: 91.84 kB / 498.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.1664, allocations: 1.171 MB / 0.4883 GB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.1664, allocations: 4 kB / 0.4883 GB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/0.1665, allocations: 43.88 kB / 0.4884 GB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.302e-05/0.1666, allocations: 53.98 kB / 0.4884 GB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1681, allocations: 0.9326 MB / 0.4893 GB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005772/0.1739, allocations: 4.792 MB / 0.494 GB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.1751, allocations: 0.6756 MB / 0.4947 GB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005399/0.1757, allocations: 379.8 kB / 0.495 GB, free: 5.676 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.444e-05/0.1757, allocations: 12.55 kB / 0.495 GB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007056/0.1764, allocations: 435.7 kB / 0.4954 GB, free: 5.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=65): time 4.619e-06/0.1765, allocations: 0 / 0.4954 GB, free: 5.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.005601/0.1821, allocations: 2.444 MB / 0.4978 GB, free: 2.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.1822, allocations: 166.7 kB / 0.498 GB, free: 2.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007459/0.183, allocations: 0.5979 MB / 0.4986 GB, free: 1.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.183, allocations: 37.7 kB / 0.4986 GB, free: 1.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004053/0.1834, allocations: 490.5 kB / 0.4991 GB, free: 1.363 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1836, allocations: 224.9 kB / 0.4993 GB, free: 1.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.1837, allocations: 16 kB / 0.4993 GB, free: 1.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.1839, allocations: 386.8 kB / 0.4997 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.1843, allocations: 285.8 kB / 0.4999 GB, free: 468 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006015/0.185, allocations: 0.5524 MB / 0.5005 GB, free: 15.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.1855, allocations: 411.6 kB / 0.5009 GB, free: 15.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.1856, allocations: 0 / 0.5009 GB, free: 15.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002052/0.1876, allocations: 1.216 MB / 0.5021 GB, free: 14.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.1877, allocations: 41.73 kB / 0.5021 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.1877, allocations: 8 kB / 0.5021 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1888, allocations: 341.3 kB / 0.5024 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005125/0.1893, allocations: 147.7 kB / 0.5026 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006276/0.1956, allocations: 4.946 MB / 0.5074 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006378/0.1963, allocations: 32.12 kB / 0.5074 GB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-05/0.1964, allocations: 40 kB / 0.5075 GB, free: 8.285 MB / 362.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,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006555/0.197, allocations: 363.1 kB / 0.5078 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.1972, allocations: 79.06 kB / 0.5079 GB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/0.1992, allocations: 1.044 MB / 0.5089 GB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.1992, allocations: 8 kB / 0.5089 GB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.1992, allocations: 4 kB / 0.5089 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.1992, allocations: 3.984 kB / 0.5089 GB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.2028, allocations: 2.063 MB / 0.5109 GB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2029, allocations: 0 / 0.5109 GB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/0.2032, allocations: 75.89 kB / 0.511 GB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.2042, allocations: 309.6 kB / 0.5113 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.462e-05/0.2043, allocations: 19.95 kB / 0.5113 GB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2677/0.472, allocations: 4.86 MB / 0.5161 GB, free: 50.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.472, allocations: 5.734 kB / 0.5161 GB, free: 50.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.4742, allocations: 1.121 MB / 0.5172 GB, free: 50.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.4744, allocations: 155.3 kB / 0.5173 GB, free: 50.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.538e-05/0.4745, allocations: 15.8 kB / 0.5173 GB, free: 50.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.4748, allocations: 18.95 kB / 0.5174 GB, free: 50.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.475, allocations: 56.25 kB / 0.5174 GB, free: 50.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-05/0.4751, allocations: 18.8 kB / 0.5174 GB, free: 50.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005659/0.4756, allocations: 417 kB / 0.5178 GB, free: 50.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4756, allocations: 0 / 0.5178 GB, free: 50.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001217/0.4769, allocations: 270.7 kB / 0.5181 GB, free: 50.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001667/0.477, allocations: 114.7 kB / 0.5182 GB, free: 50.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.479, allocations: 1.141 MB / 0.5193 GB, free: 49.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.479, allocations: 1.094 kB / 0.5193 GB, free: 49.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.4801, allocations: 0.7695 MB / 0.5201 GB, free: 49.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008624/0.4809, allocations: 168.8 kB / 0.5202 GB, free: 49.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.4841, allocations: 2.181 MB / 0.5224 GB, free: 48.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007495/0.4848, allocations: 1.105 MB / 0.5234 GB, free: 47.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.485, allocations: 55.8 kB / 0.5235 GB, free: 47.59 MB / 362.7 MB Notification: Performance of SimCode: time 8.11e-07/0.485, allocations: 3.844 kB / 0.5235 GB, free: 47.59 MB / 362.7 MB Notification: Performance of Templates: time 0.02227/0.5073, allocations: 16.93 MB / 0.54 GB, free: 39.34 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)