Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Display.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.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",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.001824/0.001824, allocations: 112.8 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.001969/0.001969, allocations: 200 kB / 18.01 MB, free: 5.047 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.505/1.505, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2092/0.2092, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.84 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4027, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.007627/0.4103, allocations: 6.637 MB / 0.5101 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003763/0.4141, allocations: 2.019 MB / 0.5121 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000465/0.4146, allocations: 23.09 kB / 0.5121 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001822/0.4165, allocations: 0.7152 MB / 0.5128 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.4178, allocations: 0.5744 MB / 0.5133 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006698/0.4185, allocations: 246.5 kB / 0.5136 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.4198, allocations: 1.142 MB / 0.5147 GB, free: 12 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008657/0.4206, allocations: 0.5876 MB / 0.5153 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008254/0.4215, allocations: 0.5169 MB / 0.5158 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009934/0.4225, allocations: 0.6144 MB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.4226, allocations: 68 kB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006681/0.4233, allocations: 271.1 kB / 0.5167 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006234/0.4239, allocations: 479 kB / 0.5172 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006871/0.4246, allocations: 495.2 kB / 0.5176 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.4262, allocations: 1.189 MB / 0.5188 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4262, allocations: 0 / 0.5188 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4262, allocations: 1.062 kB / 0.5188 GB, free: 14.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.4262, allocations: 0 / 0.5188 GB, free: 14.35 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002326/0.4285, allocations: 1.239 MB / 0.52 GB, free: 13.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4286, allocations: 13.23 kB / 0.52 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001908/0.4288, allocations: 141.4 kB / 0.5202 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.4298, allocations: 171.9 kB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.431, allocations: 0.6233 MB / 0.5209 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.4311, allocations: 68.22 kB / 0.521 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002398/0.4314, allocations: 100.4 kB / 0.5211 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.4334, allocations: 1.151 MB / 0.5222 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.4334, allocations: 2.609 kB / 0.5222 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.4335, allocations: 36.17 kB / 0.5222 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.4337, allocations: 91.3 kB / 0.5223 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.4356, allocations: 1.001 MB / 0.5233 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006371/0.4419, allocations: 4.349 MB / 0.5276 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.4433, allocations: 0.6309 MB / 0.5282 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005493/0.4439, allocations: 311.5 kB / 0.5285 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.4439, allocations: 10.55 kB / 0.5285 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.444, allocations: 39.58 kB / 0.5285 GB, free: 8.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.705e-06/0.444, allocations: 0 / 0.5285 GB, free: 8.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003673/0.4477, allocations: 1.766 MB / 0.5302 GB, free: 7.719 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.331e-05/0.4478, allocations: 88.61 kB / 0.5303 GB, free: 7.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007979/0.4486, allocations: 0.5464 MB / 0.5309 GB, free: 7.297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/0.4486, allocations: 35.2 kB / 0.5309 GB, free: 7.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.4491, allocations: 449.3 kB / 0.5313 GB, free: 6.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.4493, allocations: 235.5 kB / 0.5315 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003126/0.4496, allocations: 192.4 kB / 0.5317 GB, free: 6.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.4499, allocations: 377 kB / 0.5321 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.4504, allocations: 292.7 kB / 0.5324 GB, free: 6.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000843/0.4513, allocations: 0.6026 MB / 0.533 GB, free: 5.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.4528, allocations: 0.9748 MB / 0.5339 GB, free: 4.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4528, allocations: 7.531 kB / 0.5339 GB, free: 4.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00239/0.4552, allocations: 1.177 MB / 0.5351 GB, free: 4.082 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4553, allocations: 9.344 kB / 0.5351 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00145/0.4567, allocations: 0.7146 MB / 0.5358 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/0.4575, allocations: 216.7 kB / 0.536 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008019/0.4583, allocations: 221.5 kB / 0.5362 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/0.4639, allocations: 5.371 MB / 0.5414 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007402/0.4647, allocations: 39.56 kB / 0.5415 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.929e-05/0.4648, allocations: 42.19 kB / 0.5415 GB, free: 14.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (system.initime,phasor_cap.color_n[3],phasor_cap.color_n[1],phasor_cap.color_p[3],phasor_cap.color_p[1],phasor_ind.color_n[3],phasor_ind.color_n[1],phasor_ind.color_p[3],phasor_ind.color_p[1],phasor_cap.color2[3],phasor_cap.color2[2],phasor_cap.color2[1],phasor_cap.color1[3],phasor_cap.color1[2],phasor_cap.color1[1],phasor_cap.colorR[3],phasor_cap.colorR[2],phasor_cap.colorR[1],phasor_cap.colorL[3],phasor_cap.colorL[2],phasor_cap.colorL[1],phasor_ind.color2[3],phasor_ind.color2[2],phasor_ind.color2[1],phasor_ind.color1[3],phasor_ind.color1[2],phasor_ind.color1[1],phasor_ind.colorR[3],phasor_ind.colorR[2],phasor_ind.colorR[1],phasor_ind.colorL[3],phasor_ind.colorL[2],phasor_ind.colorL[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006154/0.4654, allocations: 348 kB / 0.5418 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.4655, allocations: 69.83 kB / 0.5419 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.4667, allocations: 0.6504 MB / 0.5425 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4668, allocations: 6.875 kB / 0.5426 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4668, allocations: 5.359 kB / 0.5426 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4668, allocations: 0 / 0.5426 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.4696, allocations: 1.54 MB / 0.5441 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.4696, allocations: 1.094 kB / 0.5441 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007897/0.4704, allocations: 171.7 kB / 0.5442 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.4705, allocations: 8.125 kB / 0.5442 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.4705, allocations: 22.86 kB / 0.5443 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.4705, allocations: 8.062 kB / 0.5443 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4705, allocations: 1.375 kB / 0.5443 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.4721, allocations: 1.037 MB / 0.5453 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.4724, allocations: 179 kB / 0.5455 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.927e-05/0.4725, allocations: 14.72 kB / 0.5455 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.4728, allocations: 21.05 kB / 0.5455 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.4729, allocations: 46.28 kB / 0.5455 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.473, allocations: 26.61 kB / 0.5456 GB, free: 11.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005013/0.4735, allocations: 358.3 kB / 0.5459 GB, free: 11.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4735, allocations: 0 / 0.5459 GB, free: 11.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001083/0.4746, allocations: 217.9 kB / 0.5461 GB, free: 11.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (ind.i[1],ind.i[2],ind.i[3],cap.v[1],cap.v[2],cap.v[3]) * Number of discrete variables: 9 (system.initime,phasor_ind.color_p[1],phasor_ind.color_p[3],phasor_ind.color_n[1],phasor_ind.color_n[3],phasor_cap.color_p[1],phasor_cap.color_p[3],phasor_cap.color_n[1],phasor_cap.color_n[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002159/0.4768, allocations: 1.591 MB / 0.5477 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.4791, allocations: 1.119 MB / 0.5488 GB, free: 8.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4791, allocations: 0 / 0.5488 GB, free: 8.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005332/0.4796, allocations: 311 kB / 0.549 GB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009547/0.4806, allocations: 165.2 kB / 0.5492 GB, free: 8.504 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.4919, allocations: 7.163 MB / 0.5562 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008297/0.4927, allocations: 1.079 MB / 0.5573 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006637/0.4934, allocations: 217.6 kB / 0.5575 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.4939, allocations: 311.3 kB / 0.5578 GB, free: 15.27 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4939, allocations: 4 kB / 0.5578 GB, free: 15.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05112/0.545, allocations: 15.45 MB / 0.5728 GB, free: 15.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.54, allocations: 16.03 kB / 0.5729 GB, free: 15.96 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerSystems_latest_PowerSystems_Examples_Introductory_Display.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Display.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches