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.001087/0.001087, allocations: 111.6 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.001214/0.001214, 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.535/1.535, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1811/0.1811, allocations: 37.98 MB / 309.8 MB, free: 5.984 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.001486/0.001486, allocations: 64.47 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.249, allocations: 55.23 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.00624/0.2553, allocations: 7.58 MB / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003305/0.2586, allocations: 2.376 MB / 442 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.259, allocations: 23.88 kB / 442 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.2608, allocations: 0.8503 MB / 442.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008868/0.2616, allocations: 0.5052 MB / 443.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.2628, allocations: 451 kB / 443.8 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.2641, allocations: 1.313 MB / 445.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006714/0.2648, allocations: 0.6933 MB / 445.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006467/0.2654, allocations: 0.568 MB / 446.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000697/0.2661, allocations: 0.6814 MB / 447 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-05/0.2663, allocations: 80 kB / 447.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004593/0.2667, allocations: 267.6 kB / 447.4 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003364/0.2671, allocations: 0.5065 MB / 447.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004178/0.2675, allocations: 0.5559 MB / 448.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009639/0.2685, allocations: 1.32 MB / 449.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2685, allocations: 0 / 449.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2685, allocations: 3.938 kB / 449.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.2685, allocations: 0 / 449.8 MB, free: 1.68 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.001986/0.2705, allocations: 1.331 MB / 451.1 MB, free: 300 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.2705, allocations: 15.89 kB / 451.1 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008952/0.2714, allocations: 175.4 kB / 451.3 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.2728, allocations: 0.7312 MB / 452 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-05/0.2729, allocations: 62.38 kB / 452.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002443/0.2731, allocations: 112 kB / 452.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.2748, allocations: 1.219 MB / 453.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.2748, allocations: 7.938 kB / 453.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.2749, allocations: 35.98 kB / 453.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002457/0.2751, allocations: 61.97 kB / 453.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.2766, allocations: 1.007 MB / 454.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00562/0.2822, allocations: 4.752 MB / 459.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2833, allocations: 0.6643 MB / 459.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005719/0.2839, allocations: 447.9 kB / 460.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.401e-05/0.2839, allocations: 16.48 kB / 460.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006917/0.2846, allocations: 0.504 MB / 460.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.474e-06/0.2846, allocations: 4 kB / 460.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004396/0.289, allocations: 2.78 MB / 463.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.2891, allocations: 166.8 kB / 463.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.2898, allocations: 0.5938 MB / 464.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.2898, allocations: 37.7 kB / 464.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.2902, allocations: 483 kB / 464.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.2904, allocations: 252.4 kB / 465.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.2906, allocations: 174.6 kB / 465.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2908, allocations: 398.7 kB / 465.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.2914, allocations: 373.8 kB / 466.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007141/0.2921, allocations: 0.631 MB / 466.7 MB, free: 4 kB / 334.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.006673/0.2988, allocations: 3.45 MB / 470.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.2988, allocations: 0 / 470.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002202/0.301, allocations: 1.348 MB / 471.5 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.301, allocations: 33.7 kB / 471.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.3011, allocations: 16 kB / 471.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005933/0.3017, allocations: 238.4 kB / 471.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3028, allocations: 267.6 kB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00539/0.3082, allocations: 6.085 MB / 478.2 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006829/0.3089, allocations: 39.92 kB / 478.2 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.45e-05/0.309, allocations: 40 kB / 478.2 MB, free: 3.867 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.000565/0.3096, allocations: 380.1 kB / 478.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3097, allocations: 83 kB / 478.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.3116, allocations: 1.141 MB / 479.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.3117, allocations: 8 kB / 479.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3117, allocations: 4 kB / 479.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3117, allocations: 7.984 kB / 479.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003514/0.3152, allocations: 2.25 MB / 482.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3152, allocations: 3.938 kB / 482.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009073/0.3161, allocations: 187.8 kB / 482.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006591/0.3168, allocations: 242.5 kB / 482.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-05/0.3169, allocations: 31.92 kB / 482.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005273/0.3222, allocations: 6.023 MB / 488.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3222, allocations: 0 / 488.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.3249, allocations: 1.635 MB / 490.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.3252, allocations: 152.1 kB / 490.4 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.3253, allocations: 27.94 kB / 490.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.3257, allocations: 27.97 kB / 490.4 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.3259, allocations: 56.42 kB / 490.5 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.3259, allocations: 20 kB / 490.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005583/0.3265, allocations: 415 kB / 490.9 MB, free: 6.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.3265, allocations: 0 / 490.9 MB, free: 6.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001082/0.3276, allocations: 288 kB / 491.2 MB, free: 6.301 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.0002931/0.3279, allocations: 135 kB / 491.3 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.3301, allocations: 1.384 MB / 492.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3301, allocations: 384 / 492.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.3315, allocations: 0.92 MB / 493.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000926/0.3324, allocations: 185.9 kB / 493.8 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.3358, allocations: 2.161 MB / 496 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.3367, allocations: 1.122 MB / 497.1 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005211/0.3372, allocations: 206.5 kB / 497.3 MB, free: 4 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.3374, allocations: 55.42 kB / 497.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3374, allocations: 0 / 497.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01853/0.3559, allocations: 10.97 MB / 0.4964 GB, free: 5 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)