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.001148/0.001148, allocations: 111.8 kB / 17.74 MB, free: 5.34 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.001174/0.001174, allocations: 193.6 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2062/0.2062, allocations: 38.03 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 59.91 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3371, allocations: 58.05 MB / 0.5047 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007952/0.3451, allocations: 7.58 MB / 0.5121 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004466/0.3496, allocations: 2.319 MB / 0.5144 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.3507, allocations: 29.28 kB / 0.5144 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.3533, allocations: 0.8542 MB / 0.5153 GB, free: 324 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.3553, allocations: 0.5001 MB / 0.5158 GB, free: 24 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.357, allocations: 454.7 kB / 0.5162 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002615/0.3597, allocations: 1.316 MB / 0.5175 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.3611, allocations: 0.6891 MB / 0.5182 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001642/0.3627, allocations: 0.5819 MB / 0.5187 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.3645, allocations: 0.6831 MB / 0.5194 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003722/0.3649, allocations: 80.78 kB / 0.5195 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.366, allocations: 269.5 kB / 0.5197 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000955/0.367, allocations: 0.5004 MB / 0.5202 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001563/0.3686, allocations: 0.5493 MB / 0.5207 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.3714, allocations: 1.325 MB / 0.522 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3714, allocations: 1.125 kB / 0.522 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3714, allocations: 0 / 0.522 GB, free: 13.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.264e-05/0.3715, allocations: 0 / 0.522 GB, free: 13.39 MB / 398.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.004373/0.3758, allocations: 1.341 MB / 0.5234 GB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3759, allocations: 16.92 kB / 0.5234 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.3774, allocations: 164.9 kB / 0.5235 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.3794, allocations: 0.7379 MB / 0.5242 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.401e-05/0.3795, allocations: 60.59 kB / 0.5243 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004209/0.3799, allocations: 109.9 kB / 0.5244 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.3829, allocations: 1.221 MB / 0.5256 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-05/0.383, allocations: 4.547 kB / 0.5256 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.3831, allocations: 37.77 kB / 0.5256 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/0.3835, allocations: 60.67 kB / 0.5257 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002219/0.3857, allocations: 1.012 MB / 0.5267 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007784/0.3935, allocations: 4.758 MB / 0.5313 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.3948, allocations: 0.6715 MB / 0.532 GB, free: 7.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006882/0.3955, allocations: 458.9 kB / 0.5324 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.833e-05/0.3955, allocations: 7.969 kB / 0.5324 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008588/0.3964, allocations: 0.4977 MB / 0.5329 GB, free: 6.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 6.302e-06/0.3964, allocations: 1.094 kB / 0.5329 GB, free: 6.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005637/0.4021, allocations: 2.793 MB / 0.5357 GB, free: 4.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4022, allocations: 175.8 kB / 0.5358 GB, free: 4.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008713/0.4031, allocations: 0.5853 MB / 0.5364 GB, free: 4.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.876e-05/0.4032, allocations: 41.58 kB / 0.5364 GB, free: 4.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004397/0.4036, allocations: 483 kB / 0.5369 GB, free: 3.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.4039, allocations: 251.2 kB / 0.5371 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/0.4042, allocations: 177.9 kB / 0.5373 GB, free: 3.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4044, allocations: 392 kB / 0.5377 GB, free: 3.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006474/0.4051, allocations: 376.7 kB / 0.538 GB, free: 3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008554/0.406, allocations: 0.6351 MB / 0.5387 GB, free: 2.477 MB / 398.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.007413/0.4134, allocations: 3.44 MB / 0.542 GB, free: 416 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.4134, allocations: 1.594 kB / 0.542 GB, free: 416 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002568/0.416, allocations: 1.338 MB / 0.5433 GB, free: 15.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.935e-05/0.4161, allocations: 39.25 kB / 0.5434 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.4161, allocations: 11.47 kB / 0.5434 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006935/0.4168, allocations: 244.6 kB / 0.5436 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.418, allocations: 262.8 kB / 0.5439 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/0.424, allocations: 6.092 MB / 0.5498 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008368/0.4249, allocations: 39.89 kB / 0.5498 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.425, allocations: 36 kB / 0.5499 GB, free: 9.074 MB / 414.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.0007908/0.4259, allocations: 377.7 kB / 0.5502 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.4261, allocations: 79 kB / 0.5503 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/0.4283, allocations: 1.141 MB / 0.5514 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-05/0.4284, allocations: 12 kB / 0.5514 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4284, allocations: 7.938 kB / 0.5514 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.4284, allocations: 3.984 kB / 0.5514 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.4325, allocations: 2.243 MB / 0.5536 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.4326, allocations: 0 / 0.5536 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009703/0.4335, allocations: 191.8 kB / 0.5538 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007435/0.4343, allocations: 250.3 kB / 0.5541 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-05/0.4344, allocations: 31.91 kB / 0.5541 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005787/0.4402, allocations: 6.011 MB / 0.56 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4402, allocations: 0 / 0.56 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002977/0.4432, allocations: 1.647 MB / 0.5616 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.4436, allocations: 148.1 kB / 0.5617 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.4438, allocations: 27.98 kB / 0.5617 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005496/0.4444, allocations: 23.98 kB / 0.5618 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.4445, allocations: 60.41 kB / 0.5618 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.048e-05/0.4446, allocations: 24 kB / 0.5618 GB, free: 12.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007679/0.4454, allocations: 415 kB / 0.5622 GB, free: 11.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4454, allocations: 0 / 0.5622 GB, free: 11.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001509/0.4469, allocations: 284.1 kB / 0.5625 GB, free: 11.52 MB / 430.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.0002671/0.4472, allocations: 123.1 kB / 0.5626 GB, free: 11.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.4497, allocations: 1.396 MB / 0.564 GB, free: 9.938 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4497, allocations: 320 / 0.564 GB, free: 9.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.4512, allocations: 0.9161 MB / 0.5649 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4524, allocations: 176.1 kB / 0.565 GB, free: 8.805 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.4564, allocations: 2.257 MB / 0.5673 GB, free: 6.496 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008943/0.4574, allocations: 1.115 MB / 0.5683 GB, free: 5.355 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.4576, allocations: 59.42 kB / 0.5684 GB, free: 5.297 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4576, allocations: 0 / 0.5684 GB, free: 5.297 MB / 430.1 MB Notification: Performance of Templates: time 0.02797/0.4856, allocations: 21.1 MB / 0.589 GB, free: 216 kB / 446.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