Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001404, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001663/0.001664, allocations: 192 kB / 18.63 MB, free: 4.508 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.611/1.611, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2212/0.2212, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.86 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.168, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.007946/0.1761, allocations: 4.077 MB / 462.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.178, allocations: 0.857 MB / 463.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.1783, allocations: 11.94 kB / 463.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.1786, allocations: 47.52 kB / 463.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006287/0.1793, allocations: 167 kB / 463.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.1795, allocations: 87.88 kB / 463.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006007/0.1802, allocations: 394.6 kB / 464 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.1805, allocations: 114.2 kB / 464.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.1809, allocations: 175.1 kB / 464.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004518/0.1814, allocations: 183.3 kB / 464.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.382e-05/0.1814, allocations: 20 kB / 464.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.087e-05/0.1815, allocations: 20 kB / 464.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.1817, allocations: 87.72 kB / 464.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.1819, allocations: 147.2 kB / 464.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.1823, allocations: 294.9 kB / 465 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.1824, allocations: 0 / 465 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.1824, allocations: 0 / 465 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.1824, allocations: 0 / 465 MB, free: 0.6562 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001448/0.1839, allocations: 0.5894 MB / 465.6 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.644e-05/0.1839, allocations: 15.89 kB / 465.6 MB, free: 0 / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.1841, allocations: 32.73 kB / 465.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.1848, allocations: 338.9 kB / 465.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.1849, allocations: 16.81 kB / 466 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.185, allocations: 40.11 kB / 466 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.1856, allocations: 286 kB / 466.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.1857, allocations: 3.938 kB / 466.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.1857, allocations: 12 kB / 466.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.1857, allocations: 4 kB / 466.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.1861, allocations: 187.8 kB / 466.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1881, allocations: 1.28 MB / 467.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.1885, allocations: 123.8 kB / 467.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.596e-05/0.1886, allocations: 38.62 kB / 467.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.1886, allocations: 15.94 kB / 467.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.1887, allocations: 34.55 kB / 468 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.1887, allocations: 0 / 468 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.00121/0.1899, allocations: 0.5193 MB / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.19, allocations: 111.1 kB / 468.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.1903, allocations: 238.6 kB / 468.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.1904, allocations: 37.64 kB / 468.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.1906, allocations: 199.5 kB / 469.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.1906, allocations: 35.45 kB / 469.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.791e-05/0.1907, allocations: 45.7 kB / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.1909, allocations: 334.8 kB / 469.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.191, allocations: 40.08 kB / 469.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.1912, allocations: 135.8 kB / 469.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.1915, allocations: 191.8 kB / 469.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1915, allocations: 0 / 469.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004535/0.192, allocations: 234 kB / 470 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.192, allocations: 4 kB / 470.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1921, allocations: 4 kB / 470.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.1922, allocations: 24.84 kB / 470.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.1925, allocations: 67.83 kB / 470.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.899e-05/0.1926, allocations: 11.94 kB / 470.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1927, allocations: 4.312 kB / 470.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1927, allocations: 19.98 kB / 470.2 MB, free: 10.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002098/0.193, allocations: 152.5 kB / 470.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.193, allocations: 19.72 kB / 470.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.1933, allocations: 143.3 kB / 470.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.1934, allocations: 7.938 kB / 470.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1934, allocations: 0 / 470.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.1934, allocations: 0 / 470.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.1938, allocations: 293.5 kB / 470.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.1939, allocations: 4 kB / 470.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.194, allocations: 27.92 kB / 470.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.1941, allocations: 3.984 kB / 470.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.1941, allocations: 4 kB / 470.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.1941, allocations: 3.938 kB / 470.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1941, allocations: 4 kB / 470.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000551/0.1947, allocations: 362.5 kB / 471.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.38e-05/0.1948, allocations: 100.8 kB / 471.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.863e-05/0.1948, allocations: 8 kB / 471.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.195, allocations: 3.938 kB / 471.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.195, allocations: 11.92 kB / 471.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.1951, allocations: 8 kB / 471.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.1953, allocations: 170 kB / 471.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1953, allocations: 0 / 471.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.1957, allocations: 48.06 kB / 471.5 MB, free: 9.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0001998/0.1959, allocations: 99.23 kB / 471.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.1963, allocations: 221.8 kB / 471.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1964, allocations: 0 / 471.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.976e-05/0.1965, allocations: 48.73 kB / 471.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.1971, allocations: 61.11 kB / 471.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1983, allocations: 0.5923 MB / 472.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.1989, allocations: 0.7673 MB / 473.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.199, allocations: 34.27 kB / 473.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.1991, allocations: 27.44 kB / 473.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1991, allocations: 0 / 473.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of Templates: time 0.006178/0.2053, allocations: 2.187 MB / 475.6 MB, free: 5.422 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches