Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_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.002357/0.002357, allocations: 110.8 kB / 17.29 MB, free: 6.203 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.002626/0.002626, allocations: 197.3 kB / 18.21 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.639/2.639, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4187/0.4187, allocations: 38.02 MB / 330.1 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00238/0.00238, allocations: 62.38 kB / 398.9 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1953, allocations: 58.06 MB / 457 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.02098/0.2164, allocations: 9.227 MB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02428/0.2408, allocations: 2.812 MB / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002327/0.2432, allocations: 59.62 kB / 469.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004083/0.2473, allocations: 0.8084 MB / 469.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.2586, allocations: 485.9 kB / 470.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002365/0.261, allocations: 403.3 kB / 470.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.2645, allocations: 1.321 MB / 472.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.2665, allocations: 0.7362 MB / 472.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001819/0.2683, allocations: 0.5641 MB / 473.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002052/0.2704, allocations: 0.736 MB / 474.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002434/0.2707, allocations: 87.88 kB / 474.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.2718, allocations: 271.6 kB / 474.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008709/0.2727, allocations: 0.5066 MB / 475 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.2738, allocations: 0.5443 MB / 475.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001925/0.2757, allocations: 1.01 MB / 476.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.2758, allocations: 4 kB / 476.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2758, allocations: 0 / 476.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.2758, allocations: 0 / 476.6 MB, free: 4.816 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.004113/0.2799, allocations: 1.339 MB / 477.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/0.28, allocations: 11.89 kB / 477.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.2818, allocations: 167.5 kB / 478.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.2839, allocations: 0.7038 MB / 478.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.284, allocations: 74.34 kB / 478.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003833/0.2844, allocations: 104 kB / 478.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003279/0.2877, allocations: 1.216 MB / 480.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.142e-05/0.2878, allocations: 11.88 kB / 480.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.288, allocations: 35.98 kB / 480.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004244/0.2884, allocations: 65.95 kB / 480.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002812/0.2912, allocations: 1.011 MB / 481.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.3018, allocations: 4.76 MB / 486 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.3039, allocations: 0.6721 MB / 486.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.3051, allocations: 455.8 kB / 487.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-05/0.3052, allocations: 8.547 kB / 487.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.3067, allocations: 0.508 MB / 487.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 6.953e-06/0.3068, allocations: 0 / 487.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.008493/0.3153, allocations: 2.78 MB / 490.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.3155, allocations: 170.8 kB / 490.6 MB, free: 6.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.3167, allocations: 0.586 MB / 491.2 MB, free: 5.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.746e-05/0.3168, allocations: 45.69 kB / 491.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006411/0.3175, allocations: 471 kB / 491.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.3179, allocations: 260.4 kB / 492 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004288/0.3183, allocations: 174.5 kB / 492.1 MB, free: 4.637 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002804/0.3186, allocations: 390.7 kB / 492.5 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3196, allocations: 381.8 kB / 492.9 MB, free: 3.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.321, allocations: 0.631 MB / 493.5 MB, free: 3.129 MB / 366.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.01202/0.333, allocations: 3.458 MB / 497 MB, free: 15.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/0.3331, allocations: 4 kB / 497 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004162/0.3372, allocations: 1.347 MB / 498.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.079e-05/0.3374, allocations: 36.05 kB / 498.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.249e-05/0.3374, allocations: 8 kB / 498.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3385, allocations: 247.1 kB / 498.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/0.3406, allocations: 271.5 kB / 498.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009731/0.3503, allocations: 6.081 MB / 0.4931 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.3517, allocations: 39.98 kB / 0.4932 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.3519, allocations: 40.3 kB / 0.4932 GB, free: 6.98 MB / 382.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.001028/0.3529, allocations: 376.7 kB / 0.4936 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002695/0.3532, allocations: 79 kB / 0.4936 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/0.3566, allocations: 1.141 MB / 0.4948 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-05/0.3567, allocations: 12 kB / 0.4948 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.3567, allocations: 4 kB / 0.4948 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.3568, allocations: 3.984 kB / 0.4948 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006388/0.3631, allocations: 2.246 MB / 0.497 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.3632, allocations: 4 kB / 0.497 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/0.3648, allocations: 183.8 kB / 0.4971 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.3661, allocations: 254.4 kB / 0.4974 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.3662, allocations: 27.92 kB / 0.4974 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009707/0.3759, allocations: 6.011 MB / 0.5033 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.376, allocations: 4.031 kB / 0.5033 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004638/0.3806, allocations: 1.645 MB / 0.5049 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004646/0.3811, allocations: 152.1 kB / 0.505 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.3813, allocations: 27.98 kB / 0.5051 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006893/0.3821, allocations: 23.98 kB / 0.5051 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.3823, allocations: 60.36 kB / 0.5051 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.173e-05/0.3824, allocations: 23.98 kB / 0.5052 GB, free: 10.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00088/0.3833, allocations: 415 kB / 0.5056 GB, free: 9.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3833, allocations: 0 / 0.5056 GB, free: 9.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001991/0.3853, allocations: 268 kB / 0.5058 GB, free: 9.445 MB / 398.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.000364/0.3857, allocations: 131.2 kB / 0.5059 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00434/0.3901, allocations: 1.56 MB / 0.5075 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/0.3901, allocations: 4 kB / 0.5075 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002273/0.3924, allocations: 0.9124 MB / 0.5084 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.3942, allocations: 181.4 kB / 0.5085 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006735/0.4009, allocations: 2.651 MB / 0.5111 GB, free: 3.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.4022, allocations: 1.111 MB / 0.5122 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.4027, allocations: 67.36 kB / 0.5123 GB, free: 2.645 MB / 398.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4027, allocations: 3.938 kB / 0.5123 GB, free: 2.641 MB / 398.1 MB Notification: Performance of Templates: time 0.3996/0.8023, allocations: 21.02 MB / 0.5328 GB, free: 62.48 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches