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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001718/0.001718, allocations: 192 kB / 18 MB, free: 5.102 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1892/0.1892, allocations: 38.03 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002509/0.002509, allocations: 67.91 kB / 457.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3584, allocations: 58.05 MB / 0.5036 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007335/0.3658, allocations: 7.576 MB / 0.511 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.3694, allocations: 2.317 MB / 0.5133 GB, free: 484 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004074/0.3698, allocations: 29.94 kB / 0.5133 GB, free: 472 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002064/0.3719, allocations: 0.8509 MB / 0.5141 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.3732, allocations: 0.5042 MB / 0.5146 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3746, allocations: 450.7 kB / 0.5151 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001671/0.3762, allocations: 1.319 MB / 0.5163 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009502/0.3772, allocations: 0.6844 MB / 0.517 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009917/0.3782, allocations: 0.5674 MB / 0.5176 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.3797, allocations: 0.6854 MB / 0.5182 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.38, allocations: 81.56 kB / 0.5183 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009437/0.3809, allocations: 270.1 kB / 0.5186 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006901/0.3816, allocations: 0.5073 MB / 0.5191 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007136/0.3823, allocations: 0.5442 MB / 0.5196 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001737/0.3841, allocations: 1.325 MB / 0.5209 GB, free: 13.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3841, allocations: 1 kB / 0.5209 GB, free: 13.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3841, allocations: 7.938 kB / 0.5209 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.3841, allocations: 0 / 0.5209 GB, free: 13.02 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.002671/0.3868, allocations: 1.367 MB / 0.5222 GB, free: 12.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3869, allocations: 12.55 kB / 0.5222 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.3871, allocations: 140 kB / 0.5224 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.3881, allocations: 173.9 kB / 0.5225 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/0.3897, allocations: 0.7481 MB / 0.5233 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.268e-05/0.3898, allocations: 70.97 kB / 0.5233 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.3901, allocations: 100.8 kB / 0.5234 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002463/0.3925, allocations: 1.223 MB / 0.5246 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.821e-05/0.3926, allocations: 10.23 kB / 0.5246 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.941e-05/0.3927, allocations: 37.97 kB / 0.5247 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002633/0.393, allocations: 62.25 kB / 0.5247 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.3947, allocations: 1.011 MB / 0.5257 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007553/0.4023, allocations: 4.762 MB / 0.5304 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.4036, allocations: 0.6721 MB / 0.531 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006702/0.4043, allocations: 458.2 kB / 0.5315 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.187e-05/0.4043, allocations: 16.38 kB / 0.5315 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000853/0.4052, allocations: 0.5023 MB / 0.532 GB, free: 6.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.925e-06/0.4052, allocations: 0 / 0.532 GB, free: 6.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006187/0.4114, allocations: 2.816 MB / 0.5347 GB, free: 4.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.4116, allocations: 163.8 kB / 0.5349 GB, free: 4.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008794/0.4125, allocations: 0.5922 MB / 0.5355 GB, free: 3.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.413e-05/0.4126, allocations: 43.23 kB / 0.5355 GB, free: 3.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005106/0.4131, allocations: 491.6 kB / 0.536 GB, free: 3.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000503/0.4136, allocations: 264.8 kB / 0.5362 GB, free: 3.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.414, allocations: 165.8 kB / 0.5364 GB, free: 3.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00036/0.4144, allocations: 400.5 kB / 0.5368 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.4154, allocations: 376.1 kB / 0.5371 GB, free: 2.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.4169, allocations: 0.6351 MB / 0.5377 GB, free: 2.094 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.01209/0.429, allocations: 3.44 MB / 0.5411 GB, free: 24 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.429, allocations: 2.75 kB / 0.5411 GB, free: 24 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003865/0.4329, allocations: 1.349 MB / 0.5424 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.456e-05/0.433, allocations: 34.52 kB / 0.5425 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.797e-05/0.433, allocations: 8.812 kB / 0.5425 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.4341, allocations: 244.9 kB / 0.5427 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002144/0.4363, allocations: 273.1 kB / 0.543 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009557/0.4458, allocations: 6.085 MB / 0.5489 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.4472, allocations: 35.98 kB / 0.5489 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.4473, allocations: 36 kB / 0.549 GB, free: 8.934 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.000993/0.4483, allocations: 387.3 kB / 0.5493 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.4485, allocations: 87.42 kB / 0.5494 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003229/0.4518, allocations: 1.149 MB / 0.5505 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/0.4518, allocations: 8 kB / 0.5505 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.4519, allocations: 4 kB / 0.5506 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.4519, allocations: 3.984 kB / 0.5506 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005902/0.4578, allocations: 2.254 MB / 0.5528 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.4578, allocations: 4 kB / 0.5528 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/0.4594, allocations: 183.8 kB / 0.5529 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.4604, allocations: 250.4 kB / 0.5532 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.4606, allocations: 27.92 kB / 0.5532 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008981/0.4695, allocations: 6.016 MB / 0.5591 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.4696, allocations: 4.031 kB / 0.5591 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/0.4739, allocations: 1.647 MB / 0.5607 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000435/0.4744, allocations: 152.6 kB / 0.5608 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.4746, allocations: 24 kB / 0.5609 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.4753, allocations: 27.97 kB / 0.5609 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.4755, allocations: 60.36 kB / 0.5609 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.412e-05/0.4756, allocations: 23.98 kB / 0.561 GB, free: 12.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008327/0.4764, allocations: 415 kB / 0.5614 GB, free: 11.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4764, allocations: 0 / 0.5614 GB, free: 11.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001453/0.4779, allocations: 268 kB / 0.5616 GB, free: 11.36 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.003506/0.4814, allocations: 2.225 MB / 0.5638 GB, free: 9.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.4841, allocations: 1.403 MB / 0.5652 GB, free: 7.621 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4841, allocations: 0 / 0.5652 GB, free: 7.621 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.4857, allocations: 0.9094 MB / 0.566 GB, free: 6.656 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.487, allocations: 194.7 kB / 0.5662 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.5002, allocations: 8.208 MB / 0.5742 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008753/0.5011, allocations: 1.119 MB / 0.5753 GB, free: 12.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006034/0.5017, allocations: 206.5 kB / 0.5755 GB, free: 12.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/0.5022, allocations: 339.3 kB / 0.5759 GB, free: 12.18 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5022, allocations: 0 / 0.5759 GB, free: 12.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05927/0.5614, allocations: 18.87 MB / 0.5943 GB, free: 9.531 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.98, allocations: 11.48 kB / 0.5943 GB, free: 9.523 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.csv","/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