Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008125/0.0008125, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003377/0.003377, allocations: 163.9 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8541/0.8541, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2456/0.2456, allocations: 34.25 MB / 295.7 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.33e-05/3.542e-05, allocations: 8.891 kB / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001034/0.00107, allocations: 485 kB / 443.9 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1906/0.1916, allocations: 0.8627 MB / 444.8 MB, free: 43.79 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.1917, allocations: 5.812 kB / 444.8 MB, free: 43.79 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.1917, allocations: 0 / 444.8 MB, free: 43.79 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.1918, allocations: 13.77 kB / 444.8 MB, free: 43.79 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.1924, allocations: 58.39 kB / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.296e-05/0.1924, allocations: 5.156 kB / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.437e-05/0.1925, allocations: 0 / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.806e-05/0.1925, allocations: 4.141 kB / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.428e-05/0.1925, allocations: 2.188 kB / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.135e-06/0.1925, allocations: 4.906 kB / 444.8 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.215e-05/0.1926, allocations: 51.83 kB / 444.9 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.1926, allocations: 2.656 kB / 444.9 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.772e-05/0.1927, allocations: 0 / 444.9 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.1928, allocations: 66.5 kB / 445 MB, free: 43.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1928, allocations: 0.7188 kB / 445 MB, free: 43.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1928, allocations: 0 / 445 MB, free: 43.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1928, allocations: 1.75 kB / 445 MB, free: 43.78 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002351/0.193, allocations: 274.6 kB / 445.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1931, allocations: 8.531 kB / 445.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.685e-05/0.1931, allocations: 10.33 kB / 445.3 MB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.1e-05/0.1932, allocations: 103.1 kB / 445.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1932, allocations: 9.203 kB / 445.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.1932, allocations: 2.688 kB / 445.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.1e-05/0.1933, allocations: 59.12 kB / 445.4 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.1933, allocations: 192 / 445.4 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1933, allocations: 384 / 445.4 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1933, allocations: 3.219 kB / 445.4 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.659e-05/0.1933, allocations: 31.12 kB / 445.5 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.992e-05/0.1934, allocations: 103.2 kB / 445.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.469e-05/0.1934, allocations: 44.25 kB / 445.6 MB, free: 43.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.269e-05/0.1934, allocations: 34.16 kB / 445.6 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.1934, allocations: 0 / 445.6 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.1935, allocations: 64 kB / 445.7 MB, free: 42.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 4.71e-07/0.1935, allocations: 0 / 445.7 MB, free: 42.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001319/0.1936, allocations: 119 kB / 445.8 MB, free: 42.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.1936, allocations: 81.02 kB / 445.9 MB, free: 42.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.38e-05/0.1936, allocations: 101.4 kB / 446 MB, free: 42.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.968e-06/0.1937, allocations: 25.7 kB / 446 MB, free: 42.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.822e-06/0.1937, allocations: 80.14 kB / 446.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.1937, allocations: 2.844 kB / 446.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.1937, allocations: 13.78 kB / 446.1 MB, free: 42.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.579e-05/0.1937, allocations: 311.3 kB / 446.4 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-06/0.1937, allocations: 26.77 kB / 446.4 MB, free: 42.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-06/0.1937, allocations: 36.11 kB / 446.5 MB, free: 42.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.085e-05/0.1938, allocations: 61.08 kB / 446.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1938, allocations: 0 / 446.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.531e-05/0.1938, allocations: 90.97 kB / 446.6 MB, free: 41.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1938, allocations: 32.17 kB / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.1938, allocations: 3.219 kB / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.1938, allocations: 2.781 kB / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1938, allocations: 0 / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1938, allocations: 0 / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.125e-05/0.1938, allocations: 3.938 kB / 446.7 MB, free: 41.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1938, allocations: 2.656 kB / 446.7 MB, free: 41.94 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.282e-05/0.1939, allocations: 136.1 kB / 446.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-06/0.1939, allocations: 3.344 kB / 446.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.324e-06/0.1939, allocations: 8.344 kB / 446.8 MB, free: 41.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1939, allocations: 5.578 kB / 446.8 MB, free: 41.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1939, allocations: 3.938 kB / 446.8 MB, free: 41.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1939, allocations: 6.906 kB / 446.8 MB, free: 41.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.852e-05/0.1939, allocations: 97.3 kB / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1939, allocations: 3.188 kB / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1939, allocations: 0 / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.1939, allocations: 2.938 kB / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1939, allocations: 0 / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.1939, allocations: 0 / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1939, allocations: 352 / 446.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.281e-05/0.194, allocations: 130 kB / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-06/0.194, allocations: 1.25 kB / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.227e-06/0.194, allocations: 2.906 kB / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.54e-06/0.194, allocations: 3.188 kB / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.194, allocations: 0 / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.194, allocations: 0 / 447.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.031e-05/0.194, allocations: 81.73 kB / 447.1 MB, free: 41.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.194, allocations: 0 / 447.1 MB, free: 41.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000134/0.1942, allocations: 23.81 kB / 447.2 MB, free: 41.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002613/0.1944, allocations: 196.2 kB / 447.4 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.326e-05/0.1945, allocations: 115.2 kB / 447.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1945, allocations: 0 / 447.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.389e-05/0.1945, allocations: 84.27 kB / 447.6 MB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.09e-05/0.1946, allocations: 6.5 kB / 447.6 MB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001344/0.1947, allocations: 130.1 kB / 447.7 MB, free: 40.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.168e-05/0.1948, allocations: 54.55 kB / 447.7 MB, free: 40.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-06/0.1948, allocations: 8.5 kB / 447.8 MB, free: 40.9 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1948, allocations: 0 / 447.8 MB, free: 40.9 MB / 410.7 MB Notification: Performance of Templates: time 0.001544/0.1963, allocations: 0.8467 MB / 448.6 MB, free: 40.83 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.91220835596323]