Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 112.5 kB / 17.7 MB, free: 5.434 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.001547/0.001547, allocations: 191 kB / 18.63 MB, free: 4.504 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.747/1.747, 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.2092/0.2092, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 61.2 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1639, allocations: 58.07 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.006047/0.17, allocations: 3.422 MB / 461.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.1724, allocations: 1.457 MB / 463.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.1725, allocations: 4 kB / 463.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009009/0.1735, allocations: 254.9 kB / 463.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006458/0.1741, allocations: 283 kB / 463.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.1745, allocations: 107.7 kB / 463.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004342/0.1749, allocations: 343 kB / 464.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.1753, allocations: 125.9 kB / 464.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.1755, allocations: 155.3 kB / 464.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002476/0.1758, allocations: 147.5 kB / 464.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1758, allocations: 12 kB / 464.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005116/0.1763, allocations: 311.2 kB / 464.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1765, allocations: 95.77 kB / 465 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.1766, allocations: 111.5 kB / 465.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004877/0.1771, allocations: 339 kB / 465.4 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1771, allocations: 0 / 465.4 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1771, allocations: 0 / 465.4 MB, free: 184 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1772, allocations: 4 kB / 465.5 MB, free: 180 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007884/0.1779, allocations: 0.5104 MB / 466 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.178, allocations: 8.031 kB / 466 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009749/0.179, allocations: 92.55 kB / 466.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/0.1794, allocations: 268.4 kB / 466.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1794, allocations: 12.33 kB / 466.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.828e-05/0.1795, allocations: 24.12 kB / 466.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.18, allocations: 322.3 kB / 466.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.1801, allocations: 0 / 466.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.1801, allocations: 8 kB / 466.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/0.1801, allocations: 12 kB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004454/0.1806, allocations: 295.7 kB / 467 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.1825, allocations: 1.301 MB / 468.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005535/0.183, allocations: 205.2 kB / 468.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.506e-05/0.1832, allocations: 65.7 kB / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.1832, allocations: 3.938 kB / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.1832, allocations: 38.55 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.743e-06/0.1832, allocations: 3.938 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009879/0.1842, allocations: 422.2 kB / 469 MB, free: 12.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.1843, allocations: 89.16 kB / 469.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.1845, allocations: 194.4 kB / 469.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.1846, allocations: 25.92 kB / 469.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1847, allocations: 163.8 kB / 469.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.1848, allocations: 51.23 kB / 469.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.1848, allocations: 49.61 kB / 469.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.185, allocations: 330.8 kB / 469.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.1851, allocations: 51.97 kB / 469.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.1853, allocations: 145.7 kB / 470.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.1857, allocations: 232.7 kB / 470.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1857, allocations: 0 / 470.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004742/0.1861, allocations: 269.9 kB / 470.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.1862, allocations: 7.938 kB / 470.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1862, allocations: 4 kB / 470.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.1865, allocations: 37.27 kB / 470.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1866, allocations: 47.92 kB / 470.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.1881, allocations: 1.434 MB / 472.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1883, allocations: 11.98 kB / 472.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.1883, allocations: 8 kB / 472.1 MB, free: 8.93 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 (24): * Single equations (assignments): 23 * 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.0002108/0.1885, allocations: 164 kB / 472.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.1886, allocations: 19.75 kB / 472.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004251/0.189, allocations: 192 kB / 472.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.189, allocations: 4 kB / 472.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.189, allocations: 0 / 472.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.189, allocations: 0 / 472.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008839/0.1899, allocations: 0.5648 MB / 473.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1899, allocations: 0 / 473.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.898e-05/0.19, allocations: 24.05 kB / 473.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.1902, allocations: 36.83 kB / 473.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.1902, allocations: 7.938 kB / 473.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.1917, allocations: 1.423 MB / 474.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.1917, allocations: 0 / 474.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.1922, allocations: 306.8 kB / 474.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.179e-05/0.1923, allocations: 88.92 kB / 474.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.1923, allocations: 4 kB / 474.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1925, allocations: 12 kB / 474.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.1925, allocations: 15.86 kB / 475 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1925, allocations: 8 kB / 475 MB, free: 5.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001775/0.1927, allocations: 147.1 kB / 475.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1927, allocations: 0 / 475.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004336/0.1932, allocations: 51.94 kB / 475.2 MB, free: 5.617 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 12 * 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.0002258/0.1934, allocations: 106.2 kB / 475.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006154/0.194, allocations: 262.6 kB / 475.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.194, allocations: 0 / 475.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.1943, allocations: 179.8 kB / 475.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.1948, allocations: 31.91 kB / 475.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.1958, allocations: 451 kB / 476.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005922/0.1964, allocations: 0.7632 MB / 476.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.1965, allocations: 41.5 kB / 477 MB, free: 3.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.145e-05/0.1966, allocations: 15.44 kB / 477 MB, free: 3.691 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1966, allocations: 0 / 477 MB, free: 3.691 MB / 350.1 MB Notification: Performance of Templates: time 0.005903/0.2025, allocations: 1.656 MB / 478.6 MB, free: 2.039 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches