Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008057, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00123/0.002035, allocations: 445.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000759/0.000759, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001145/0.001904, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1/1, allocations: 173.4 MB / 185.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09066/1.091, allocations: 52.5 MB / 238.4 MB, free: 4.359 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1542/0.1542, allocations: 32.81 MB / 272 MB, free: 2.961 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1472/0.3014, allocations: 12.54 MB / 284.5 MB, free: 11.88 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 285.8 MB, free: 10.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.466e-05, allocations: 4.406 kB / 285.8 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00135/0.001375, allocations: 0.5433 MB / 286.4 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009816/0.002357, allocations: 0.9322 MB / 287.3 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.779e-05/0.002374, allocations: 0 / 287.3 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.158e-06/0.002379, allocations: 0 / 287.3 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.937e-05/0.002448, allocations: 14.48 kB / 287.3 MB, free: 9.668 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0004661/0.002914, allocations: 69.02 kB / 287.4 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.312e-05/0.002967, allocations: 2.656 kB / 287.4 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.051e-05/0.002998, allocations: 2.188 kB / 287.4 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.025e-05/0.003038, allocations: 10.56 kB / 287.4 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.003081, allocations: 1.281 kB / 287.4 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.426e-06/0.003089, allocations: 4 kB / 287.4 MB, free: 9.613 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.003235, allocations: 64.22 kB / 287.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.003247, allocations: 1.406 kB / 287.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.205e-05/0.003259, allocations: 1.375 kB / 287.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.003409, allocations: 52.12 kB / 287.5 MB, free: 9.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.003419, allocations: 0 / 287.5 MB, free: 9.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003419, allocations: 1.188 kB / 287.5 MB, free: 9.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.003428, allocations: 0 / 287.5 MB, free: 9.555 MB / 282.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.0002809/0.003709, allocations: 256.1 kB / 287.8 MB, free: 9.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.003741, allocations: 13.17 kB / 287.8 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.792e-05/0.003769, allocations: 6.094 kB / 287.8 MB, free: 9.277 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.472e-05/0.003854, allocations: 104.3 kB / 287.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.003865, allocations: 1.438 kB / 287.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.003874, allocations: 1.5 kB / 287.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.052e-05/0.003945, allocations: 66.2 kB / 287.9 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.003952, allocations: 192 / 287.9 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-06/0.003957, allocations: 1.5 kB / 287.9 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.003963, allocations: 384 / 288 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.591e-05/0.003978, allocations: 31.92 kB / 288 MB, free: 9.043 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.867e-05/0.004047, allocations: 59.62 kB / 288 MB, free: 8.973 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.845e-05/0.004086, allocations: 46.69 kB / 288.1 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.004103, allocations: 32.94 kB / 288.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.004106, allocations: 0 / 288.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.004143, allocations: 70.52 kB / 288.2 MB, free: 8.793 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.004143, allocations: 0 / 288.2 MB, free: 8.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001164/0.00426, allocations: 109.4 kB / 288.3 MB, free: 8.668 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.004313, allocations: 167.3 kB / 288.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.991e-05/0.004363, allocations: 97.09 kB / 288.6 MB, free: 8.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.004372, allocations: 25.7 kB / 288.6 MB, free: 8.332 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.767e-05/0.00439, allocations: 89.48 kB / 288.7 MB, free: 8.242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.004406, allocations: 1.094 kB / 288.7 MB, free: 8.242 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.004427, allocations: 11.88 kB / 288.7 MB, free: 8.227 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.881e-05/0.004496, allocations: 315.9 kB / 289 MB, free: 7.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.004509, allocations: 26.92 kB / 289 MB, free: 7.879 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.249e-05/0.004521, allocations: 31.94 kB / 289 MB, free: 7.844 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.00455, allocations: 63.73 kB / 289.1 MB, free: 7.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.004552, allocations: 1.156 kB / 289.1 MB, free: 7.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.17e-05/0.004603, allocations: 86.84 kB / 289.2 MB, free: 7.672 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.004637, allocations: 37.11 kB / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.004641, allocations: 1.188 kB / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.004651, allocations: 0 / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.984e-06/0.004653, allocations: 1.125 kB / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-06/0.004656, allocations: 0 / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.283e-05/0.004669, allocations: 1.125 kB / 289.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.004675, allocations: 0 / 289.2 MB, free: 7.637 MB / 282.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 5.528e-05/0.00473, allocations: 145.9 kB / 289.4 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-06/0.004735, allocations: 2.188 kB / 289.4 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.078e-05/0.004746, allocations: 8.078 kB / 289.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.004747, allocations: 3.938 kB / 289.4 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.004749, allocations: 4 kB / 289.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.004751, allocations: 1.156 kB / 289.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.528e-05/0.004796, allocations: 68.02 kB / 289.5 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.004797, allocations: 0 / 289.5 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.533e-06/0.004798, allocations: 4 kB / 289.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-06/0.004802, allocations: 1.125 kB / 289.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-06/0.004803, allocations: 0.9688 kB / 289.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.748e-06/0.004807, allocations: 1.031 kB / 289.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.004808, allocations: 0 / 289.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.00481, allocations: 4.891 kB / 289.5 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.503e-05/0.004875, allocations: 114.1 kB / 289.6 MB, free: 7.246 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.004887, allocations: 5.234 kB / 289.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.641e-06/0.004892, allocations: 1.25 kB / 289.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-06/0.004901, allocations: 0 / 289.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.004904, allocations: 1.156 kB / 289.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.558e-06/0.004913, allocations: 5.984 kB / 289.6 MB, free: 7.234 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004913, allocations: 3.938 kB / 289.6 MB, free: 7.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001272/0.00504, allocations: 26.28 kB / 289.6 MB, free: 7.219 MB / 282.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.0003954/0.005436, allocations: 221.9 kB / 289.8 MB, free: 7.117 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.586e-05/0.005522, allocations: 122.1 kB / 290 MB, free: 6.977 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.005526, allocations: 1.156 kB / 290 MB, free: 6.977 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.785e-05/0.005554, allocations: 85.31 kB / 290 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.644e-05/0.00561, allocations: 12.22 kB / 290.1 MB, free: 6.867 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001406/0.005751, allocations: 119.2 kB / 290.2 MB, free: 6.727 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.212e-05/0.005783, allocations: 52.39 kB / 290.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.005788, allocations: 1.156 kB / 290.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.171e-05/0.00582, allocations: 51.88 kB / 290.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.005821, allocations: 0 / 290.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of Templates: time 0.002202/0.008023, allocations: 0.801 MB / 291.1 MB, free: 6.191 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9252660432830453]