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.002005/0.002005, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.002806/0.002806, allocations: 168.4 kB / 24.81 MB, free: 8.922 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 1.022/1.022, allocations: 177.2 MB / 205.3 MB, free: 5.496 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.2497/0.2497, allocations: 32.81 MB / 294.6 MB, free: 1.238 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.463e-06/1.463e-06, allocations: 0 / 376.4 MB, free: 4.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.447e-05, allocations: 6.312 kB / 376.4 MB, free: 4.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001353/0.001377, allocations: 0.5027 MB / 376.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004111/0.005488, allocations: 0.904 MB / 377.9 MB, free: 3.031 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.778e-05/0.005516, allocations: 0 / 377.9 MB, free: 3.031 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.005532, allocations: 4 kB / 377.9 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.005722, allocations: 7.938 kB / 377.9 MB, free: 3.02 MB / 346.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.0005422/0.006264, allocations: 71.95 kB / 377.9 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.096e-05/0.006315, allocations: 3.984 kB / 377.9 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.222e-05/0.006347, allocations: 4 kB / 377.9 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.939e-05/0.006407, allocations: 3.938 kB / 377.9 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.698e-05/0.006444, allocations: 0 / 377.9 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.006452, allocations: 0 / 377.9 MB, free: 2.949 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.006566, allocations: 63.88 kB / 378 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-06/0.006574, allocations: 0 / 378 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.215e-05/0.006586, allocations: 0 / 378 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.006725, allocations: 59.86 kB / 378.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.006727, allocations: 0 / 378.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.00673, allocations: 4 kB / 378.1 MB, free: 2.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.277e-06/0.006733, allocations: 0 / 378.1 MB, free: 2.824 MB / 346.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.0002635/0.006996, allocations: 385.9 kB / 378.4 MB, free: 2.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.007032, allocations: 8.031 kB / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.007058, allocations: 0.9375 kB / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.255e-05/0.007131, allocations: 108.6 kB / 378.6 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.00714, allocations: 384 / 378.6 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-06/0.007145, allocations: 4.312 kB / 378.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.798e-05/0.007213, allocations: 63.97 kB / 378.6 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-06/0.00722, allocations: 192 / 378.6 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-06/0.007225, allocations: 384 / 378.6 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.00723, allocations: 384 / 378.6 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.881e-05/0.007248, allocations: 37.62 kB / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.01037, allocations: 89.61 kB / 378.8 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.895e-05/0.01043, allocations: 56.8 kB / 378.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.914e-05/0.01045, allocations: 41.33 kB / 378.9 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-06/0.01045, allocations: 0 / 378.9 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.01049, allocations: 63.16 kB / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.01049, allocations: 4 kB / 378.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.01065, allocations: 122.8 kB / 379 MB, free: 1.676 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.01068, allocations: 77.11 kB / 379.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.758e-05/0.01075, allocations: 153.9 kB / 379.3 MB, free: 1.414 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.01076, allocations: 29.69 kB / 379.3 MB, free: 1.379 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.142e-05/0.01079, allocations: 130.9 kB / 379.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.0108, allocations: 0 / 379.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.01083, allocations: 19.38 kB / 379.4 MB, free: 1.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.01095, allocations: 496.1 kB / 379.9 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.727e-05/0.01097, allocations: 29.89 kB / 380 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.38e-05/0.01098, allocations: 33.7 kB / 380 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.633e-05/0.01102, allocations: 67.09 kB / 380.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01102, allocations: 0 / 380.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.011e-05/0.01109, allocations: 89.09 kB / 380.1 MB, free: 472 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.01112, allocations: 29.7 kB / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.01112, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.01113, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.01113, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-06/0.01114, allocations: 0 / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.01115, allocations: 8.094 kB / 380.2 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.01116, allocations: 11.88 kB / 380.2 MB, free: 416 kB / 346.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 6.904e-05/0.01123, allocations: 190.2 kB / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.01123, allocations: 0 / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.189e-05/0.01125, allocations: 3 kB / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.01125, allocations: 0 / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.01125, allocations: 0 / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.01125, allocations: 0 / 380.4 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.796e-05/0.01131, allocations: 97.2 kB / 380.5 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01131, allocations: 0 / 380.5 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-06/0.01131, allocations: 3.984 kB / 380.5 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.01131, allocations: 4 kB / 380.5 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-06/0.01132, allocations: 0 / 380.5 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.01132, allocations: 4 kB / 380.5 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.01132, allocations: 0 / 380.5 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.01142, allocations: 139.8 kB / 380.6 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-06/0.01142, allocations: 0 / 380.6 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.01143, allocations: 4 kB / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.555e-06/0.01144, allocations: 0 / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.665e-06/0.01145, allocations: 3.938 kB / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.01145, allocations: 0 / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.084e-05/0.01148, allocations: 123.2 kB / 380.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01148, allocations: 4 kB / 380.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001901/0.01167, allocations: 19.94 kB / 380.8 MB, free: 15.75 MB / 362.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.0003445/0.01202, allocations: 199.7 kB / 381 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.611e-05/0.01211, allocations: 122.5 kB / 381.1 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01211, allocations: 0 / 381.1 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.01215, allocations: 88.8 kB / 381.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.01226, allocations: 7.938 kB / 381.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001455/0.01241, allocations: 115.2 kB / 381.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.741e-05/0.01244, allocations: 63.28 kB / 381.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.01244, allocations: 3.938 kB / 381.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.01248, allocations: 70.2 kB / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01248, allocations: 0 / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of Templates: time 0.005557/0.01804, allocations: 0.781 MB / 382.2 MB, free: 14.24 MB / 362.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: 3.14830592693761]