Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_PowerGrids.Functions.Test.TestTimeConstants") translateModel(PowerGrids.Functions.Test.TestTimeConstants,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1|T2|time",fileNamePrefix="PowerGrids_PowerGrids.Functions.Test.TestTimeConstants") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 105.8 kB / 16.27 MB, free: 6.414 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.001553/0.001554, allocations: 191.6 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06343/0.06343, allocations: 14.17 MB / 284.6 MB, free: 13.92 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 63.91 kB / 345.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1896, allocations: 50.13 MB / 395.9 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Functions.Test.TestTimeConstants): time 0.001453/0.1911, allocations: 484.1 kB / 396.3 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002974/0.1914, allocations: 124.2 kB / 396.5 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.427e-05/0.1915, allocations: 0 / 396.5 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.1915, allocations: 0 / 396.5 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1917, allocations: 20.17 kB / 396.5 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.527e-06/0.1918, allocations: 0 / 396.5 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 2.762e-05/0.1918, allocations: 1.156 kB / 396.5 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.1918, allocations: 5.219 kB / 396.5 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.095e-05/0.1919, allocations: 0.9688 kB / 396.5 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.777e-05/0.192, allocations: 14.56 kB / 396.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.757e-06/0.192, allocations: 0 / 396.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.055e-06/0.192, allocations: 5.188 kB / 396.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-06/0.192, allocations: 3.938 kB / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.668e-06/0.192, allocations: 3.938 kB / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 2.711e-05/0.192, allocations: 5.031 kB / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.192, allocations: 0 / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.192, allocations: 0 / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1921, allocations: 1.156 kB / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001639/0.1922, allocations: 310.8 kB / 396.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.1923, allocations: 8.906 kB / 396.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.1923, allocations: 2.094 kB / 396.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.32e-05/0.1923, allocations: 168.3 kB / 397 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.1924, allocations: 5.562 kB / 397 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-06/0.1924, allocations: 5.469 kB / 397 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.963e-05/0.1924, allocations: 39.48 kB / 397 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1925, allocations: 192 / 397 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.1925, allocations: 3.938 kB / 397 MB, free: 46.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.1925, allocations: 1.156 kB / 397 MB, free: 46.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.734e-05/0.1925, allocations: 10.23 kB / 397.1 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001896/0.1927, allocations: 464.3 kB / 397.5 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.7e-05/0.1927, allocations: 173.1 kB / 397.7 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.309e-05/0.1928, allocations: 85.56 kB / 397.8 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.1928, allocations: 79.28 kB / 397.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.1928, allocations: 111.2 kB / 398 MB, free: 45.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.1928, allocations: 0 / 398 MB, free: 45.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=0): time 5.163e-05/0.1929, allocations: 27.2 kB / 398 MB, free: 45.76 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.1929, allocations: 130.7 kB / 398.1 MB, free: 45.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.538e-05/0.1929, allocations: 96.61 kB / 398.2 MB, free: 45.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-06/0.1929, allocations: 29.83 kB / 398.2 MB, free: 45.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.077e-05/0.193, allocations: 95.38 kB / 398.3 MB, free: 45.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/0.193, allocations: 0 / 398.3 MB, free: 45.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.193, allocations: 16.5 kB / 398.3 MB, free: 45.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.181e-05/0.193, allocations: 312.2 kB / 398.6 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-06/0.1931, allocations: 1.375 kB / 398.6 MB, free: 45.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.826e-06/0.1931, allocations: 11.06 kB / 398.7 MB, free: 45.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.191e-05/0.1931, allocations: 21.88 kB / 398.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1931, allocations: 3.938 kB / 398.7 MB, free: 45.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.971e-05/0.1932, allocations: 46.22 kB / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1932, allocations: 4.5 kB / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1932, allocations: 1 kB / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.1932, allocations: 1.062 kB / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.159e-05/0.1933, allocations: 3.25 kB / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.1933, allocations: 64 / 398.7 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.1933, allocations: 10.06 kB / 398.7 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.1933, allocations: 5.25 kB / 398.8 MB, free: 44.96 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.811e-05/0.1934, allocations: 190.2 kB / 398.9 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.1934, allocations: 110.3 kB / 399 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.708e-05/0.1934, allocations: 109.1 kB / 399.2 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.1934, allocations: 176.3 kB / 399.3 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/0.1935, allocations: 185.4 kB / 399.5 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.1935, allocations: 177.5 kB / 399.7 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.1936, allocations: 411.4 kB / 400.1 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.1936, allocations: 101 kB / 400.2 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.738e-06/0.1936, allocations: 102.2 kB / 400.3 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.806e-05/0.1937, allocations: 185.4 kB / 400.5 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.1937, allocations: 181.5 kB / 400.6 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.737e-05/0.1937, allocations: 181.3 kB / 400.8 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.765e-05/0.1937, allocations: 181.4 kB / 401 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.679e-05/0.1938, allocations: 311 kB / 401.3 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.1938, allocations: 183.5 kB / 401.5 MB, free: 42.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.1938, allocations: 189.2 kB / 401.7 MB, free: 41.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.757e-05/0.1939, allocations: 102.2 kB / 401.8 MB, free: 41.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.1939, allocations: 176.3 kB / 401.9 MB, free: 41.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.1939, allocations: 110.4 kB / 402 MB, free: 41.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.641e-05/0.194, allocations: 81.56 kB / 402.1 MB, free: 41.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.194, allocations: 3.938 kB / 402.1 MB, free: 41.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.1942, allocations: 1.531 kB / 402.1 MB, free: 41.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 5.051e-05/0.1942, allocations: 164.6 kB / 402.3 MB, free: 41.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 5.38e-05/0.1943, allocations: 8.406 kB / 402.3 MB, free: 41.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1943, allocations: 0 / 402.3 MB, free: 41.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.753e-06/0.1943, allocations: 3.938 kB / 402.3 MB, free: 41.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.1946, allocations: 466.3 kB / 402.8 MB, free: 40.76 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001255/0.1947, allocations: 180.2 kB / 402.9 MB, free: 40.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.032e-05/0.1948, allocations: 0.669 MB / 403.6 MB, free: 39.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.207e-05/0.1948, allocations: 9.031 kB / 403.6 MB, free: 39.86 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1948, allocations: 0 / 403.6 MB, free: 39.86 MB / 318.1 MB Notification: Performance of Templates: time 0.001169/0.196, allocations: 354.3 kB / 404 MB, free: 39.68 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.makefile (rm -f PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe ; mkfifo PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe >> ../files/PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.sim & ./PowerGrids_PowerGrids.Functions.Test.TestTimeConstants -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Functions.Test.TestTimeConstants_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Functions.Test.TestTimeConstants.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches