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.001069/0.001069, allocations: 114.3 kB / 17.07 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.001139/0.001139, allocations: 191 kB / 18 MB, free: 5.098 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.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.195/0.195, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 59.89 kB / 457.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.445, allocations: 58.05 MB / 0.5036 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.007096/0.4521, allocations: 6.652 MB / 0.5101 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003305/0.4555, allocations: 2.006 MB / 0.5121 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004352/0.4559, allocations: 26.06 kB / 0.5121 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001779/0.4577, allocations: 0.719 MB / 0.5128 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00154/0.4593, allocations: 0.5777 MB / 0.5134 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007383/0.46, allocations: 247.5 kB / 0.5136 GB, free: 492 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001454/0.4615, allocations: 1.143 MB / 0.5147 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009208/0.4624, allocations: 0.5917 MB / 0.5153 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009949/0.4634, allocations: 0.5262 MB / 0.5158 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009497/0.4644, allocations: 0.6115 MB / 0.5164 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.4645, allocations: 68.75 kB / 0.5165 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007564/0.4653, allocations: 265.3 kB / 0.5167 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006025/0.4659, allocations: 483.2 kB / 0.5172 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006825/0.4666, allocations: 495 kB / 0.5176 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001795/0.4684, allocations: 1.186 MB / 0.5188 GB, free: 14.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4684, allocations: 0 / 0.5188 GB, free: 14.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4684, allocations: 4 kB / 0.5188 GB, free: 14.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.4685, allocations: 0.9375 kB / 0.5188 GB, free: 14.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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002442/0.4709, allocations: 1.24 MB / 0.52 GB, free: 13.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.471, allocations: 13.17 kB / 0.52 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002105/0.4712, allocations: 140.5 kB / 0.5202 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.4722, allocations: 171.5 kB / 0.5203 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.4737, allocations: 0.6237 MB / 0.5209 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/0.4738, allocations: 64.19 kB / 0.521 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.474, allocations: 100.8 kB / 0.5211 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.476, allocations: 1.155 MB / 0.5222 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.476, allocations: 2.938 kB / 0.5222 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.438e-05/0.4761, allocations: 35.17 kB / 0.5223 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001855/0.4763, allocations: 92.28 kB / 0.5223 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/0.4781, allocations: 1.001 MB / 0.5233 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00648/0.4846, allocations: 4.348 MB / 0.5276 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.486, allocations: 0.632 MB / 0.5282 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.4866, allocations: 306.8 kB / 0.5285 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.4866, allocations: 14.2 kB / 0.5285 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.4867, allocations: 43.42 kB / 0.5285 GB, free: 8.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 4.068e-06/0.4867, allocations: 3.938 kB / 0.5285 GB, free: 8.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003318/0.49, allocations: 1.758 MB / 0.5303 GB, free: 7.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.4901, allocations: 94.11 kB / 0.5303 GB, free: 7.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008211/0.4909, allocations: 0.5473 MB / 0.5309 GB, free: 7.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/0.491, allocations: 36.42 kB / 0.5309 GB, free: 7.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003303/0.4913, allocations: 448.4 kB / 0.5313 GB, free: 6.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.4915, allocations: 235.3 kB / 0.5316 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/0.4919, allocations: 184.7 kB / 0.5317 GB, free: 6.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.4921, allocations: 375.9 kB / 0.5321 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004892/0.4925, allocations: 286.3 kB / 0.5324 GB, free: 6.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007437/0.4933, allocations: 0.6128 MB / 0.533 GB, free: 5.504 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.4946, allocations: 0.9727 MB / 0.5339 GB, free: 4.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4947, allocations: 2.406 kB / 0.5339 GB, free: 4.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002203/0.4969, allocations: 1.185 MB / 0.5351 GB, free: 4.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.4969, allocations: 10.06 kB / 0.5351 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001373/0.4983, allocations: 0.7099 MB / 0.5358 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007312/0.499, allocations: 217.8 kB / 0.536 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000765/0.4998, allocations: 217.2 kB / 0.5362 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005345/0.5052, allocations: 5.378 MB / 0.5415 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008886/0.5061, allocations: 39.75 kB / 0.5415 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.083e-05/0.5062, allocations: 42.09 kB / 0.5415 GB, free: 14.5 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.0007273/0.5069, allocations: 343.7 kB / 0.5419 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.5071, allocations: 73.86 kB / 0.5419 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.5083, allocations: 0.6514 MB / 0.5426 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.5083, allocations: 6.875 kB / 0.5426 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.5083, allocations: 3.938 kB / 0.5426 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5084, allocations: 5.359 kB / 0.5426 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.5113, allocations: 1.538 MB / 0.5441 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5113, allocations: 2.75 kB / 0.5441 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.5121, allocations: 175.8 kB / 0.5443 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/0.5121, allocations: 4.281 kB / 0.5443 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.5121, allocations: 17.5 kB / 0.5443 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.5121, allocations: 8.109 kB / 0.5443 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5122, allocations: 2.75 kB / 0.5443 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.5137, allocations: 1.024 MB / 0.5453 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004022/0.5141, allocations: 187.9 kB / 0.5455 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.5142, allocations: 13.84 kB / 0.5455 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.5145, allocations: 17.64 kB / 0.5455 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.5146, allocations: 53.94 kB / 0.5455 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.5147, allocations: 19.03 kB / 0.5456 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.5152, allocations: 361.8 kB / 0.5459 GB, free: 11.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5152, allocations: 0 / 0.5459 GB, free: 11.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001132/0.5163, allocations: 219 kB / 0.5461 GB, free: 11.73 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.001863/0.5182, allocations: 1.592 MB / 0.5477 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.5202, allocations: 1.111 MB / 0.5488 GB, free: 8.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5202, allocations: 4.125 kB / 0.5488 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004768/0.5207, allocations: 315 kB / 0.5491 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009368/0.5217, allocations: 166 kB / 0.5492 GB, free: 8.527 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.5323, allocations: 7.159 MB / 0.5562 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009163/0.5332, allocations: 1.067 MB / 0.5573 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006824/0.5339, allocations: 229.6 kB / 0.5575 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.5344, allocations: 311.3 kB / 0.5578 GB, free: 15.29 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5344, allocations: 0 / 0.5578 GB, free: 15.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04267/0.5771, allocations: 15.47 MB / 0.5729 GB, free: 15.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.22, allocations: 11.78 kB / 0.5729 GB, free: 15.98 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