Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001199/0.001199, allocations: 106.5 kB / 21.2 MB, free: 0.6406 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.001379/0.001379, allocations: 212.6 kB / 24.49 MB, free: 3.934 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.486/1.486, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2478/0.2478, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 63.89 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3623, allocations: 66.04 MB / 0.5618 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001724/0.3641, allocations: 480.1 kB / 0.5623 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.3655, allocations: 0.8746 MB / 0.5631 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.3655, allocations: 0 / 0.5631 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.3655, allocations: 0 / 0.5631 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002159/0.3658, allocations: 7.938 kB / 0.5631 GB, free: 2.801 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0006892/0.3665, allocations: 70.45 kB / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.687e-05/0.3665, allocations: 3.938 kB / 0.5632 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.735e-05/0.3666, allocations: 8 kB / 0.5632 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.864e-05/0.3666, allocations: 0 / 0.5632 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.75e-05/0.3667, allocations: 3.984 kB / 0.5632 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.377e-06/0.3667, allocations: 0 / 0.5632 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.3668, allocations: 59.94 kB / 0.5633 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.3668, allocations: 4 kB / 0.5633 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.248e-05/0.3668, allocations: 4 kB / 0.5633 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.367, allocations: 51.67 kB / 0.5633 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.367, allocations: 0 / 0.5633 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.367, allocations: 0 / 0.5633 GB, free: 2.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.367, allocations: 0 / 0.5633 GB, free: 2.605 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.0003799/0.3674, allocations: 282.5 kB / 0.5636 GB, free: 2.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3674, allocations: 8.031 kB / 0.5636 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.3675, allocations: 0.9375 kB / 0.5636 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.3676, allocations: 106.5 kB / 0.5637 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3676, allocations: 384 / 0.5637 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.3676, allocations: 384 / 0.5637 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.3677, allocations: 67.89 kB / 0.5638 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3677, allocations: 192 / 0.5638 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.3677, allocations: 3.938 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3677, allocations: 0 / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.016e-05/0.3678, allocations: 37.64 kB / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001119/0.3679, allocations: 93.33 kB / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.053e-05/0.3679, allocations: 48.31 kB / 0.5639 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.484e-05/0.368, allocations: 34.5 kB / 0.564 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.368, allocations: 4.047 kB / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/0.368, allocations: 60.27 kB / 0.564 GB, free: 1.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.015e-06/0.368, allocations: 3.984 kB / 0.564 GB, free: 1.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002093/0.3683, allocations: 118.8 kB / 0.5642 GB, free: 1.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.3683, allocations: 81.09 kB / 0.5642 GB, free: 1.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.061e-05/0.3684, allocations: 97.98 kB / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.3684, allocations: 29.64 kB / 0.5643 GB, free: 1.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.083e-05/0.3684, allocations: 84.12 kB / 0.5644 GB, free: 1.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.3685, allocations: 0 / 0.5644 GB, free: 1.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.3685, allocations: 13.72 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3686, allocations: 314.8 kB / 0.5647 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.607e-05/0.3687, allocations: 29.7 kB / 0.5648 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.307e-05/0.3687, allocations: 33.62 kB / 0.5648 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.907e-05/0.3687, allocations: 60.27 kB / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3687, allocations: 192 / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.5e-05/0.3688, allocations: 93.11 kB / 0.565 GB, free: 0.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.3689, allocations: 33.69 kB / 0.565 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3689, allocations: 0 / 0.565 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3689, allocations: 4 kB / 0.565 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.484e-06/0.3689, allocations: 3.938 kB / 0.565 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3689, allocations: 0 / 0.565 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.373e-05/0.3689, allocations: 0 / 0.565 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3689, allocations: 0 / 0.565 GB, free: 0.6211 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 9.325e-05/0.369, allocations: 135.5 kB / 0.5651 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-06/0.369, allocations: 3.969 kB / 0.5651 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.989e-06/0.369, allocations: 7 kB / 0.5651 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.369, allocations: 3.938 kB / 0.5651 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.369, allocations: 0 / 0.5651 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-06/0.369, allocations: 7.984 kB / 0.5651 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.369, allocations: 0 / 0.5651 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.369, allocations: 0 / 0.5651 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.3691, allocations: 0 / 0.5651 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001476/0.3692, allocations: 223.8 kB / 0.5654 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001861/0.3694, allocations: 274.1 kB / 0.5656 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.465e-05/0.3694, allocations: 41.75 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.445e-05/0.3695, allocations: 75.28 kB / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Backend: time 3e-07/0.3695, allocations: 0 / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.3702, allocations: 257.8 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004453/0.3706, allocations: 0.5795 MB / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of Templates: time 0.00323/0.3738, allocations: 0.6731 MB / 0.5672 GB, free: 14.23 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 4.920326231003855]