Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001554/0.001554, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.358/1.358, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1704/0.1704, allocations: 38.05 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 67.95 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1078, allocations: 58.06 MB / 456.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008534/0.1164, allocations: 6.102 MB / 463 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.1201, allocations: 1.943 MB / 464.9 MB, free: 8 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005816/0.1207, allocations: 19.92 kB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.1227, allocations: 0.7002 MB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.1238, allocations: 382.1 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.125, allocations: 395.1 kB / 466.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00126/0.1262, allocations: 0.9355 MB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007848/0.127, allocations: 0.5 MB / 467.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007842/0.1278, allocations: 426.4 kB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009413/0.1288, allocations: 0.5257 MB / 468.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.129, allocations: 64 kB / 468.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005343/0.1295, allocations: 235.6 kB / 469.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004145/0.1299, allocations: 411.1 kB / 469.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000583/0.1305, allocations: 422 kB / 469.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.1316, allocations: 1.001 MB / 470.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1316, allocations: 0 / 470.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1316, allocations: 0 / 470.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-05/0.1317, allocations: 3.938 kB / 470.9 MB, free: 10.02 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002466/0.1342, allocations: 1.068 MB / 471.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.1342, allocations: 19.81 kB / 472 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.1353, allocations: 139.8 kB / 472.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.1365, allocations: 0.505 MB / 472.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.509e-05/0.1366, allocations: 58.38 kB / 472.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/0.1368, allocations: 80.11 kB / 472.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.139, allocations: 1.134 MB / 473.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.689e-05/0.1391, allocations: 3.938 kB / 473.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.1392, allocations: 43.92 kB / 473.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.173e-05/0.1393, allocations: 49.98 kB / 474 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.1413, allocations: 0.8662 MB / 474.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007146/0.1484, allocations: 5.063 MB / 479.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.1494, allocations: 423.8 kB / 480.3 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.1499, allocations: 213.7 kB / 480.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.15, allocations: 11.91 kB / 480.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.15, allocations: 38.56 kB / 480.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 4.498e-06/0.15, allocations: 3.984 kB / 480.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002521/0.1526, allocations: 1.071 MB / 481.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.1526, allocations: 85.06 kB / 481.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007622/0.1534, allocations: 0.4939 MB / 482.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.1535, allocations: 29.7 kB / 482.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.1539, allocations: 457.7 kB / 482.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.1541, allocations: 157.8 kB / 482.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.1543, allocations: 158.4 kB / 483 MB, free: 13.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1545, allocations: 362.8 kB / 483.4 MB, free: 13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/0.1551, allocations: 242 kB / 483.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008534/0.156, allocations: 0.617 MB / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.1575, allocations: 0.9418 MB / 485.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.1575, allocations: 8 kB / 485.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001965/0.1595, allocations: 0.8959 MB / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.1595, allocations: 12 kB / 486.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.1595, allocations: 12 kB / 486.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.004e-05/0.1596, allocations: 20 kB / 486.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.1607, allocations: 223.6 kB / 486.3 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.442e-05/0.1607, allocations: 19.94 kB / 486.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/0.1614, allocations: 51.95 kB / 486.4 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.655e-05/0.1615, allocations: 44 kB / 486.4 MB, free: 9.551 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00048/0.162, allocations: 309.3 kB / 486.7 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.1622, allocations: 59.25 kB / 486.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.1635, allocations: 0.5563 MB / 487.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.1635, allocations: 4 kB / 487.3 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1636, allocations: 3.938 kB / 487.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.1636, allocations: 8 kB / 487.4 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.1665, allocations: 1.33 MB / 488.7 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-06/0.1665, allocations: 4 kB / 488.7 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006942/0.1672, allocations: 111.8 kB / 488.8 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.1672, allocations: 7.938 kB / 488.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.1673, allocations: 8 kB / 488.8 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.738e-06/0.1673, allocations: 7.984 kB / 488.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.1673, allocations: 7.938 kB / 488.8 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.1684, allocations: 0.6368 MB / 489.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.1686, allocations: 136.3 kB / 489.6 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.808e-05/0.1687, allocations: 11.94 kB / 489.6 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.1691, allocations: 23.97 kB / 489.6 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.233e-05/0.1692, allocations: 31.91 kB / 489.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.1693, allocations: 19.98 kB / 489.7 MB, free: 6.125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004682/0.1697, allocations: 326.9 kB / 490 MB, free: 5.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1697, allocations: 4 kB / 490 MB, free: 5.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001053/0.1708, allocations: 160 kB / 490.2 MB, free: 5.648 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.0001394/0.1709, allocations: 115.1 kB / 490.3 MB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.1725, allocations: 0.6928 MB / 491 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.1725, allocations: 4 kB / 491 MB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004948/0.173, allocations: 240.3 kB / 491.2 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.1741, allocations: 122.2 kB / 491.3 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.177, allocations: 1.373 MB / 492.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007796/0.1778, allocations: 1.003 MB / 493.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008302/0.1786, allocations: 221 kB / 493.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.1788, allocations: 51.44 kB / 494 MB, free: 1.758 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1788, allocations: 0 / 494 MB, free: 1.758 MB / 366.1 MB Notification: Performance of Templates: time 0.01537/0.1942, allocations: 5.551 MB / 499.5 MB, free: 12.25 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Units -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches