Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002051/0.002051, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.002426/0.002426, allocations: 192 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.739/1.739, 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.2085/0.2085, allocations: 38.05 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 61.97 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1615, allocations: 58.06 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007669/0.1693, allocations: 4.323 MB / 462.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.1711, allocations: 0.9388 MB / 463.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.1713, allocations: 23.81 kB / 463.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.1716, allocations: 55.48 kB / 463.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006873/0.1723, allocations: 242.8 kB / 463.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.1725, allocations: 99.8 kB / 464 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005675/0.1731, allocations: 498.4 kB / 464.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.1734, allocations: 151.9 kB / 464.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.1737, allocations: 219 kB / 464.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004701/0.1742, allocations: 263.1 kB / 465.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.422e-05/0.1743, allocations: 24 kB / 465.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.643e-05/0.1744, allocations: 31.88 kB / 465.2 MB, free: 476 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.1745, allocations: 151.6 kB / 465.3 MB, free: 324 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.1748, allocations: 175.1 kB / 465.5 MB, free: 148 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.1752, allocations: 370.8 kB / 465.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1752, allocations: 4 kB / 465.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1752, allocations: 0 / 465.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1753, allocations: 0 / 465.8 MB, free: 15.77 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001276/0.1765, allocations: 0.6618 MB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1766, allocations: 11.89 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.567e-05/0.1767, allocations: 40.47 kB / 466.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006776/0.1774, allocations: 383.7 kB / 466.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.1774, allocations: 24.69 kB / 467 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.1775, allocations: 24 kB / 467 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.178, allocations: 348.7 kB / 467.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.178, allocations: 4 kB / 467.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.1781, allocations: 15.98 kB / 467.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/0.1782, allocations: 32.47 kB / 467.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003806/0.1786, allocations: 234 kB / 467.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.1804, allocations: 1.362 MB / 469 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/0.1808, allocations: 173 kB / 469.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.1811, allocations: 93.73 kB / 469.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1811, allocations: 7.984 kB / 469.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.1811, allocations: 46.5 kB / 469.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.1812, allocations: 0 / 469.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001493/0.1826, allocations: 0.7507 MB / 470 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.1827, allocations: 81.11 kB / 470.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.1831, allocations: 300.5 kB / 470.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.1831, allocations: 29.7 kB / 470.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.1833, allocations: 219.6 kB / 470.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.1833, allocations: 55.19 kB / 470.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.1834, allocations: 57.59 kB / 470.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1836, allocations: 338.8 kB / 471.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1837, allocations: 63.95 kB / 471.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.184, allocations: 169.3 kB / 471.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.1843, allocations: 263.5 kB / 471.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1843, allocations: 0 / 471.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004969/0.1848, allocations: 321.9 kB / 471.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1848, allocations: 4 kB / 471.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.1849, allocations: 4 kB / 471.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/0.1851, allocations: 52.81 kB / 471.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.1853, allocations: 47.92 kB / 472 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.1869, allocations: 1.609 MB / 473.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.187, allocations: 16.09 kB / 473.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.1871, allocations: 19.98 kB / 473.6 MB, free: 7.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002311/0.1873, allocations: 169.7 kB / 473.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.1874, allocations: 27.62 kB / 473.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004543/0.1878, allocations: 240.2 kB / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.1879, allocations: 0 / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1879, allocations: 0 / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1879, allocations: 11.98 kB / 474.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.1888, allocations: 0.6366 MB / 474.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1889, allocations: 0 / 474.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.189, allocations: 23.92 kB / 474.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.1892, allocations: 56.8 kB / 474.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.1892, allocations: 7.984 kB / 474.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.1908, allocations: 1.609 MB / 476.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1908, allocations: 0 / 476.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.1914, allocations: 404.3 kB / 476.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.1915, allocations: 108.7 kB / 476.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.1916, allocations: 8.125 kB / 476.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.1917, allocations: 11.94 kB / 476.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.1918, allocations: 15.92 kB / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1918, allocations: 7.984 kB / 477 MB, free: 3.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.192, allocations: 211.1 kB / 477.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.192, allocations: 0 / 477.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.1925, allocations: 68 kB / 477.2 MB, free: 3.523 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001943/0.1927, allocations: 103.2 kB / 477.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006568/0.1933, allocations: 309.2 kB / 477.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.1933, allocations: 4 kB / 477.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.1937, allocations: 199.5 kB / 477.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.1942, allocations: 65.91 kB / 477.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1955, allocations: 0.7246 MB / 478.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.1959, allocations: 0.8104 MB / 479.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.1961, allocations: 50.94 kB / 479.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.1961, allocations: 19.44 kB / 479.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1961, allocations: 3.938 kB / 479.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of Templates: time 0.007325/0.2035, allocations: 2.937 MB / 482.4 MB, free: 14.25 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches