Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",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.001259/0.001259, allocations: 109.5 kB / 17.06 MB, free: 5.969 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.001284/0.001284, allocations: 196.1 kB / 18.01 MB, free: 5.051 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.398/1.398, allocations: 222.9 MB / 241.7 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.1804/0.1804, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001732, allocations: 63.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3878, allocations: 58.05 MB / 0.5036 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.0103/0.3981, allocations: 7.576 MB / 0.511 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004447/0.4026, allocations: 2.321 MB / 0.5133 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007427/0.4034, allocations: 28.59 kB / 0.5133 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.4056, allocations: 0.8585 MB / 0.5142 GB, free: 176 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001452/0.4071, allocations: 0.5097 MB / 0.5147 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.4086, allocations: 451.2 kB / 0.5151 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.4106, allocations: 1.273 MB / 0.5163 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009753/0.4116, allocations: 0.6768 MB / 0.517 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.4128, allocations: 0.5658 MB / 0.5175 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.4141, allocations: 0.653 MB / 0.5182 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000209/0.4143, allocations: 73.81 kB / 0.5182 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007005/0.415, allocations: 212.2 kB / 0.5184 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006538/0.4157, allocations: 493.2 kB / 0.5189 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007325/0.4164, allocations: 0.5267 MB / 0.5194 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.4184, allocations: 1.251 MB / 0.5207 GB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.4185, allocations: 0.9688 kB / 0.5207 GB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4185, allocations: 3.938 kB / 0.5207 GB, free: 13.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.4185, allocations: 0 / 0.5207 GB, free: 13.33 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.002845/0.4213, allocations: 1.328 MB / 0.522 GB, free: 12.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4214, allocations: 13.86 kB / 0.522 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.4216, allocations: 147.4 kB / 0.5221 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.4226, allocations: 174.9 kB / 0.5223 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.4244, allocations: 0.73 MB / 0.523 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.4245, allocations: 65.16 kB / 0.5231 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.4247, allocations: 86.38 kB / 0.5231 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.4269, allocations: 1.174 MB / 0.5243 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.4269, allocations: 11.33 kB / 0.5243 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.534e-05/0.427, allocations: 37.61 kB / 0.5243 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-05/0.4271, allocations: 60.39 kB / 0.5244 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.4288, allocations: 0.9238 MB / 0.5253 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008333/0.4371, allocations: 4.78 MB / 0.53 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.4386, allocations: 0.6683 MB / 0.5306 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.4393, allocations: 382.4 kB / 0.531 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.4393, allocations: 20.27 kB / 0.531 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006742/0.44, allocations: 435.7 kB / 0.5314 GB, free: 6.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 4.949e-06/0.44, allocations: 0 / 0.5314 GB, free: 6.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005561/0.4456, allocations: 2.476 MB / 0.5338 GB, free: 5.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.4457, allocations: 167.1 kB / 0.534 GB, free: 4.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008215/0.4466, allocations: 0.5968 MB / 0.5346 GB, free: 4.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.4467, allocations: 40.67 kB / 0.5346 GB, free: 4.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000387/0.4471, allocations: 493.8 kB / 0.5351 GB, free: 4.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.4473, allocations: 232.7 kB / 0.5353 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.4476, allocations: 165.7 kB / 0.5355 GB, free: 3.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.4478, allocations: 387.2 kB / 0.5358 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.4483, allocations: 283.5 kB / 0.5361 GB, free: 3.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008463/0.4491, allocations: 0.5584 MB / 0.5366 GB, free: 2.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.4504, allocations: 0.9534 MB / 0.5376 GB, free: 2.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.4504, allocations: 2.062 kB / 0.5376 GB, free: 2.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002442/0.4528, allocations: 1.227 MB / 0.5388 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.277e-05/0.4529, allocations: 35.8 kB / 0.5388 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.4529, allocations: 13.66 kB / 0.5388 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.454, allocations: 339.9 kB / 0.5391 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.4545, allocations: 149.2 kB / 0.5393 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006677/0.4611, allocations: 5.383 MB / 0.5445 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006997/0.4619, allocations: 31.11 kB / 0.5446 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.945e-05/0.462, allocations: 46.23 kB / 0.5446 GB, free: 12.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006052/0.4626, allocations: 355.3 kB / 0.545 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.4627, allocations: 84.55 kB / 0.545 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.4646, allocations: 1.042 MB / 0.5461 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.4647, allocations: 6.844 kB / 0.5461 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4647, allocations: 5.719 kB / 0.5461 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4647, allocations: 3.984 kB / 0.5461 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.4685, allocations: 2.06 MB / 0.5481 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.4685, allocations: 4 kB / 0.5481 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.4689, allocations: 72.06 kB / 0.5482 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008965/0.4698, allocations: 317.4 kB / 0.5485 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.046e-05/0.4698, allocations: 23.94 kB / 0.5485 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006226/0.4761, allocations: 5.315 MB / 0.5537 GB, free: 3.988 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4761, allocations: 7.938 kB / 0.5537 GB, free: 3.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.4781, allocations: 1.124 MB / 0.5548 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.4784, allocations: 152.6 kB / 0.5549 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.314e-05/0.4785, allocations: 23.92 kB / 0.5549 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.4788, allocations: 16 kB / 0.555 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.479, allocations: 60.36 kB / 0.555 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.479, allocations: 24 kB / 0.555 GB, free: 2.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006031/0.4796, allocations: 423 kB / 0.5554 GB, free: 2.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4797, allocations: 0 / 0.5554 GB, free: 2.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001165/0.4808, allocations: 264 kB / 0.5557 GB, free: 1.852 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002143/0.483, allocations: 1.688 MB / 0.5573 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.4852, allocations: 1.144 MB / 0.5585 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4853, allocations: 4 kB / 0.5585 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.4864, allocations: 0.7681 MB / 0.5592 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009918/0.4874, allocations: 185.5 kB / 0.5594 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.4985, allocations: 7.324 MB / 0.5665 GB, free: 6.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000855/0.4994, allocations: 1.095 MB / 0.5676 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005527/0.5, allocations: 178.3 kB / 0.5678 GB, free: 4.926 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.5004, allocations: 335.3 kB / 0.5681 GB, free: 4.602 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5004, allocations: 0 / 0.5681 GB, free: 4.602 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/0.554, allocations: 18.25 MB / 0.5859 GB, free: 2.582 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.61, allocations: 7.984 kB / 0.5859 GB, free: 2.574 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_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_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches