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.0008424/0.0008424, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.00117/0.00117, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.639/1.639, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1897/0.1897, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.000563/0.0005631, allocations: 16.61 kB / 377.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2643, allocations: 56.35 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.006604/0.271, allocations: 8.754 MB / 442.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005288/0.2763, allocations: 2.844 MB / 445.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.2776, allocations: 63.56 kB / 445.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008707/0.2785, allocations: 214.6 kB / 445.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.2802, allocations: 485.9 kB / 445.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.2814, allocations: 399.3 kB / 446.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.2834, allocations: 1.976 MB / 448.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001586/0.285, allocations: 1.114 MB / 449.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008118/0.2858, allocations: 465.8 kB / 449.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009161/0.2867, allocations: 0.6774 MB / 450.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.2869, allocations: 40 kB / 450.5 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005503/0.2874, allocations: 243.6 kB / 450.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003904/0.2878, allocations: 474.7 kB / 451.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005596/0.2884, allocations: 0.5108 MB / 451.7 MB, free: 364 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.2899, allocations: 1.253 MB / 453 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2899, allocations: 0 / 453 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.2899, allocations: 0 / 453 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.845e-05/0.29, allocations: 0 / 453 MB, free: 15.09 MB / 334.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.003268/0.2933, allocations: 1.155 MB / 454.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.2933, allocations: 12.03 kB / 454.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.2947, allocations: 171.5 kB / 454.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.296, allocations: 0.7077 MB / 455 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.296, allocations: 62.38 kB / 455.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003453/0.2964, allocations: 108.1 kB / 455.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.2987, allocations: 1.223 MB / 456.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.2988, allocations: 4 kB / 456.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.909e-05/0.2989, allocations: 32 kB / 456.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.2991, allocations: 61.97 kB / 456.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.3008, allocations: 1.007 MB / 457.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006441/0.3073, allocations: 4.787 MB / 462.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3084, allocations: 0.6687 MB / 462.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006356/0.309, allocations: 455.8 kB / 463.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-05/0.3091, allocations: 8.547 kB / 463.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008054/0.3099, allocations: 0.5042 MB / 463.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 4.548e-06/0.3099, allocations: 3.938 kB / 463.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005229/0.3152, allocations: 2.78 MB / 466.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3153, allocations: 178.8 kB / 466.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.316, allocations: 0.5899 MB / 467.4 MB, free: 44 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.268e-05/0.3161, allocations: 37.7 kB / 467.5 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004414/0.3165, allocations: 486.9 kB / 468 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/0.3168, allocations: 244.5 kB / 468.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.317, allocations: 85.67 kB / 468.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.3172, allocations: 394.7 kB / 468.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007335/0.318, allocations: 381.7 kB / 469 MB, free: 14.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.3189, allocations: 0.6349 MB / 469.7 MB, free: 13.66 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.007181/0.3261, allocations: 3.458 MB / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.3261, allocations: 4 kB / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002273/0.3284, allocations: 1.34 MB / 474.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.3285, allocations: 41.64 kB / 474.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.3285, allocations: 12.06 kB / 474.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/0.3291, allocations: 234.4 kB / 474.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3302, allocations: 271.7 kB / 475 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005558/0.3358, allocations: 5.581 MB / 480.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/0.3365, allocations: 43.89 kB / 480.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.78e-05/0.3366, allocations: 39.98 kB / 480.7 MB, free: 2.039 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 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,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.000685/0.3373, allocations: 391 kB / 481.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.3374, allocations: 75.06 kB / 481.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.3395, allocations: 1.141 MB / 482.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/0.3395, allocations: 8 kB / 482.3 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.3395, allocations: 4 kB / 482.3 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.3396, allocations: 7.984 kB / 482.3 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.3431, allocations: 2.253 MB / 484.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3431, allocations: 4 kB / 484.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009245/0.3441, allocations: 183.8 kB / 484.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/0.3448, allocations: 250.3 kB / 485 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.668e-05/0.3449, allocations: 31.97 kB / 485 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005115/0.35, allocations: 5.511 MB / 490.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.35, allocations: 80 / 490.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.3525, allocations: 1.642 MB / 492.2 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.3527, allocations: 144.2 kB / 492.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3528, allocations: 31.92 kB / 492.3 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.3533, allocations: 27.98 kB / 492.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.3534, allocations: 60.41 kB / 492.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.266e-05/0.3535, allocations: 20 kB / 492.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004626/0.3539, allocations: 411 kB / 492.8 MB, free: 5.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.354, allocations: 0 / 492.8 MB, free: 5.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001049/0.355, allocations: 283.9 kB / 493.1 MB, free: 4.98 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.0002421/0.3553, allocations: 135.1 kB / 493.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.3574, allocations: 1.392 MB / 494.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3575, allocations: 0 / 494.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.3589, allocations: 0.9161 MB / 495.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.36, allocations: 181.9 kB / 495.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.3639, allocations: 2.672 MB / 498.4 MB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008754/0.3648, allocations: 1.119 MB / 499.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005806/0.3654, allocations: 206.5 kB / 499.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3655, allocations: 55.42 kB / 499.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3655, allocations: 0 / 499.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of Templates: time 0.01991/0.3854, allocations: 10.3 MB / 0.4981 GB, free: 3.855 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: