Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 112.7 kB / 17.68 MB, free: 5.473 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.001763/0.001763, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.415/1.415, allocations: 222.9 MB / 242.3 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1781/0.1781, allocations: 38.03 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002519/0.002519, allocations: 61.78 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1321, allocations: 58.07 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.00562/0.1378, allocations: 4.397 MB / 462.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.1401, allocations: 1.515 MB / 464.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.1404, allocations: 19.94 kB / 464.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008576/0.1413, allocations: 278.7 kB / 464.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.1419, allocations: 282.7 kB / 464.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006119/0.1425, allocations: 255.4 kB / 465 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.1431, allocations: 0.608 MB / 465.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.1435, allocations: 223.8 kB / 465.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/0.1438, allocations: 267 kB / 466.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004606/0.1443, allocations: 366.8 kB / 466.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.78e-05/0.1444, allocations: 40 kB / 466.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003687/0.1447, allocations: 227.7 kB / 466.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.1449, allocations: 239.3 kB / 467 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.1452, allocations: 250.8 kB / 467.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006311/0.1458, allocations: 0.6698 MB / 467.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1458, allocations: 0 / 467.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1459, allocations: 0 / 467.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1459, allocations: 0 / 467.9 MB, free: 13.7 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001308/0.1472, allocations: 0.7738 MB / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1472, allocations: 11.89 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005922/0.1478, allocations: 96.2 kB / 468.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006971/0.1485, allocations: 423.2 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.1486, allocations: 25.38 kB / 469.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.1487, allocations: 52.09 kB / 469.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009076/0.1497, allocations: 0.6876 MB / 470 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.1497, allocations: 7.938 kB / 470 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.1497, allocations: 15.98 kB / 470 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.1499, allocations: 68.94 kB / 470 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009495/0.1509, allocations: 0.6674 MB / 470.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.1544, allocations: 2.642 MB / 473.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.1549, allocations: 313.3 kB / 473.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.1552, allocations: 209.4 kB / 473.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.1553, allocations: 12 kB / 473.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.1553, allocations: 38.5 kB / 473.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.284e-06/0.1553, allocations: 0 / 473.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.001993/0.1573, allocations: 1.284 MB / 475.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.1574, allocations: 85.17 kB / 475.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.1577, allocations: 299.2 kB / 475.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1577, allocations: 29.7 kB / 475.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.1579, allocations: 251.7 kB / 475.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.158, allocations: 145.9 kB / 476 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1581, allocations: 82.03 kB / 476.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1583, allocations: 354.7 kB / 476.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.1586, allocations: 184.9 kB / 476.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000396/0.159, allocations: 325.3 kB / 476.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.1596, allocations: 0.5623 MB / 477.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1596, allocations: 4 kB / 477.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001152/0.1608, allocations: 0.6819 MB / 478.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1608, allocations: 4 kB / 478.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000799/0.1616, allocations: 483.5 kB / 478.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004426/0.1621, allocations: 129.8 kB / 478.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.1624, allocations: 75.89 kB / 478.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.1653, allocations: 3.258 MB / 482.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.1656, allocations: 31.86 kB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.1657, allocations: 23.98 kB / 482.2 MB, free: 14.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003452/0.166, allocations: 205.7 kB / 482.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.1662, allocations: 39.59 kB / 482.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008364/0.167, allocations: 461.2 kB / 482.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-05/0.1671, allocations: 15.98 kB / 482.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.1671, allocations: 0 / 482.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1671, allocations: 3.938 kB / 482.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.1687, allocations: 1.023 MB / 483.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1687, allocations: 4.031 kB / 483.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.169, allocations: 63.95 kB / 484 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.1691, allocations: 11.88 kB / 484 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.1691, allocations: 4 kB / 484 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.1691, allocations: 4 kB / 484 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1691, allocations: 3.938 kB / 484 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009824/0.1701, allocations: 0.751 MB / 484.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.1703, allocations: 136.6 kB / 484.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.828e-05/0.1704, allocations: 11.94 kB / 484.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.1706, allocations: 15.98 kB / 484.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.215e-05/0.1706, allocations: 15.97 kB / 484.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.1706, allocations: 15.94 kB / 484.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002049/0.1709, allocations: 203.1 kB / 485.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1709, allocations: 4 kB / 485.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.1714, allocations: 112 kB / 485.2 MB, free: 11.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 2 * 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.0002488/0.1716, allocations: 135.2 kB / 485.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009921/0.1726, allocations: 0.7136 MB / 486.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1726, allocations: 0 / 486.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.1729, allocations: 205.4 kB / 486.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.1734, allocations: 75.91 kB / 486.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.1751, allocations: 1.115 MB / 487.5 MB, free: 9.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.1755, allocations: 0.8746 MB / 488.3 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.1758, allocations: 99.19 kB / 488.4 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.1759, allocations: 31.44 kB / 488.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1759, allocations: 4 kB / 488.5 MB, free: 8.066 MB / 366.1 MB Notification: Performance of Templates: time 0.008682/0.1846, allocations: 4.258 MB / 492.7 MB, free: 3.828 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches