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.00128/0.00128, allocations: 102 kB / 16.5 MB, free: 6.688 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.001449/0.001449, allocations: 194.3 kB / 17.42 MB, free: 6.09 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.353/1.353, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2124/0.2124, allocations: 38.05 MB / 329.3 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 62.28 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1457, allocations: 58.07 MB / 456.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.01183/0.1576, allocations: 7.338 MB / 463.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005614/0.1633, allocations: 2.353 MB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009382/0.1642, allocations: 43.75 kB / 465.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002085/0.1663, allocations: 0.6609 MB / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.1675, allocations: 358.5 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001364/0.1689, allocations: 355.4 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002179/0.1711, allocations: 1.497 MB / 468.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.1722, allocations: 494.9 kB / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000749/0.173, allocations: 370.4 kB / 469.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009815/0.174, allocations: 0.5608 MB / 470.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.1741, allocations: 44 kB / 470.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006154/0.1747, allocations: 251.5 kB / 470.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000474/0.1752, allocations: 403 kB / 470.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.1758, allocations: 409.9 kB / 471.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.1769, allocations: 0.9929 MB / 472.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.177, allocations: 0 / 472.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.177, allocations: 0 / 472.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.177, allocations: 0 / 472.2 MB, free: 8.391 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.001754/0.1788, allocations: 1.072 MB / 473.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1788, allocations: 8.031 kB / 473.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006585/0.1795, allocations: 135.8 kB / 473.4 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007494/0.1802, allocations: 0.5166 MB / 474 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.1803, allocations: 62.36 kB / 474 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1804, allocations: 76.12 kB / 474.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1819, allocations: 1.138 MB / 475.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.1819, allocations: 0 / 475.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.399e-05/0.182, allocations: 36 kB / 475.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.63e-05/0.1821, allocations: 53.92 kB / 475.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.1834, allocations: 0.8585 MB / 476.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/0.1887, allocations: 5.055 MB / 481.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007148/0.1894, allocations: 428.8 kB / 481.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003266/0.1898, allocations: 213.7 kB / 481.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.848e-05/0.1899, allocations: 15.97 kB / 481.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.1899, allocations: 34.56 kB / 481.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 3.407e-06/0.1899, allocations: 0 / 481.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002003/0.1919, allocations: 1.068 MB / 483 MB, free: 13.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.192, allocations: 89.05 kB / 483.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005601/0.1926, allocations: 0.494 MB / 483.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.1926, allocations: 33.64 kB / 483.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/0.1929, allocations: 461.6 kB / 484 MB, free: 12.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.1931, allocations: 157.8 kB / 484.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.1933, allocations: 150.5 kB / 484.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1935, allocations: 362.8 kB / 484.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.1938, allocations: 241.8 kB / 484.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.1945, allocations: 0.6209 MB / 485.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.1956, allocations: 0.9379 MB / 486.5 MB, free: 9.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.1956, allocations: 4 kB / 486.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001226/0.1968, allocations: 0.891 MB / 487.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.1969, allocations: 12.97 kB / 487.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.1969, allocations: 15.98 kB / 487.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/0.1969, allocations: 20 kB / 487.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007025/0.1976, allocations: 219.7 kB / 487.6 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.982e-05/0.1977, allocations: 31.86 kB / 487.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.1981, allocations: 55.86 kB / 487.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.1982, allocations: 40 kB / 487.8 MB, free: 7.934 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.0003893/0.1986, allocations: 305.3 kB / 488.1 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.38e-05/0.1987, allocations: 59.34 kB / 488.1 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00093/0.1996, allocations: 0.5524 MB / 488.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1996, allocations: 4 kB / 488.7 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.1996, allocations: 4 kB / 488.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.1997, allocations: 3.984 kB / 488.7 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.2017, allocations: 1.332 MB / 490 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.2017, allocations: 4 kB / 490 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004364/0.2021, allocations: 116 kB / 490.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.2021, allocations: 7.938 kB / 490.2 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.2022, allocations: 12 kB / 490.2 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.2022, allocations: 8 kB / 490.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2022, allocations: 0 / 490.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007416/0.2029, allocations: 0.6404 MB / 490.8 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.2031, allocations: 132.4 kB / 490.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.697e-05/0.2031, allocations: 11.94 kB / 491 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2034, allocations: 23.98 kB / 491 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.857e-05/0.2035, allocations: 35.89 kB / 491 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.2035, allocations: 16 kB / 491 MB, free: 4.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003275/0.2038, allocations: 330.8 kB / 491.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2038, allocations: 0 / 491.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006646/0.2045, allocations: 160 kB / 491.5 MB, free: 4.039 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.0001455/0.2047, allocations: 111.2 kB / 491.6 MB, free: 3.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008547/0.2055, allocations: 0.6036 MB / 492.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2055, allocations: 0 / 492.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.2059, allocations: 243.6 kB / 492.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.2065, allocations: 109.4 kB / 492.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.2088, allocations: 1.684 MB / 494.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.2093, allocations: 1.008 MB / 495.3 MB, free: 200 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005479/0.2099, allocations: 229 kB / 495.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.21, allocations: 47.44 kB / 495.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.21, allocations: 0 / 495.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of Templates: time 0.0101/0.2202, allocations: 5.3 MB / 0.4891 GB, free: 10.66 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