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.0009722/0.0009722, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001054/0.001054, allocations: 169.4 kB / 24.91 MB, free: 8.766 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.9575/0.9575, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.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.2924/0.2924, allocations: 32.8 MB / 294.6 MB, free: 1.148 MB / 266.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.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: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 323.2 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.815e-05/1.952e-05, allocations: 5.719 kB / 323.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009539/0.0009735, allocations: 497.9 kB / 323.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007972/0.001771, allocations: 0.9117 MB / 324.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.064e-05/0.001791, allocations: 3.938 kB / 324.6 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.636e-05/0.001808, allocations: 0 / 324.6 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.001965, allocations: 4 kB / 324.6 MB, free: 8.352 MB / 298.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.0004158/0.002381, allocations: 80.23 kB / 324.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.29e-05/0.002424, allocations: 4 kB / 324.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.481e-05/0.002459, allocations: 8 kB / 324.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.688e-05/0.002486, allocations: 0 / 324.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.082e-05/0.002517, allocations: 7.984 kB / 324.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-06/0.002525, allocations: 0 / 324.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.002626, allocations: 55.89 kB / 324.7 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.002634, allocations: 0 / 324.7 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.516e-05/0.002649, allocations: 4.609 kB / 324.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.002779, allocations: 59.8 kB / 324.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.002781, allocations: 0 / 324.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.002781, allocations: 4 kB / 324.8 MB, free: 8.145 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.826e-06/0.002784, allocations: 0 / 324.8 MB, free: 8.145 MB / 298.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.0002232/0.003008, allocations: 255 kB / 325.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.856e-05/0.003036, allocations: 8.031 kB / 325.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.003058, allocations: 8.938 kB / 325.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.971e-05/0.003128, allocations: 101.8 kB / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.003137, allocations: 384 / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.003144, allocations: 384 / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.82e-05/0.003202, allocations: 59.95 kB / 325.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-06/0.003208, allocations: 192 / 325.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-06/0.003213, allocations: 384 / 325.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.003218, allocations: 384 / 325.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.526e-05/0.003233, allocations: 37.58 kB / 325.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.595e-05/0.003289, allocations: 53.05 kB / 325.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.847e-05/0.003328, allocations: 52.3 kB / 325.4 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.481e-05/0.003343, allocations: 34.56 kB / 325.4 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-06/0.003346, allocations: 4.062 kB / 325.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.003378, allocations: 64.25 kB / 325.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.003378, allocations: 0 / 325.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001032/0.003481, allocations: 118.7 kB / 325.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.003515, allocations: 77.11 kB / 325.7 MB, free: 7.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.097e-05/0.003566, allocations: 103.2 kB / 325.8 MB, free: 7.004 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.003578, allocations: 25.7 kB / 325.8 MB, free: 6.973 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.83e-05/0.003597, allocations: 84.39 kB / 325.9 MB, free: 6.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.216e-05/0.003609, allocations: 8.297 kB / 325.9 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.003626, allocations: 9.719 kB / 325.9 MB, free: 6.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.0037, allocations: 318.8 kB / 326.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.595e-05/0.003716, allocations: 29.7 kB / 326.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.104e-05/0.003727, allocations: 25.7 kB / 326.3 MB, free: 6.477 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.057e-05/0.003758, allocations: 64.25 kB / 326.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.003759, allocations: 0 / 326.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.864e-05/0.003808, allocations: 93.05 kB / 326.4 MB, free: 6.289 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.003832, allocations: 29.8 kB / 326.4 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.003836, allocations: 4 kB / 326.4 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.003848, allocations: 0 / 326.4 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.33e-06/0.003853, allocations: 3.984 kB / 326.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.003856, allocations: 4 kB / 326.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.396e-06/0.003864, allocations: 0 / 326.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.003869, allocations: 0 / 326.5 MB, free: 6.242 MB / 298.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.438e-05/0.003924, allocations: 143.5 kB / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-06/0.003927, allocations: 0 / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.415e-06/0.003936, allocations: 3 kB / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.11e-07/0.003936, allocations: 0 / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.003937, allocations: 4 kB / 326.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.00394, allocations: 4 kB / 326.6 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.886e-05/0.003979, allocations: 65.83 kB / 326.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-07/0.003979, allocations: 0 / 326.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.00398, allocations: 0 / 326.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.00398, allocations: 0 / 326.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-06/0.003984, allocations: 4 kB / 326.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.01e-07/0.003985, allocations: 0 / 326.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.01e-07/0.003985, allocations: 0 / 326.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.473e-05/0.00404, allocations: 116.4 kB / 326.8 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-06/0.004044, allocations: 4.656 kB / 326.8 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.004053, allocations: 4 kB / 326.8 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.037e-06/0.004057, allocations: 0 / 326.8 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-06/0.004065, allocations: 4 kB / 326.8 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-06/0.004066, allocations: 3.938 kB / 326.8 MB, free: 5.832 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.044e-06/0.004073, allocations: 8.859 kB / 326.8 MB, free: 5.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004073, allocations: 0 / 326.8 MB, free: 5.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001063/0.00418, allocations: 19.92 kB / 326.8 MB, free: 5.801 MB / 298.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.0003404/0.00452, allocations: 207.5 kB / 327 MB, free: 5.652 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.741e-05/0.004597, allocations: 119.6 kB / 327.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.004599, allocations: 4.062 kB / 327.2 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.004632, allocations: 89.97 kB / 327.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.277e-05/0.004675, allocations: 3.938 kB / 327.2 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001236/0.004799, allocations: 114 kB / 327.4 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.458e-05/0.004823, allocations: 51.36 kB / 327.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.998e-06/0.004827, allocations: 0 / 327.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.051e-05/0.004858, allocations: 55.36 kB / 327.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.004858, allocations: 0 / 327.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of Templates: time 0.002026/0.006884, allocations: 0.7694 MB / 328.2 MB, free: 4.355 MB / 298.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8679792350158095]