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.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.001926/0.001926, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002403/0.002403, allocations: 210 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.523/1.523, allocations: 230.6 MB / 258.2 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] 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.2295/0.2295, allocations: 44.93 MB / 359.6 MB, free: 6.043 MB / 286.1 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.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.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 71.88 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3343, allocations: 65.48 MB / 0.5582 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001775/0.3361, allocations: 485.1 kB / 0.5586 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3375, allocations: 0.863 MB / 0.5595 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.476e-05/0.3375, allocations: 0 / 0.5595 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.3375, allocations: 3.938 kB / 0.5595 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.3377, allocations: 4 kB / 0.5595 GB, free: 6.113 MB / 398.1 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.000711/0.3385, allocations: 65.59 kB / 0.5595 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.394e-05/0.3385, allocations: 7.922 kB / 0.5596 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.055e-05/0.3386, allocations: 4 kB / 0.5596 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.826e-05/0.3386, allocations: 4 kB / 0.5596 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.566e-05/0.3386, allocations: 4 kB / 0.5596 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.3386, allocations: 4 kB / 0.5596 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.3388, allocations: 55.95 kB / 0.5596 GB, free: 5.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.3388, allocations: 0 / 0.5596 GB, free: 5.977 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.3388, allocations: 7.922 kB / 0.5596 GB, free: 5.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.339, allocations: 51.67 kB / 0.5597 GB, free: 5.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.339, allocations: 0 / 0.5597 GB, free: 5.922 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.339, allocations: 0 / 0.5597 GB, free: 5.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.339, allocations: 0 / 0.5597 GB, free: 5.922 MB / 398.1 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.0004002/0.3394, allocations: 282.5 kB / 0.56 GB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3394, allocations: 16.03 kB / 0.56 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/0.3395, allocations: 8.859 kB / 0.56 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3396, allocations: 102.5 kB / 0.5601 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.3396, allocations: 384 / 0.5601 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.3396, allocations: 4.375 kB / 0.5601 GB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.3397, allocations: 51.97 kB / 0.5601 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3397, allocations: 192 / 0.5601 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.3398, allocations: 7.938 kB / 0.5601 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3398, allocations: 0 / 0.5601 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.545e-05/0.3398, allocations: 29.64 kB / 0.5602 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000125/0.3399, allocations: 109.3 kB / 0.5603 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.39e-05/0.34, allocations: 40.28 kB / 0.5603 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/0.34, allocations: 34.66 kB / 0.5603 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.34, allocations: 0 / 0.5603 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.3401, allocations: 56.27 kB / 0.5604 GB, free: 5.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3401, allocations: 0 / 0.5604 GB, free: 5.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002215/0.3403, allocations: 126.7 kB / 0.5605 GB, free: 4.902 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.3404, allocations: 81.11 kB / 0.5606 GB, free: 4.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.164e-05/0.3405, allocations: 89.86 kB / 0.5607 GB, free: 4.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.3405, allocations: 25.95 kB / 0.5607 GB, free: 4.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.124e-05/0.3405, allocations: 88.14 kB / 0.5608 GB, free: 4.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3405, allocations: 7.938 kB / 0.5608 GB, free: 4.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.3406, allocations: 13.7 kB / 0.5608 GB, free: 4.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3407, allocations: 310.8 kB / 0.5611 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.205e-05/0.3408, allocations: 29.7 kB / 0.5611 GB, free: 4.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.151e-05/0.3408, allocations: 25.7 kB / 0.5612 GB, free: 4.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.545e-05/0.3408, allocations: 64.27 kB / 0.5612 GB, free: 4.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3408, allocations: 0 / 0.5612 GB, free: 4.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.371e-05/0.3409, allocations: 93.03 kB / 0.5613 GB, free: 3.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.341, allocations: 37.8 kB / 0.5613 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.341, allocations: 0 / 0.5613 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.341, allocations: 7.922 kB / 0.5613 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.341, allocations: 0 / 0.5613 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.341, allocations: 0 / 0.5613 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.341, allocations: 0 / 0.5613 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.341, allocations: 0 / 0.5613 GB, free: 3.941 MB / 398.1 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 0.0001041/0.3411, allocations: 143.5 kB / 0.5615 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.3411, allocations: 0 / 0.5615 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.213e-05/0.3412, allocations: 7 kB / 0.5615 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3412, allocations: 7.938 kB / 0.5615 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.3412, allocations: 0 / 0.5615 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3412, allocations: 0 / 0.5615 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.028e-05/0.3413, allocations: 93.33 kB / 0.5616 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3413, allocations: 7.922 kB / 0.5616 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3413, allocations: 4 kB / 0.5616 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.3413, allocations: 0 / 0.5616 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3413, allocations: 0 / 0.5616 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.3413, allocations: 4 kB / 0.5616 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.3413, allocations: 7.922 kB / 0.5616 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.3414, allocations: 124.5 kB / 0.5617 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-06/0.3414, allocations: 7.953 kB / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.3414, allocations: 0 / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-06/0.3414, allocations: 0 / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.3415, allocations: 3.938 kB / 0.5617 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3415, allocations: 4 kB / 0.5617 GB, free: 3.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.05e-05/0.3415, allocations: 79.28 kB / 0.5618 GB, free: 3.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3415, allocations: 0 / 0.5618 GB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.3417, allocations: 23.86 kB / 0.5618 GB, free: 3.355 MB / 398.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: 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.0004644/0.3422, allocations: 186.5 kB / 0.562 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001467/0.3423, allocations: 122.8 kB / 0.5621 GB, free: 3.051 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3423, allocations: 0 / 0.5621 GB, free: 3.051 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.677e-05/0.3424, allocations: 85.05 kB / 0.5622 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.3425, allocations: 0 / 0.5622 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002368/0.3428, allocations: 132.4 kB / 0.5623 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.13e-05/0.3428, allocations: 59.34 kB / 0.5624 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.3428, allocations: 7.438 kB / 0.5624 GB, free: 2.695 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3429, allocations: 4 kB / 0.5624 GB, free: 2.691 MB / 398.1 MB Notification: Performance of Templates: time 0.002524/0.3454, allocations: 0.8306 MB / 0.5632 GB, free: 1.867 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.72967617912218]