Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008995/0.0008995, allocations: 174.3 kB / 15.77 MB, free: 6.324 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.391/1.391, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009031/0.000903, allocations: 106 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.1918/0.1918, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004143, allocations: 15.98 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 56.34 MB / 479.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009338/0.1307, allocations: 8.206 MB / 487.3 MB, free: 9.809 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005734/0.1365, allocations: 2.736 MB / 490 MB, free: 7.062 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007307/0.1372, allocations: 59.62 kB / 490.1 MB, free: 7.004 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007303/0.138, allocations: 262.2 kB / 490.3 MB, free: 6.746 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.1395, allocations: 0.5908 MB / 490.9 MB, free: 6.152 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.1409, allocations: 455.2 kB / 491.4 MB, free: 5.707 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.1427, allocations: 1.566 MB / 492.9 MB, free: 4.137 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.1444, allocations: 0.9944 MB / 493.9 MB, free: 3.105 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007959/0.1452, allocations: 485.8 kB / 494.4 MB, free: 2.629 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009368/0.1461, allocations: 0.662 MB / 495 MB, free: 1.965 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.38e-05/0.1462, allocations: 40 kB / 495.1 MB, free: 1.926 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005159/0.1468, allocations: 195.6 kB / 495.3 MB, free: 1.734 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004575/0.1472, allocations: 482.8 kB / 495.8 MB, free: 1.262 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002787/0.1475, allocations: 213.1 kB / 496 MB, free: 1.047 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000973/0.1485, allocations: 0.9781 MB / 496.9 MB, free: 68 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1485, allocations: 0 / 496.9 MB, free: 68 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1485, allocations: 4 kB / 496.9 MB, free: 64 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.1486, allocations: 0 / 496.9 MB, free: 64 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.002303/0.1509, allocations: 1.163 MB / 498.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1509, allocations: 12.03 kB / 498.1 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009388/0.1519, allocations: 162.6 kB / 498.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.153, allocations: 0.6873 MB / 499 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.821e-05/0.1531, allocations: 62 kB / 499 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.1533, allocations: 115.8 kB / 499.1 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.1551, allocations: 1.212 MB / 0.4886 GB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.1551, allocations: 7.938 kB / 0.4886 GB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.861e-05/0.1552, allocations: 35.98 kB / 0.4887 GB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/0.1555, allocations: 65.95 kB / 0.4887 GB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.1571, allocations: 1.003 MB / 0.4897 GB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.1632, allocations: 4.779 MB / 0.4944 GB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1644, allocations: 0.6604 MB / 0.495 GB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006292/0.1651, allocations: 459.8 kB / 0.4955 GB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.141e-05/0.1651, allocations: 12.55 kB / 0.4955 GB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007678/0.1659, allocations: 0.5041 MB / 0.496 GB, free: 4.707 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 2.975e-06/0.1659, allocations: 0 / 0.496 GB, free: 4.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.004841/0.1708, allocations: 2.796 MB / 0.4987 GB, free: 1.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.1709, allocations: 166.8 kB / 0.4988 GB, free: 1.629 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007053/0.1716, allocations: 0.5977 MB / 0.4994 GB, free: 1.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.1717, allocations: 37.7 kB / 0.4995 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.1721, allocations: 471 kB / 0.4999 GB, free: 0.5117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000224/0.1723, allocations: 260.4 kB / 0.5002 GB, free: 260 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.1723, allocations: 20 kB / 0.5002 GB, free: 240 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.1726, allocations: 386.8 kB / 0.5006 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005724/0.1731, allocations: 377.7 kB / 0.5009 GB, free: 15.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008344/0.174, allocations: 0.6346 MB / 0.5015 GB, free: 14.73 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005739/0.1797, allocations: 2.52 MB / 0.504 GB, free: 12.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1797, allocations: 4 kB / 0.504 GB, free: 12.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002241/0.182, allocations: 1.335 MB / 0.5053 GB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.592e-05/0.1821, allocations: 34.48 kB / 0.5053 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.1821, allocations: 8 kB / 0.5053 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006128/0.1827, allocations: 250.3 kB / 0.5056 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.1838, allocations: 271.5 kB / 0.5058 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005543/0.1894, allocations: 5.566 MB / 0.5113 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.19, allocations: 39.97 kB / 0.5113 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.794e-05/0.19, allocations: 39.94 kB / 0.5114 GB, free: 4.172 MB / 362.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$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 (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005898/0.1906, allocations: 376 kB / 0.5117 GB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.1908, allocations: 83.05 kB / 0.5118 GB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.1927, allocations: 1.149 MB / 0.5129 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/0.1928, allocations: 8 kB / 0.5129 GB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1928, allocations: 7.953 kB / 0.5129 GB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1928, allocations: 3.984 kB / 0.5129 GB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.1963, allocations: 2.246 MB / 0.5151 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.1963, allocations: 4 kB / 0.5151 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2718/0.4682, allocations: 189.4 kB / 0.5153 GB, free: 52.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.4693, allocations: 241.5 kB / 0.5155 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000184/0.4695, allocations: 24.69 kB / 0.5156 GB, free: 52.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005134/0.4746, allocations: 5.496 MB / 0.5209 GB, free: 48.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4746, allocations: 6.344 kB / 0.5209 GB, free: 48.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.4775, allocations: 1.64 MB / 0.5225 GB, free: 47.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.4777, allocations: 151.3 kB / 0.5227 GB, free: 47.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.4778, allocations: 31.42 kB / 0.5227 GB, free: 47.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.4783, allocations: 25.55 kB / 0.5227 GB, free: 47.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.4785, allocations: 60.16 kB / 0.5228 GB, free: 47.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.733e-05/0.4785, allocations: 21.12 kB / 0.5228 GB, free: 47.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005836/0.4791, allocations: 409.2 kB / 0.5232 GB, free: 47.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4791, allocations: 1.375 kB / 0.5232 GB, free: 47.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001172/0.4803, allocations: 271.2 kB / 0.5235 GB, free: 47.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002323/0.4805, allocations: 138.6 kB / 0.5236 GB, free: 47.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.4828, allocations: 1.392 MB / 0.525 GB, free: 46.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4828, allocations: 0 / 0.525 GB, free: 46.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.4842, allocations: 0.9113 MB / 0.5258 GB, free: 45.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008942/0.4851, allocations: 180.9 kB / 0.526 GB, free: 45.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004535/0.4897, allocations: 2.696 MB / 0.5287 GB, free: 44.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.4908, allocations: 1.113 MB / 0.5297 GB, free: 43.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.4911, allocations: 65.77 kB / 0.5298 GB, free: 43.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4911, allocations: 0.5 kB / 0.5298 GB, free: 43.68 MB / 362.7 MB Notification: Performance of Templates: time 0.02572/0.5168, allocations: 20.96 MB / 0.5503 GB, free: 29.38 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)