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.001394/0.0014, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.002229/0.002229, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.365/1.365, allocations: 222.9 MB / 242.3 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.1815/0.1815, allocations: 38.04 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 64.16 kB / 400.2 MB, free: 33.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 58.06 MB / 458.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.008153/0.1199, allocations: 6.639 MB / 464.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.1236, allocations: 2.025 MB / 467 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003615/0.1239, allocations: 23.88 kB / 467 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.1257, allocations: 0.7197 MB / 467.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001518/0.1272, allocations: 0.5638 MB / 468.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.1279, allocations: 247.5 kB / 468.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.1291, allocations: 1.149 MB / 469.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007476/0.1298, allocations: 0.5953 MB / 470.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006863/0.1305, allocations: 0.5097 MB / 470.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008056/0.1313, allocations: 0.6074 MB / 471.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.1314, allocations: 71.94 kB / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005016/0.132, allocations: 263.7 kB / 471.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004073/0.1324, allocations: 486.9 kB / 472.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004583/0.1328, allocations: 497.5 kB / 472.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.134, allocations: 1.172 MB / 473.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1341, allocations: 4 kB / 473.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1341, allocations: 0 / 473.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.1341, allocations: 0 / 473.8 MB, free: 7.762 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.001983/0.1361, allocations: 1.215 MB / 475.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1361, allocations: 19.77 kB / 475.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008981/0.137, allocations: 163.5 kB / 475.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.1382, allocations: 0.6125 MB / 475.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.169e-05/0.1383, allocations: 70.34 kB / 475.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.1385, allocations: 107.9 kB / 476 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.1401, allocations: 1.157 MB / 477.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.1401, allocations: 7.938 kB / 477.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.27e-05/0.1402, allocations: 39.98 kB / 477.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/0.1403, allocations: 81.95 kB / 477.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.1419, allocations: 1.003 MB / 478.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.1471, allocations: 4.335 MB / 482.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.1482, allocations: 0.6294 MB / 483.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.1486, allocations: 309.8 kB / 483.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.1487, allocations: 8.469 kB / 483.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1487, allocations: 47.05 kB / 483.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.956e-06/0.1487, allocations: 0 / 483.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002747/0.1515, allocations: 1.734 MB / 485.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.1515, allocations: 89.61 kB / 485.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.1521, allocations: 0.5455 MB / 486 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.1521, allocations: 33.7 kB / 486 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002635/0.1524, allocations: 442.7 kB / 486.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.1526, allocations: 220.9 kB / 486.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.1528, allocations: 186.5 kB / 486.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1529, allocations: 382.8 kB / 487.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/0.1534, allocations: 285.8 kB / 487.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/0.1541, allocations: 0.6075 MB / 488.1 MB, free: 8.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.1552, allocations: 0.9731 MB / 489.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.1552, allocations: 4 kB / 489.1 MB, free: 7.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002077/0.1573, allocations: 1.172 MB / 490.3 MB, free: 6.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1574, allocations: 11.94 kB / 490.3 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001318/0.1587, allocations: 0.7161 MB / 491 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006982/0.1594, allocations: 214.8 kB / 491.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007273/0.1601, allocations: 219.6 kB / 491.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004621/0.1648, allocations: 5.369 MB / 496.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.1654, allocations: 32 kB / 496.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.1654, allocations: 47.98 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.0005271/0.166, allocations: 345.6 kB / 497.2 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1661, allocations: 71.09 kB / 497.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.1672, allocations: 0.6538 MB / 497.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1672, allocations: 8 kB / 497.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1672, allocations: 0 / 497.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1672, allocations: 3.984 kB / 497.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.1697, allocations: 1.547 MB / 499.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1697, allocations: 4 kB / 499.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008055/0.1705, allocations: 175.9 kB / 499.7 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.1705, allocations: 7.938 kB / 499.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/0.1706, allocations: 15.98 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.1706, allocations: 4.234 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.1706, allocations: 7.938 kB / 499.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.172, allocations: 1.018 MB / 0.489 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.1723, allocations: 180.4 kB / 0.4892 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.027e-05/0.1723, allocations: 16 kB / 0.4892 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/0.1727, allocations: 15.98 kB / 0.4892 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.1728, allocations: 60.38 kB / 0.4892 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/0.1728, allocations: 16 kB / 0.4893 GB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003829/0.1732, allocations: 362.8 kB / 0.4896 GB, free: 10.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1732, allocations: 0 / 0.4896 GB, free: 10.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008515/0.1741, allocations: 220 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.0001509/0.1742, allocations: 131.9 kB / 0.4899 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.1759, 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.316e-06/0.1759, allocations: 0 / 0.491 GB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.1764, allocations: 311 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.0007637/0.1771, allocations: 161.5 kB / 0.4915 GB, free: 8.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.1801, allocations: 1.911 MB / 0.4933 GB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.1808, allocations: 1.071 MB / 0.4944 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005241/0.1813, allocations: 225.6 kB / 0.4946 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.1815, allocations: 59.44 kB / 0.4947 GB, free: 5.523 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1815, allocations: 3.938 kB / 0.4947 GB, free: 5.52 MB / 382.1 MB Notification: Performance of Templates: time 0.0144/0.1959, allocations: 8.373 MB / 0.5028 GB, free: 13.18 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 gbode -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