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.001787/0.001787, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002168/0.002168, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.567/1.567, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.2215/0.2215, allocations: 44.94 MB / 358.8 MB, free: 6.027 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.002102/0.002102, allocations: 71.89 kB / 0.4935 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3995, allocations: 65.47 MB / 0.5574 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001729/0.4013, allocations: 481 kB / 0.5579 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.4028, allocations: 0.8708 MB / 0.5587 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.176e-05/0.4029, allocations: 4 kB / 0.5587 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.793e-05/0.4029, allocations: 0 / 0.5587 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.4032, allocations: 7.938 kB / 0.5588 GB, free: 6.082 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.0007852/0.404, allocations: 69.11 kB / 0.5588 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.993e-05/0.4041, allocations: 0 / 0.5588 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.225e-05/0.4041, allocations: 7.984 kB / 0.5588 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.571e-05/0.4041, allocations: 3.984 kB / 0.5588 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.849e-05/0.4042, allocations: 0 / 0.5588 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.627e-06/0.4042, allocations: 0 / 0.5588 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.4044, allocations: 55.95 kB / 0.5589 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.4044, allocations: 4 kB / 0.5589 GB, free: 5.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.446e-05/0.4044, allocations: 4 kB / 0.5589 GB, free: 5.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.4046, allocations: 55.66 kB / 0.5589 GB, free: 5.895 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4046, allocations: 0 / 0.5589 GB, free: 5.895 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4046, allocations: 0 / 0.5589 GB, free: 5.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.4046, allocations: 3.938 kB / 0.5589 GB, free: 5.891 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.0004627/0.4051, allocations: 282.5 kB / 0.5592 GB, free: 5.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4051, allocations: 8.031 kB / 0.5592 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.845e-05/0.4051, allocations: 4.938 kB / 0.5592 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.4053, allocations: 106.5 kB / 0.5593 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4053, allocations: 384 / 0.5593 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.4053, allocations: 8.359 kB / 0.5593 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.4055, allocations: 55.97 kB / 0.5594 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4055, allocations: 192 / 0.5594 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.4055, allocations: 3.938 kB / 0.5594 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.4055, allocations: 0 / 0.5594 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.116e-05/0.4055, allocations: 29.7 kB / 0.5594 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.4057, allocations: 93.33 kB / 0.5595 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.962e-05/0.4057, allocations: 56.23 kB / 0.5596 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.591e-05/0.4058, allocations: 30.56 kB / 0.5596 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.4058, allocations: 4.062 kB / 0.5596 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.4058, allocations: 60.27 kB / 0.5597 GB, free: 5.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.4058, allocations: 3.938 kB / 0.5597 GB, free: 5.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002414/0.4061, allocations: 126.7 kB / 0.5598 GB, free: 4.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.4062, allocations: 81.11 kB / 0.5599 GB, free: 4.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.4063, allocations: 89.86 kB / 0.5599 GB, free: 4.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.4063, allocations: 25.7 kB / 0.56 GB, free: 4.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.569e-05/0.4063, allocations: 80.14 kB / 0.56 GB, free: 4.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.4063, allocations: 0 / 0.56 GB, free: 4.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.4064, allocations: 17.72 kB / 0.5601 GB, free: 4.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.4066, allocations: 315.1 kB / 0.5604 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.105e-05/0.4066, allocations: 33.7 kB / 0.5604 GB, free: 4.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.39e-05/0.4066, allocations: 25.7 kB / 0.5604 GB, free: 4.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.226e-05/0.4067, allocations: 60.27 kB / 0.5605 GB, free: 4.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4067, allocations: 0 / 0.5605 GB, free: 4.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001012/0.4068, allocations: 97.03 kB / 0.5606 GB, free: 3.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.4068, allocations: 29.7 kB / 0.5606 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4068, allocations: 4 kB / 0.5606 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.4068, allocations: 3.938 kB / 0.5606 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.4068, allocations: 0 / 0.5606 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.4069, allocations: 4.094 kB / 0.5606 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.403e-05/0.4069, allocations: 0 / 0.5606 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.4069, allocations: 0 / 0.5606 GB, free: 3.914 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.0001128/0.407, allocations: 135.5 kB / 0.5607 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.407, allocations: 3.984 kB / 0.5607 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.174e-05/0.407, allocations: 3 kB / 0.5607 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.407, allocations: 7.938 kB / 0.5608 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.407, allocations: 0 / 0.5608 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.407, allocations: 3.938 kB / 0.5608 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.044e-05/0.4071, allocations: 97.33 kB / 0.5609 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.4071, allocations: 8 kB / 0.5609 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4071, allocations: 0 / 0.5609 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4071, allocations: 4 kB / 0.5609 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.4071, allocations: 0 / 0.5609 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.4071, allocations: 0 / 0.5609 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4071, allocations: 7.922 kB / 0.5609 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.4073, allocations: 116.5 kB / 0.561 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.001e-05/0.4073, allocations: 7.938 kB / 0.561 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.4073, allocations: 7.938 kB / 0.561 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.815e-06/0.4073, allocations: 0 / 0.561 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.4073, allocations: 7.922 kB / 0.561 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.4073, allocations: 4.031 kB / 0.561 GB, free: 3.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.4074, allocations: 79.28 kB / 0.5611 GB, free: 3.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4074, allocations: 0 / 0.5611 GB, free: 3.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002146/0.4076, allocations: 15.94 kB / 0.5611 GB, free: 3.336 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.0005384/0.4081, allocations: 192.8 kB / 0.5613 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.4083, allocations: 110.8 kB / 0.5614 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4083, allocations: 0 / 0.5614 GB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.413e-05/0.4084, allocations: 85.09 kB / 0.5615 GB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.4085, allocations: 10.28 kB / 0.5615 GB, free: 2.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000276/0.4088, allocations: 110.8 kB / 0.5616 GB, free: 2.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.334e-05/0.4088, allocations: 59.34 kB / 0.5616 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.4088, allocations: 0 / 0.5616 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.4089, allocations: 7.438 kB / 0.5616 GB, free: 2.703 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4089, allocations: 0 / 0.5616 GB, free: 2.703 MB / 398.1 MB Notification: Performance of Templates: time 0.003538/0.4124, allocations: 0.6464 MB / 0.5623 GB, free: 2.062 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/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: 5.4474899638444185]