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.001371/0.001372, 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.001689/0.001689, 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.444/1.444, allocations: 222.9 MB / 242.3 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2193/0.2193, allocations: 38.04 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 63.17 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1237, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007988/0.1317, allocations: 6.102 MB / 464.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003609/0.1353, allocations: 1.951 MB / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004673/0.1358, allocations: 23.88 kB / 466.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.1377, allocations: 0.6983 MB / 467.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009687/0.1387, allocations: 378.2 kB / 467.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1398, allocations: 399.1 kB / 467.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.141, allocations: 0.9316 MB / 468.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007558/0.1418, allocations: 0.5039 MB / 469.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007416/0.1426, allocations: 426.3 kB / 469.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009117/0.1435, allocations: 0.5257 MB / 470.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.1437, allocations: 60 kB / 470.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000536/0.1442, allocations: 239.6 kB / 470.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004958/0.1447, allocations: 415 kB / 470.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000719/0.1454, allocations: 429.9 kB / 471.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.1467, allocations: 1.008 MB / 472.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1468, allocations: 0 / 472.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1468, allocations: 4 kB / 472.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.043e-05/0.1468, allocations: 0 / 472.3 MB, free: 9.238 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.002377/0.1492, allocations: 1.068 MB / 473.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1493, allocations: 15.89 kB / 473.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007756/0.15, allocations: 135.8 kB / 473.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1511, allocations: 0.5518 MB / 474.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.1511, allocations: 54.38 kB / 474.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.1513, allocations: 80.12 kB / 474.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.153, allocations: 1.126 MB / 475.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.1531, allocations: 7.938 kB / 475.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.014e-05/0.1532, allocations: 32 kB / 475.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.298e-05/0.1532, allocations: 53.92 kB / 475.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.1546, allocations: 0.8701 MB / 476.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005346/0.16, allocations: 5.035 MB / 481.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007465/0.1607, allocations: 423.8 kB / 481.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.161, allocations: 213.6 kB / 482 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.614e-05/0.1611, allocations: 15.97 kB / 482 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.1611, allocations: 34.56 kB / 482 MB, free: 15.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 3.216e-06/0.1611, allocations: 0 / 482 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001753/0.1629, allocations: 1.078 MB / 483.1 MB, free: 14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.1629, allocations: 85.06 kB / 483.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005073/0.1635, allocations: 0.49 MB / 483.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.1635, allocations: 29.7 kB / 483.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.1638, allocations: 457.7 kB / 484.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.164, allocations: 161.7 kB / 484.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.1642, allocations: 154.5 kB / 484.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1644, allocations: 366.9 kB / 484.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.1647, allocations: 245.8 kB / 485.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006279/0.1654, allocations: 0.621 MB / 485.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1665, allocations: 0.9379 MB / 486.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.1665, allocations: 4 kB / 486.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001398/0.1679, allocations: 0.896 MB / 487.5 MB, free: 9.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.168, allocations: 12 kB / 487.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.168, allocations: 12 kB / 487.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.402e-05/0.168, allocations: 20 kB / 487.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.1687, allocations: 219.6 kB / 487.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-05/0.1688, allocations: 23.92 kB / 487.8 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004314/0.1692, allocations: 52.17 kB / 487.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.851e-05/0.1693, allocations: 44 kB / 487.9 MB, free: 8.766 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.0003587/0.1697, allocations: 305.3 kB / 488.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.82e-05/0.1698, allocations: 63.25 kB / 488.3 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009226/0.1707, allocations: 0.5485 MB / 488.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.1707, allocations: 7.984 kB / 488.8 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1707, allocations: 4 kB / 488.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1707, allocations: 4 kB / 488.8 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.1728, allocations: 1.335 MB / 490.2 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1728, allocations: 8.062 kB / 490.2 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.1732, allocations: 107.8 kB / 490.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.547e-06/0.1732, allocations: 7.938 kB / 490.3 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.1733, allocations: 12 kB / 490.3 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.219e-05/0.1733, allocations: 8 kB / 490.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1733, allocations: 3.938 kB / 490.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007449/0.174, allocations: 0.634 MB / 490.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.1742, allocations: 144.3 kB / 491.1 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.1743, allocations: 11.94 kB / 491.1 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.1745, allocations: 23.92 kB / 491.1 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.1746, allocations: 31.95 kB / 491.2 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.544e-05/0.1747, allocations: 16 kB / 491.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004194/0.1751, allocations: 330.8 kB / 491.5 MB, free: 5.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1751, allocations: 0 / 491.5 MB, free: 5.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006628/0.1758, allocations: 160 kB / 491.6 MB, free: 4.867 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.0001304/0.1759, allocations: 115.1 kB / 491.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008881/0.1768, allocations: 0.6058 MB / 492.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1768, allocations: 0 / 492.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.1771, allocations: 249.2 kB / 492.6 MB, free: 3.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006705/0.1778, allocations: 113 kB / 492.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.18, allocations: 1.345 MB / 494.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.1806, allocations: 0.9995 MB / 495.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004759/0.1811, allocations: 233 kB / 495.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1813, allocations: 51.42 kB / 495.3 MB, free: 1.078 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1813, allocations: 0 / 495.3 MB, free: 1.078 MB / 366.1 MB Notification: Performance of Templates: time 0.01012/0.1914, allocations: 5.561 MB / 0.4892 GB, free: 11.56 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches