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: translateModel(PowerSystems.Examples.Introductory.Display,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="Time|phasor_cap.i_dq.1.|phasor_cap.i_dq.2.|phasor_cap.p.1.|phasor_cap.p.2.|phasor_cap.v_dq.1.|phasor_cap.v_dq.2.|phasor_ind.i_dq.1.|phasor_ind.i_dq.2.|phasor_ind.p.1.|phasor_ind.p.2.|phasor_ind.v_dq.1.|phasor_ind.v_dq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Display") translateModel(PowerSystems.Examples.Introductory.Display,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="Time|phasor_cap.i_dq.1.|phasor_cap.i_dq.2.|phasor_cap.p.1.|phasor_cap.p.2.|phasor_cap.v_dq.1.|phasor_cap.v_dq.2.|phasor_ind.i_dq.1.|phasor_ind.i_dq.2.|phasor_ind.p.1.|phasor_ind.p.2.|phasor_ind.v_dq.1.|phasor_ind.v_dq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Display") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001904/0.001904, allocations: 191 kB / 18 MB, free: 5.207 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.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1792/0.1792, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001271, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5087/0.51, allocations: 58.06 MB / 0.5041 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.009169/0.5192, allocations: 6.642 MB / 0.5106 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.5232, allocations: 2.02 MB / 0.5125 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000367/0.5235, allocations: 23.78 kB / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.5254, allocations: 0.7148 MB / 0.5133 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.527, allocations: 0.573 MB / 0.5138 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008004/0.5278, allocations: 247.7 kB / 0.5141 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.5292, allocations: 1.148 MB / 0.5152 GB, free: 344 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008726/0.5301, allocations: 0.5931 MB / 0.5158 GB, free: 96 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008368/0.5309, allocations: 0.5234 MB / 0.5163 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.5321, allocations: 0.6024 MB / 0.5169 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001923/0.5323, allocations: 68 kB / 0.5169 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007272/0.533, allocations: 275 kB / 0.5172 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000766/0.5338, allocations: 483.8 kB / 0.5177 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006673/0.5345, allocations: 498.5 kB / 0.5181 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.5361, allocations: 1.184 MB / 0.5193 GB, free: 14.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.5361, allocations: 0 / 0.5193 GB, free: 14.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5361, allocations: 1.094 kB / 0.5193 GB, free: 14.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.5361, allocations: 0 / 0.5193 GB, free: 14.68 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.002357/0.5385, allocations: 1.204 MB / 0.5205 GB, free: 13.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.5385, allocations: 13.52 kB / 0.5205 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009838/0.5395, allocations: 171 kB / 0.5206 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.5409, allocations: 0.6196 MB / 0.5212 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.423e-05/0.541, allocations: 67.98 kB / 0.5213 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002544/0.5412, allocations: 96.22 kB / 0.5214 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.5435, allocations: 1.155 MB / 0.5225 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.91e-05/0.5436, allocations: 7.438 kB / 0.5225 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-05/0.5437, allocations: 32.23 kB / 0.5226 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.5439, allocations: 91.19 kB / 0.5227 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.5458, allocations: 1.005 MB / 0.5236 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006371/0.5522, allocations: 4.333 MB / 0.5279 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.5537, allocations: 0.6247 MB / 0.5285 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006577/0.5544, allocations: 311.4 kB / 0.5288 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.5545, allocations: 7.438 kB / 0.5288 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.5545, allocations: 46.38 kB / 0.5288 GB, free: 9.141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 3.116e-06/0.5546, allocations: 0 / 0.5288 GB, free: 9.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003459/0.558, allocations: 1.742 MB / 0.5305 GB, free: 8.125 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.5581, allocations: 88.98 kB / 0.5306 GB, free: 8.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007873/0.5589, allocations: 0.5533 MB / 0.5312 GB, free: 7.688 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.5589, allocations: 35.95 kB / 0.5312 GB, free: 7.648 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.5593, allocations: 435.6 kB / 0.5316 GB, free: 7.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.5596, allocations: 222.6 kB / 0.5318 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003169/0.5599, allocations: 184 kB / 0.532 GB, free: 6.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.5601, allocations: 377.6 kB / 0.5323 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005184/0.5606, allocations: 289.4 kB / 0.5326 GB, free: 6.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008323/0.5615, allocations: 0.6131 MB / 0.5332 GB, free: 5.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.5629, allocations: 0.9674 MB / 0.5342 GB, free: 5.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.5629, allocations: 3.938 kB / 0.5342 GB, free: 5.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002372/0.5653, allocations: 1.184 MB / 0.5353 GB, free: 4.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.5653, allocations: 9.812 kB / 0.5353 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001409/0.5667, allocations: 0.7141 MB / 0.536 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008735/0.5676, allocations: 209.9 kB / 0.5362 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007679/0.5684, allocations: 224.6 kB / 0.5364 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005165/0.5736, allocations: 5.375 MB / 0.5417 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006426/0.5742, allocations: 34.64 kB / 0.5417 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.5743, allocations: 43.58 kB / 0.5418 GB, free: 14.89 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.0006486/0.575, allocations: 351.7 kB / 0.5421 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.5752, allocations: 61.5 kB / 0.5422 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.5764, allocations: 0.6587 MB / 0.5428 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.5765, allocations: 5.562 kB / 0.5428 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.5765, allocations: 1.469 kB / 0.5428 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.5765, allocations: 3.984 kB / 0.5428 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.5791, allocations: 1.536 MB / 0.5443 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5791, allocations: 1.125 kB / 0.5443 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007495/0.5798, allocations: 175.7 kB / 0.5445 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.5799, allocations: 8.781 kB / 0.5445 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.731e-05/0.5799, allocations: 21.67 kB / 0.5445 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.5799, allocations: 3.969 kB / 0.5445 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5799, allocations: 6.344 kB / 0.5445 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.5815, allocations: 1.019 MB / 0.5455 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.5817, allocations: 184.1 kB / 0.5457 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.5818, allocations: 14.16 kB / 0.5457 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5821, allocations: 17.73 kB / 0.5457 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.5822, allocations: 54.59 kB / 0.5458 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.5823, allocations: 17.84 kB / 0.5458 GB, free: 12.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004397/0.5827, allocations: 368.3 kB / 0.5461 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5827, allocations: 0 / 0.5461 GB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009221/0.5837, allocations: 216 kB / 0.5464 GB, free: 11.91 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.0001558/0.5838, allocations: 119.1 kB / 0.5465 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.5855, allocations: 1.107 MB / 0.5476 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5856, allocations: 0 / 0.5476 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.586, allocations: 315 kB / 0.5479 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.5868, allocations: 167.1 kB / 0.548 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.5899, allocations: 1.916 MB / 0.5499 GB, free: 8.207 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.5906, allocations: 1.071 MB / 0.5509 GB, free: 7.109 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000564/0.5912, allocations: 229.6 kB / 0.5511 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5913, allocations: 51.44 kB / 0.5512 GB, free: 6.832 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5913, allocations: 4 kB / 0.5512 GB, free: 6.828 MB / 414.1 MB Notification: Performance of Templates: time 0.01557/0.6069, allocations: 8.532 MB / 0.5595 GB, free: 14.34 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Display.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Display -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Display.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches