Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 110 kB / 17.68 MB, free: 5.332 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.001903/0.001904, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.175/0.175, allocations: 38 MB / 309.8 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 67.19 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2707, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007888/0.2787, allocations: 7.568 MB / 439.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.2825, allocations: 2.38 MB / 442 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000333/0.2829, allocations: 31.81 kB / 442 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.2847, allocations: 0.8502 MB / 442.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.2858, allocations: 0.5052 MB / 443.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.287, allocations: 443 kB / 443.8 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.2881, allocations: 1.321 MB / 445.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006515/0.2888, allocations: 0.6894 MB / 445.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.2893, allocations: 0.568 MB / 446.4 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006546/0.29, allocations: 0.6853 MB / 447 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.316e-05/0.2901, allocations: 84 kB / 447.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003946/0.2905, allocations: 263.6 kB / 447.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000316/0.2908, allocations: 0.5104 MB / 447.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003932/0.2912, allocations: 0.5365 MB / 448.4 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009222/0.2921, allocations: 1.328 MB / 449.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.2921, allocations: 4 kB / 449.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2921, allocations: 3.938 kB / 449.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.2922, allocations: 4 kB / 449.8 MB, free: 1.66 MB / 318.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.002181/0.2944, allocations: 1.323 MB / 451.1 MB, free: 288 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.2944, allocations: 15.89 kB / 451.1 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.2954, allocations: 171.4 kB / 451.3 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.2969, allocations: 0.739 MB / 452 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-05/0.297, allocations: 66.38 kB / 452.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.2972, allocations: 108 kB / 452.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.2991, allocations: 1.212 MB / 453.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.2992, allocations: 11.94 kB / 453.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.2993, allocations: 35.98 kB / 453.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/0.2995, allocations: 61.97 kB / 453.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.3011, allocations: 1.007 MB / 454.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006862/0.308, allocations: 4.744 MB / 459.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.3092, allocations: 0.6682 MB / 459.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006227/0.3098, allocations: 451.9 kB / 460.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-05/0.3099, allocations: 16.48 kB / 460.4 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008278/0.3107, allocations: 0.5079 MB / 460.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.615e-06/0.3107, allocations: 0 / 460.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005327/0.316, allocations: 2.78 MB / 463.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.3162, allocations: 174.8 kB / 463.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007163/0.3169, allocations: 0.5899 MB / 464.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.234e-05/0.317, allocations: 41.64 kB / 464.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.3174, allocations: 479 kB / 464.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.3176, allocations: 252.4 kB / 465.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003506/0.318, allocations: 174.5 kB / 465.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.3182, allocations: 394.7 kB / 465.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005854/0.3188, allocations: 373.8 kB / 466.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007843/0.3196, allocations: 0.631 MB / 466.7 MB, free: 15.99 MB / 350.1 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.00693/0.3265, allocations: 3.454 MB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3265, allocations: 4 kB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002254/0.3288, allocations: 1.339 MB / 471.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.3289, allocations: 33.7 kB / 471.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3289, allocations: 8 kB / 471.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006271/0.3295, allocations: 247 kB / 471.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.3306, allocations: 271.5 kB / 472.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005561/0.3362, allocations: 6.081 MB / 478.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006263/0.3368, allocations: 39.97 kB / 478.2 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-05/0.3369, allocations: 40 kB / 478.2 MB, free: 3.855 MB / 350.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: 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,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000564/0.3375, allocations: 372.4 kB / 478.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.3376, allocations: 86.98 kB / 478.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.3395, allocations: 1.137 MB / 479.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.3395, allocations: 19.97 kB / 479.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3396, allocations: 4 kB / 479.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3396, allocations: 3.984 kB / 479.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.343, allocations: 2.25 MB / 482.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.343, allocations: 4.156 kB / 482.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008572/0.3439, allocations: 183.8 kB / 482.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000695/0.3446, allocations: 246.2 kB / 482.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-05/0.3447, allocations: 27.92 kB / 482.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005576/0.3502, allocations: 6.015 MB / 488.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3503, allocations: 4.031 kB / 488.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.3527, allocations: 1.639 MB / 490.2 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.3529, allocations: 152.1 kB / 490.4 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.3531, allocations: 31.86 kB / 490.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003808/0.3534, allocations: 23.98 kB / 490.4 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3536, allocations: 64.36 kB / 490.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-05/0.3537, allocations: 23.98 kB / 490.5 MB, free: 6.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005323/0.3542, allocations: 415 kB / 490.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3542, allocations: 0 / 490.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001038/0.3553, allocations: 272 kB / 491.2 MB, free: 6.293 MB / 366.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002127/0.3555, allocations: 135.1 kB / 491.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.3576, allocations: 1.395 MB / 492.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3576, allocations: 0 / 492.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.3589, allocations: 0.9171 MB / 493.6 MB, free: 3.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008491/0.3598, allocations: 181.3 kB / 493.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.3632, allocations: 2.165 MB / 496 MB, free: 1.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007961/0.364, allocations: 1.111 MB / 497.1 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005471/0.3645, allocations: 218.6 kB / 497.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.3647, allocations: 55.44 kB / 497.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.414e-06/0.3647, allocations: 0 / 497.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of Templates: time 0.01932/0.3841, allocations: 10.97 MB / 0.4964 GB, free: 4.984 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)