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.001806/0.001806, allocations: 113.9 kB / 17.69 MB, free: 5.305 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.001966/0.001966, allocations: 191 kB / 18.63 MB, free: 4.375 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.652/1.652, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2139/0.2139, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 66.95 kB / 400.3 MB, free: 33.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.152, allocations: 58.06 MB / 458.3 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.01098/0.163, allocations: 6.098 MB / 464.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004626/0.1677, allocations: 1.947 MB / 466.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007927/0.1685, allocations: 23.88 kB / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.171, allocations: 0.7002 MB / 467.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.1727, allocations: 370.2 kB / 467.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.1744, allocations: 411 kB / 467.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.1761, allocations: 0.9317 MB / 468.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009019/0.177, allocations: 0.4961 MB / 469.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000699/0.1778, allocations: 434.2 kB / 469.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.1786, allocations: 0.5257 MB / 470.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.674e-05/0.1787, allocations: 56 kB / 470.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005079/0.1792, allocations: 235.7 kB / 470.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004069/0.1796, allocations: 411 kB / 470.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004562/0.1801, allocations: 429.9 kB / 471.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1812, allocations: 1.012 MB / 472.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.1812, allocations: 0 / 472.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.1813, allocations: 0 / 472.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.853e-05/0.1813, allocations: 0 / 472.3 MB, free: 9.273 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.00234/0.1836, allocations: 1.082 MB / 473.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.1837, allocations: 11.89 kB / 473.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008368/0.1845, allocations: 139.8 kB / 473.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.1856, allocations: 0.5401 MB / 474.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.615e-05/0.1857, allocations: 62.36 kB / 474.2 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1858, allocations: 76.12 kB / 474.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.1875, allocations: 1.126 MB / 475.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/0.1875, allocations: 11.94 kB / 475.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.033e-05/0.1876, allocations: 36 kB / 475.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.239e-05/0.1877, allocations: 53.97 kB / 475.5 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.189, allocations: 0.8623 MB / 476.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005731/0.1948, allocations: 5.051 MB / 481.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007193/0.1955, allocations: 423.7 kB / 481.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.1958, allocations: 209.7 kB / 482 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.1959, allocations: 8 kB / 482 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.196, allocations: 42.55 kB / 482.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.905e-06/0.196, allocations: 0 / 482.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001996/0.198, allocations: 1.067 MB / 483.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.198, allocations: 89 kB / 483.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.1986, allocations: 0.4939 MB / 483.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1986, allocations: 37.64 kB / 483.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.199, allocations: 457.6 kB / 484.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.1991, allocations: 157.8 kB / 484.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.1993, allocations: 154.5 kB / 484.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1995, allocations: 370.9 kB / 484.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003437/0.1998, allocations: 241.8 kB / 485.1 MB, free: 12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006376/0.2005, allocations: 0.6093 MB / 485.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.2016, allocations: 0.9418 MB / 486.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.2017, allocations: 4 kB / 486.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001326/0.203, allocations: 0.8962 MB / 487.5 MB, free: 9.168 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.203, allocations: 12 kB / 487.6 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.2031, allocations: 12 kB / 487.6 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/0.2031, allocations: 16 kB / 487.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006937/0.2038, allocations: 223.6 kB / 487.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.909e-05/0.2038, allocations: 23.94 kB / 487.8 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000422/0.2043, allocations: 47.95 kB / 487.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.2043, allocations: 51.92 kB / 487.9 MB, free: 8.789 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.0003798/0.2047, allocations: 305.4 kB / 488.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.525e-05/0.2048, allocations: 55.25 kB / 488.3 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009485/0.2058, allocations: 0.5602 MB / 488.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2058, allocations: 4 kB / 488.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.2058, allocations: 0 / 488.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.2058, allocations: 3.984 kB / 488.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.208, allocations: 1.339 MB / 490.2 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.208, allocations: 256 / 490.2 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.2085, allocations: 111.9 kB / 490.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.2085, allocations: 11.94 kB / 490.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.2085, allocations: 11.98 kB / 490.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.2086, allocations: 4 kB / 490.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.2086, allocations: 7.938 kB / 490.3 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/0.2096, allocations: 0.6378 MB / 491 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.2097, allocations: 132.4 kB / 491.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.2098, allocations: 15.92 kB / 491.1 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2101, allocations: 27.98 kB / 491.1 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/0.2102, allocations: 31.95 kB / 491.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.2102, allocations: 16 kB / 491.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004053/0.2106, allocations: 330.8 kB / 491.5 MB, free: 5.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2106, allocations: 0 / 491.5 MB, free: 5.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007216/0.2113, allocations: 160 kB / 491.7 MB, free: 4.891 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.0001833/0.2115, allocations: 115.1 kB / 491.8 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.2126, allocations: 0.6062 MB / 492.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2126, allocations: 0 / 492.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.2129, allocations: 247.5 kB / 492.6 MB, free: 3.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007108/0.2137, allocations: 113.5 kB / 492.7 MB, free: 3.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.216, allocations: 1.342 MB / 494.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007372/0.2167, allocations: 1.007 MB / 495.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000508/0.2173, allocations: 225 kB / 495.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.2174, allocations: 55.44 kB / 495.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2174, allocations: 0 / 495.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of Templates: time 0.012/0.2294, allocations: 5.555 MB / 0.4892 GB, free: 11.59 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 cvode -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