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.001141/0.001142, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.001283/0.001283, allocations: 193.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.387/1.387, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.03 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002132, allocations: 61.23 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1307, allocations: 58.06 MB / 456.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01164/0.1423, allocations: 9.245 MB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005635/0.148, allocations: 2.808 MB / 468.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.1493, allocations: 59.62 kB / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.1517, allocations: 0.8113 MB / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.1532, allocations: 474 kB / 469.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.1544, allocations: 407.3 kB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001889/0.1563, allocations: 1.274 MB / 471.4 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.1575, allocations: 0.7323 MB / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009972/0.1585, allocations: 0.5407 MB / 472.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.1597, allocations: 0.7164 MB / 473.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002073/0.1599, allocations: 72 kB / 473.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005474/0.1605, allocations: 215.7 kB / 473.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005428/0.1611, allocations: 498.7 kB / 474.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007451/0.1618, allocations: 0.5209 MB / 474.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.1632, allocations: 1.23 MB / 475.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1632, allocations: 0 / 475.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1632, allocations: 0 / 475.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.1632, allocations: 0 / 475.9 MB, free: 4.805 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.002602/0.1658, allocations: 1.31 MB / 477.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1659, allocations: 11.89 kB / 477.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.1669, allocations: 175.4 kB / 477.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.1684, allocations: 0.6804 MB / 478.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.814e-05/0.1684, allocations: 66.38 kB / 478.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.1686, allocations: 88.02 kB / 478.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.1708, allocations: 1.175 MB / 479.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.927e-05/0.1709, allocations: 7.938 kB / 479.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.616e-05/0.171, allocations: 32 kB / 479.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-05/0.1711, allocations: 57.98 kB / 479.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.1727, allocations: 0.9288 MB / 480.4 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006231/0.179, allocations: 4.807 MB / 485.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1801, allocations: 0.6601 MB / 485.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000562/0.1807, allocations: 383.8 kB / 486.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.1808, allocations: 12.53 kB / 486.3 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006835/0.1815, allocations: 435.8 kB / 486.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.294e-06/0.1815, allocations: 0 / 486.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005586/0.1871, allocations: 2.447 MB / 489.1 MB, free: 7.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.1872, allocations: 162.8 kB / 489.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007155/0.1879, allocations: 0.5978 MB / 489.9 MB, free: 6.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.188, allocations: 37.7 kB / 489.9 MB, free: 6.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000363/0.1883, allocations: 490.6 kB / 490.4 MB, free: 5.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.1886, allocations: 220.8 kB / 490.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/0.1888, allocations: 158.4 kB / 490.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.189, allocations: 386.8 kB / 491.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/0.1895, allocations: 285.8 kB / 491.4 MB, free: 4.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/0.1903, allocations: 0.5524 MB / 492 MB, free: 3.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.1915, allocations: 0.9573 MB / 493 MB, free: 2.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.1916, allocations: 7.938 kB / 493 MB, free: 2.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002079/0.1936, allocations: 1.227 MB / 494.2 MB, free: 1.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.426e-05/0.1937, allocations: 33.7 kB / 494.2 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.1937, allocations: 12.09 kB / 494.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.1948, allocations: 333.5 kB / 494.6 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004892/0.1953, allocations: 147.7 kB / 494.7 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/0.2016, allocations: 5.392 MB / 0.4884 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.2022, allocations: 39.97 kB / 0.4884 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/0.2022, allocations: 32 kB / 0.4884 GB, free: 11.35 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.0005734/0.2028, allocations: 363.2 kB / 0.4888 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.203, allocations: 79 kB / 0.4889 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.205, allocations: 1.04 MB / 0.4899 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.205, allocations: 8.141 kB / 0.4899 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.205, allocations: 4 kB / 0.4899 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.205, allocations: 7.969 kB / 0.4899 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.2084, allocations: 2.055 MB / 0.4919 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.2085, allocations: 3.938 kB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.2088, allocations: 88.05 kB / 0.492 GB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000885/0.2097, allocations: 309.5 kB / 0.4923 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.283e-05/0.2098, allocations: 19.92 kB / 0.4923 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00605/0.2158, allocations: 5.312 MB / 0.4975 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.2159, allocations: 4 kB / 0.4975 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.2179, allocations: 1.119 MB / 0.4986 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.2182, allocations: 148.2 kB / 0.4987 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.2183, allocations: 20 kB / 0.4988 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003519/0.2187, allocations: 19.98 kB / 0.4988 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.2188, allocations: 64.36 kB / 0.4988 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.2189, allocations: 16 kB / 0.4989 GB, free: 180 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005838/0.2195, allocations: 415.1 kB / 0.4992 GB, free: 15.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2195, allocations: 0 / 0.4992 GB, free: 15.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001094/0.2206, allocations: 272 kB / 0.4995 GB, free: 15.51 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.0001926/0.2208, allocations: 120.9 kB / 0.4996 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.2231, allocations: 1.269 MB / 0.5009 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/0.2231, allocations: 4 kB / 0.5009 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.2243, allocations: 0.7643 MB / 0.5016 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009387/0.2252, allocations: 180.4 kB / 0.5018 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.2285, allocations: 2.138 MB / 0.5039 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008954/0.2294, allocations: 1.103 MB / 0.5049 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005044/0.23, allocations: 178.4 kB / 0.5051 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.2301, allocations: 51.42 kB / 0.5052 GB, free: 9.559 MB / 398.1 MB Notification: Performance of SimCode: time 1.974e-06/0.2301, allocations: 0 / 0.5052 GB, free: 9.559 MB / 398.1 MB Notification: Performance of Templates: time 0.2089/0.439, allocations: 10.77 MB / 0.5157 GB, free: 69.37 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)