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.001716/0.001716, allocations: 110 kB / 17.06 MB, free: 6.113 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.002046/0.002046, allocations: 197.4 kB / 18 MB, free: 5.191 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.545/1.545, 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.1978/0.1978, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001878, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3968, allocations: 58.06 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008383/0.4052, allocations: 7.574 MB / 0.511 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.4096, allocations: 2.317 MB / 0.5133 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006878/0.4104, allocations: 29.38 kB / 0.5133 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002479/0.4129, allocations: 0.8559 MB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002397/0.4153, allocations: 0.5104 MB / 0.5147 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001862/0.4172, allocations: 452.4 kB / 0.5151 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.4194, allocations: 1.266 MB / 0.5163 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.4206, allocations: 0.6783 MB / 0.517 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.4219, allocations: 0.5534 MB / 0.5175 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001491/0.4234, allocations: 0.6529 MB / 0.5182 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002177/0.4236, allocations: 74.03 kB / 0.5182 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006961/0.4243, allocations: 216 kB / 0.5184 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007421/0.4251, allocations: 493.8 kB / 0.5189 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008388/0.4259, allocations: 0.5265 MB / 0.5194 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002492/0.4284, allocations: 1.247 MB / 0.5206 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.4285, allocations: 0.875 kB / 0.5206 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4285, allocations: 3.938 kB / 0.5207 GB, free: 13.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.978e-05/0.4285, allocations: 1.5 kB / 0.5207 GB, free: 13.14 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.003093/0.4316, allocations: 1.332 MB / 0.522 GB, free: 12.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.4317, allocations: 9.438 kB / 0.522 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002332/0.4319, allocations: 142.9 kB / 0.5221 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00116/0.4331, allocations: 171 kB / 0.5223 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001604/0.4347, allocations: 0.7349 MB / 0.523 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/0.4348, allocations: 64.75 kB / 0.523 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001593/0.435, allocations: 90.3 kB / 0.5231 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.4372, allocations: 1.174 MB / 0.5243 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.4372, allocations: 11.56 kB / 0.5243 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.991e-05/0.4373, allocations: 34.09 kB / 0.5243 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.828e-05/0.4374, allocations: 56.36 kB / 0.5244 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.4392, allocations: 0.9232 MB / 0.5253 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007854/0.4471, allocations: 4.78 MB / 0.5299 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.4485, allocations: 0.6751 MB / 0.5306 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.4492, allocations: 379.1 kB / 0.531 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.4493, allocations: 15.75 kB / 0.531 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008423/0.4502, allocations: 432.2 kB / 0.5314 GB, free: 6.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 6.963e-06/0.4502, allocations: 0 / 0.5314 GB, free: 6.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.006871/0.4571, allocations: 2.483 MB / 0.5338 GB, free: 4.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001952/0.4573, allocations: 167.6 kB / 0.534 GB, free: 4.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000994/0.4583, allocations: 0.6001 MB / 0.5346 GB, free: 4.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.751e-05/0.4584, allocations: 42.28 kB / 0.5346 GB, free: 4.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000506/0.4589, allocations: 499.9 kB / 0.5351 GB, free: 3.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.4592, allocations: 237.5 kB / 0.5353 GB, free: 3.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/0.4595, allocations: 152.8 kB / 0.5354 GB, free: 3.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002532/0.4597, allocations: 387 kB / 0.5358 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.4603, allocations: 289.2 kB / 0.5361 GB, free: 3.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007982/0.4611, allocations: 0.5532 MB / 0.5366 GB, free: 2.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.4626, allocations: 0.9576 MB / 0.5376 GB, free: 1.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4626, allocations: 2.812 kB / 0.5376 GB, free: 1.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00279/0.4654, allocations: 1.228 MB / 0.5388 GB, free: 1.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.418e-05/0.4655, allocations: 34.7 kB / 0.5388 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.4655, allocations: 13 kB / 0.5388 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.4667, allocations: 329.2 kB / 0.5391 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.4673, allocations: 144.3 kB / 0.5393 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007538/0.4749, allocations: 5.402 MB / 0.5445 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008408/0.4758, allocations: 36.75 kB / 0.5446 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-05/0.4759, allocations: 33.44 kB / 0.5446 GB, free: 12.49 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.0007158/0.4766, allocations: 360.6 kB / 0.545 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4767, allocations: 83.55 kB / 0.545 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/0.4789, allocations: 1.043 MB / 0.5461 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.4789, allocations: 6.75 kB / 0.5461 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.479, allocations: 9.875 kB / 0.5461 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.479, allocations: 3.984 kB / 0.5461 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003869/0.4828, allocations: 2.047 MB / 0.5481 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.4829, allocations: 4 kB / 0.5481 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/0.4832, allocations: 80.05 kB / 0.5481 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009276/0.4842, allocations: 309.4 kB / 0.5484 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.203e-05/0.4842, allocations: 19.92 kB / 0.5485 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007033/0.4913, allocations: 5.324 MB / 0.5537 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.4913, allocations: 7.938 kB / 0.5537 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.4937, allocations: 1.12 MB / 0.5548 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.4941, allocations: 156.5 kB / 0.5549 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.4942, allocations: 16 kB / 0.5549 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.4946, allocations: 19.98 kB / 0.5549 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.4947, allocations: 52.38 kB / 0.555 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/0.4948, allocations: 23.98 kB / 0.555 GB, free: 2.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006242/0.4954, allocations: 415 kB / 0.5554 GB, free: 1.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4954, allocations: 4 kB / 0.5554 GB, free: 1.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001222/0.4967, allocations: 268 kB / 0.5557 GB, free: 1.715 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.002422/0.4991, allocations: 1.688 MB / 0.5573 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.5013, allocations: 1.152 MB / 0.5584 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5013, allocations: 4 kB / 0.5585 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.5025, allocations: 0.7682 MB / 0.5592 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.5035, allocations: 183.7 kB / 0.5594 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.5157, allocations: 7.32 MB / 0.5665 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.5168, allocations: 1.111 MB / 0.5676 GB, free: 4.953 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006169/0.5175, allocations: 170.3 kB / 0.5678 GB, free: 4.781 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/0.518, allocations: 327.3 kB / 0.5681 GB, free: 4.465 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.518, allocations: 0 / 0.5681 GB, free: 4.465 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07818/0.5962, allocations: 18.26 MB / 0.5859 GB, free: 2.438 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.6, allocations: 11.42 kB / 0.5859 GB, free: 2.43 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