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.0009594/0.0009594, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001018/0.001018, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.017/1.017, allocations: 177.1 MB / 205 MB, free: 5.637 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.2604/0.2604, allocations: 32.8 MB / 294.3 MB, free: 1.227 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.713e-06/1.713e-06, allocations: 0 / 376 MB, free: 4.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.12e-05, allocations: 2.312 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001062/0.001083, allocations: 0.4964 MB / 376.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.001942, allocations: 0.9077 MB / 377.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.177e-05/0.001964, allocations: 0 / 377.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.001981, allocations: 0 / 377.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.002151, allocations: 8 kB / 377.4 MB, free: 3.273 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.0004305/0.002581, allocations: 65.31 kB / 377.5 MB, free: 3.215 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.698e-05/0.002628, allocations: 4 kB / 377.5 MB, free: 3.211 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.672e-05/0.002655, allocations: 0 / 377.5 MB, free: 3.211 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.637e-05/0.002681, allocations: 8 kB / 377.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.443e-05/0.002716, allocations: 3.984 kB / 377.5 MB, free: 3.199 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.002724, allocations: 0 / 377.5 MB, free: 3.199 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.002824, allocations: 63.81 kB / 377.5 MB, free: 3.137 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-06/0.002832, allocations: 0 / 377.5 MB, free: 3.137 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.00285, allocations: 4 kB / 377.5 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000393/0.003243, allocations: 51.88 kB / 377.6 MB, free: 3.082 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.003245, allocations: 0 / 377.6 MB, free: 3.082 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.003246, allocations: 0 / 377.6 MB, free: 3.082 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.00325, allocations: 0 / 377.6 MB, free: 3.082 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.0002732/0.003523, allocations: 381.9 kB / 378 MB, free: 2.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.003557, allocations: 16.03 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.003587, allocations: 0.9375 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.121e-05/0.003658, allocations: 108.6 kB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.003668, allocations: 4.375 kB / 378.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.003678, allocations: 384 / 378.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.32e-05/0.003751, allocations: 59.91 kB / 378.2 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.00376, allocations: 192 / 378.2 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.003768, allocations: 384 / 378.2 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.003774, allocations: 4.312 kB / 378.2 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.745e-05/0.003792, allocations: 29.64 kB / 378.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.202e-05/0.003884, allocations: 117 kB / 378.3 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.155e-05/0.003925, allocations: 56.86 kB / 378.4 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.927e-05/0.003944, allocations: 41.39 kB / 378.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.003948, allocations: 0 / 378.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.003984, allocations: 63.03 kB / 378.5 MB, free: 2.051 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.003984, allocations: 4 kB / 378.5 MB, free: 2.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001511/0.004136, allocations: 122.8 kB / 378.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.004172, allocations: 77.11 kB / 378.7 MB, free: 1.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.922e-05/0.004241, allocations: 153.9 kB / 378.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.004251, allocations: 29.95 kB / 378.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.984e-05/0.004281, allocations: 130.9 kB / 379 MB, free: 1.473 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.004294, allocations: 0 / 379 MB, free: 1.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.004317, allocations: 19.36 kB / 379 MB, free: 1.445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.004457, allocations: 0.4884 MB / 379.5 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.897e-05/0.004476, allocations: 25.7 kB / 379.5 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.299e-05/0.004489, allocations: 25.7 kB / 379.5 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.493e-05/0.004524, allocations: 67.03 kB / 379.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.004525, allocations: 0 / 379.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.499e-05/0.00459, allocations: 93.09 kB / 379.7 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.004616, allocations: 37.8 kB / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.004621, allocations: 0 / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.004638, allocations: 0 / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.849e-06/0.004643, allocations: 0 / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.004648, allocations: 0 / 379.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.111e-05/0.004659, allocations: 3.938 kB / 379.7 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.004664, allocations: 4 kB / 379.7 MB, free: 0.6406 MB / 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 9.983e-05/0.004764, allocations: 182.3 kB / 379.9 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-06/0.00477, allocations: 4 kB / 379.9 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.619e-05/0.004786, allocations: 3 kB / 379.9 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.004788, allocations: 4 kB / 379.9 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.004791, allocations: 3.938 kB / 379.9 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.004796, allocations: 3.938 kB / 379.9 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.533e-05/0.004852, allocations: 116.6 kB / 380 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.004855, allocations: 3.984 kB / 380 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.004855, allocations: 3.938 kB / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.004856, allocations: 0 / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.004862, allocations: 0 / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.004862, allocations: 0 / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.004863, allocations: 3.984 kB / 380 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.552e-05/0.004939, allocations: 139.8 kB / 380.2 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-06/0.004942, allocations: 0 / 380.2 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.004953, allocations: 0 / 380.2 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.011e-06/0.004959, allocations: 4 kB / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.057e-05/0.004969, allocations: 0 / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-06/0.004971, allocations: 0 / 380.2 MB, free: 96 kB / 346.7 MB Notification: Performance of sorting global known variables: time 3.607e-05/0.005007, allocations: 123.2 kB / 380.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005007, allocations: 0 / 380.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001416/0.005148, allocations: 27.86 kB / 380.3 MB, free: 15.95 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.0003041/0.005453, allocations: 204.2 kB / 380.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000154/0.005607, allocations: 126.5 kB / 380.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.005608, allocations: 0 / 380.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.694e-05/0.005635, allocations: 88.8 kB / 380.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001055/0.00574, allocations: 11.92 kB / 380.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001527/0.005893, allocations: 115 kB / 380.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.71e-05/0.00592, allocations: 51.36 kB / 380.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.388e-06/0.005924, allocations: 0 / 380.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.111e-05/0.005935, allocations: 8.5 kB / 380.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.005936, allocations: 4 kB / 380.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of Templates: time 0.002473/0.008409, allocations: 0.6779 MB / 381.6 MB, free: 14.6 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.2618134757503867]