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.001597/0.001597, allocations: 108.3 kB / 17.06 MB, free: 6.023 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.001874/0.001874, allocations: 192 kB / 17.99 MB, free: 5.109 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.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1885/0.1885, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001399, allocations: 59.91 kB / 458.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3465, allocations: 58.06 MB / 0.5041 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007308/0.3539, allocations: 7.563 MB / 0.5115 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004357/0.3583, allocations: 2.325 MB / 0.5137 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006262/0.3589, allocations: 28.41 kB / 0.5138 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002386/0.3613, allocations: 0.8553 MB / 0.5146 GB, free: 312 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001527/0.3628, allocations: 0.5047 MB / 0.5151 GB, free: 8 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.3642, allocations: 446 kB / 0.5155 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.3661, allocations: 1.321 MB / 0.5168 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009925/0.3672, allocations: 0.6841 MB / 0.5175 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.3683, allocations: 0.5782 MB / 0.5181 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.3696, allocations: 0.6836 MB / 0.5187 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.3698, allocations: 84.94 kB / 0.5188 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000732/0.3705, allocations: 269.3 kB / 0.5191 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006652/0.3712, allocations: 0.5074 MB / 0.5196 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007336/0.372, allocations: 0.5451 MB / 0.5201 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001885/0.3738, allocations: 1.318 MB / 0.5214 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3739, allocations: 0.6562 kB / 0.5214 GB, free: 13.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3739, allocations: 0 / 0.5214 GB, free: 13.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.021e-05/0.3739, allocations: 1.094 kB / 0.5214 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.00277/0.3767, allocations: 1.343 MB / 0.5227 GB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3767, allocations: 13.48 kB / 0.5227 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.3778, allocations: 166.5 kB / 0.5229 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.3793, allocations: 0.7408 MB / 0.5236 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.682e-05/0.3794, allocations: 73.14 kB / 0.5236 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/0.3796, allocations: 105.7 kB / 0.5237 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.3816, allocations: 1.214 MB / 0.5249 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.3816, allocations: 6.781 kB / 0.5249 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.3818, allocations: 41.69 kB / 0.525 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00027/0.382, allocations: 65.56 kB / 0.525 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3838, allocations: 1.007 MB / 0.526 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00625/0.39, allocations: 4.752 MB / 0.5307 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.3911, allocations: 0.6718 MB / 0.5313 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000653/0.3918, allocations: 455.1 kB / 0.5318 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.486e-05/0.3919, allocations: 19.33 kB / 0.5318 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008129/0.3927, allocations: 0.5023 MB / 0.5323 GB, free: 6.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.725e-06/0.3927, allocations: 3.938 kB / 0.5323 GB, free: 6.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005361/0.3981, allocations: 2.781 MB / 0.535 GB, free: 4.902 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.3982, allocations: 168.7 kB / 0.5351 GB, free: 4.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.3989, allocations: 0.5884 MB / 0.5357 GB, free: 4.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.559e-05/0.399, allocations: 46.58 kB / 0.5358 GB, free: 4.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.3994, allocations: 474.4 kB / 0.5362 GB, free: 3.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002422/0.3996, allocations: 255.9 kB / 0.5365 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.3999, allocations: 174.1 kB / 0.5366 GB, free: 3.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.4001, allocations: 391.8 kB / 0.537 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000645/0.4007, allocations: 376.5 kB / 0.5374 GB, free: 3.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008277/0.4016, allocations: 0.6389 MB / 0.538 GB, free: 2.504 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.006973/0.4086, allocations: 3.451 MB / 0.5414 GB, free: 432 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.4086, allocations: 2.688 kB / 0.5414 GB, free: 432 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002294/0.4109, allocations: 1.34 MB / 0.5427 GB, free: 15.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.4109, allocations: 34.33 kB / 0.5427 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.411, allocations: 8.594 kB / 0.5427 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006373/0.4116, allocations: 248.4 kB / 0.5429 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.4127, allocations: 263.1 kB / 0.5432 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005336/0.418, allocations: 6.077 MB / 0.5491 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008196/0.4189, allocations: 43.95 kB / 0.5492 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.114e-05/0.419, allocations: 39.98 kB / 0.5492 GB, free: 9.09 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.0008085/0.4198, allocations: 377.6 kB / 0.5496 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.42, allocations: 86.92 kB / 0.5497 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.4221, allocations: 1.137 MB / 0.5508 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/0.4221, allocations: 11.98 kB / 0.5508 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4221, allocations: 4.125 kB / 0.5508 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4221, allocations: 8 kB / 0.5508 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.4261, allocations: 2.258 MB / 0.553 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4261, allocations: 0 / 0.553 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008912/0.427, allocations: 187.9 kB / 0.5532 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007446/0.4278, allocations: 246.5 kB / 0.5534 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-05/0.4279, allocations: 31.92 kB / 0.5534 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006249/0.4341, allocations: 6.003 MB / 0.5593 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4342, allocations: 0 / 0.5593 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/0.4371, allocations: 1.647 MB / 0.5609 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/0.4375, allocations: 148.2 kB / 0.561 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.4377, allocations: 23.98 kB / 0.5611 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.4382, allocations: 27.98 kB / 0.5611 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.4383, allocations: 64.36 kB / 0.5612 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.4384, allocations: 23.98 kB / 0.5612 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005239/0.4389, allocations: 411 kB / 0.5616 GB, free: 11.81 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4389, allocations: 0 / 0.5616 GB, free: 11.81 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001306/0.4403, allocations: 276 kB / 0.5618 GB, free: 11.54 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.0002816/0.4406, allocations: 131.2 kB / 0.562 GB, free: 11.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.4435, allocations: 1.392 MB / 0.5633 GB, free: 9.957 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4435, allocations: 0 / 0.5633 GB, free: 9.957 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.445, allocations: 0.9093 MB / 0.5642 GB, free: 8.996 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4461, allocations: 198.1 kB / 0.5644 GB, free: 8.812 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.4504, allocations: 2.157 MB / 0.5665 GB, free: 6.609 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009165/0.4514, allocations: 1.115 MB / 0.5676 GB, free: 5.469 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006094/0.452, allocations: 214.4 kB / 0.5678 GB, free: 5.254 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.4522, allocations: 59.38 kB / 0.5679 GB, free: 5.195 MB / 430.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4522, allocations: 0 / 0.5679 GB, free: 5.195 MB / 430.1 MB Notification: Performance of Templates: time 0.02047/0.4727, allocations: 11.18 MB / 0.5788 GB, free: 10.08 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches