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.002845/0.002846, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.003246/0.003247, allocations: 191 kB / 18.63 MB, free: 4.512 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.684/1.684, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2397/0.2397, allocations: 38.04 MB / 330.5 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 60.81 kB / 400.3 MB, free: 33.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.174, allocations: 58.07 MB / 458.3 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.01024/0.1843, allocations: 6.65 MB / 465 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.1885, allocations: 2.002 MB / 467 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.1889, allocations: 23.88 kB / 467 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.191, allocations: 0.7236 MB / 467.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.1925, allocations: 0.5794 MB / 468.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.1933, allocations: 243.5 kB / 468.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.1947, allocations: 1.141 MB / 469.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.1958, allocations: 0.5875 MB / 470.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000741/0.1965, allocations: 0.5136 MB / 470.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009612/0.1975, allocations: 0.619 MB / 471.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.1976, allocations: 68 kB / 471.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005629/0.1982, allocations: 263.7 kB / 471.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004954/0.1987, allocations: 482.8 kB / 472.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.1992, allocations: 0.4898 MB / 472.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.2005, allocations: 1.172 MB / 473.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.2006, allocations: 3.984 kB / 473.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.2006, allocations: 0 / 473.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2006, allocations: 4 kB / 473.9 MB, free: 7.758 MB / 350.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.002273/0.2029, allocations: 1.211 MB / 475.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.2029, allocations: 11.89 kB / 475.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009567/0.2039, allocations: 167.5 kB / 475.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.2052, allocations: 0.6202 MB / 475.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.22e-05/0.2053, allocations: 70.36 kB / 475.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.2055, allocations: 104 kB / 476 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.2073, allocations: 1.161 MB / 477.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.2073, allocations: 8 kB / 477.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.2074, allocations: 35.92 kB / 477.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/0.2076, allocations: 85.89 kB / 477.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.2092, allocations: 0.9952 MB / 478.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005864/0.2151, allocations: 4.342 MB / 482.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.2163, allocations: 0.6285 MB / 483.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004818/0.2168, allocations: 313.3 kB / 483.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.2169, allocations: 12.55 kB / 483.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.217, allocations: 43.12 kB / 483.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 1.984e-06/0.217, allocations: 0 / 483.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003184/0.2201, allocations: 1.734 MB / 485.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.2202, allocations: 89.61 kB / 485.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006881/0.2209, allocations: 0.5417 MB / 486 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.221, allocations: 33.83 kB / 486 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003808/0.2214, allocations: 446.7 kB / 486.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.2216, allocations: 216.9 kB / 486.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.2219, allocations: 190.4 kB / 486.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.2221, allocations: 378.8 kB / 487.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.2226, allocations: 293.7 kB / 487.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007586/0.2234, allocations: 0.6075 MB / 488.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.2247, allocations: 0.973 MB / 489.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2247, allocations: 4 kB / 489.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002207/0.2269, allocations: 1.167 MB / 490.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.2269, allocations: 8.938 kB / 490.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001376/0.2283, allocations: 0.7238 MB / 491 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007717/0.2291, allocations: 210.4 kB / 491.2 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008072/0.2299, allocations: 227.6 kB / 491.4 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005466/0.2354, allocations: 5.365 MB / 496.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006487/0.2361, allocations: 31.98 kB / 496.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.728e-05/0.2362, allocations: 44 kB / 496.9 MB, free: 15.44 MB / 382.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.0006338/0.2368, allocations: 353.6 kB / 497.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2369, allocations: 67.16 kB / 497.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.2381, allocations: 0.646 MB / 497.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.2382, allocations: 12 kB / 498 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2382, allocations: 3.984 kB / 498 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2382, allocations: 3.938 kB / 498 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.2409, allocations: 1.539 MB / 499.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.2409, allocations: 0 / 499.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007688/0.2417, allocations: 171.8 kB / 499.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.2417, allocations: 4 kB / 499.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/0.2417, allocations: 23.98 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.814e-06/0.2418, allocations: 4 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2418, allocations: 4 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.2432, allocations: 1.026 MB / 0.489 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003063/0.2436, allocations: 180.4 kB / 0.4892 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/0.2437, allocations: 20 kB / 0.4892 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.2439, allocations: 15.98 kB / 0.4892 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.2441, allocations: 48.44 kB / 0.4892 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.2442, allocations: 23.98 kB / 0.4893 GB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004456/0.2446, allocations: 358.8 kB / 0.4896 GB, free: 10.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2446, allocations: 0 / 0.4896 GB, free: 10.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009454/0.2456, allocations: 216 kB / 0.4898 GB, free: 10.61 MB / 382.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.0002325/0.2458, allocations: 139.8 kB / 0.49 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.2476, allocations: 1.112 MB / 0.491 GB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2477, allocations: 0 / 0.491 GB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.2482, allocations: 312.1 kB / 0.4913 GB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008246/0.249, allocations: 153.8 kB / 0.4915 GB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.2523, allocations: 1.922 MB / 0.4934 GB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007912/0.2531, allocations: 1.063 MB / 0.4944 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006051/0.2537, allocations: 229.5 kB / 0.4946 GB, free: 5.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.2539, allocations: 59.42 kB / 0.4947 GB, free: 5.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.2539, allocations: 0 / 0.4947 GB, free: 5.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01747/0.2714, allocations: 8.368 MB / 0.5028 GB, free: 13.19 MB / 398.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 -s cvode -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/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