Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001891/0.001891, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2376/0.2376, allocations: 46.89 MB / 361.1 MB, free: 4.648 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 87.86 kB / 0.4967 GB, free: 7.855 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3696, allocations: 65.98 MB / 0.5612 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001844/0.3714, allocations: 495.4 kB / 0.5616 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3729, allocations: 0.8706 MB / 0.5625 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.366e-05/0.3729, allocations: 0 / 0.5625 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.3729, allocations: 0 / 0.5625 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.3731, allocations: 11.92 kB / 0.5625 GB, free: 3.66 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0006452/0.3738, allocations: 54.39 kB / 0.5626 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.39e-05/0.3738, allocations: 7.922 kB / 0.5626 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.145e-05/0.3739, allocations: 4 kB / 0.5626 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.778e-05/0.3739, allocations: 4 kB / 0.5626 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.93e-05/0.374, allocations: 7.375 kB / 0.5626 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-06/0.374, allocations: 0 / 0.5626 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.3742, allocations: 55.95 kB / 0.5626 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-06/0.3742, allocations: 0 / 0.5626 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.217e-05/0.3742, allocations: 11.91 kB / 0.5626 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.3743, allocations: 47.73 kB / 0.5627 GB, free: 3.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3743, allocations: 0 / 0.5627 GB, free: 3.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3743, allocations: 0 / 0.5627 GB, free: 3.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3744, allocations: 0 / 0.5627 GB, free: 3.48 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.0004547/0.3748, allocations: 364.1 kB / 0.563 GB, free: 3.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3748, allocations: 12.03 kB / 0.563 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.3749, allocations: 0.9375 kB / 0.563 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.375, allocations: 160.4 kB / 0.5632 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.3751, allocations: 384 / 0.5632 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3751, allocations: 4.312 kB / 0.5632 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.756e-05/0.3752, allocations: 30.27 kB / 0.5632 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3752, allocations: 4.125 kB / 0.5632 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3752, allocations: 3.938 kB / 0.5632 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3752, allocations: 4 kB / 0.5632 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.232e-05/0.3752, allocations: 11.97 kB / 0.5633 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.3754, allocations: 145.7 kB / 0.5634 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.039e-05/0.3754, allocations: 18.61 kB / 0.5634 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.701e-05/0.3755, allocations: 8.797 kB / 0.5634 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-06/0.3755, allocations: 0 / 0.5634 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/0.3755, allocations: 56.27 kB / 0.5635 GB, free: 2.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3755, allocations: 4 kB / 0.5635 GB, free: 2.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001941/0.3757, allocations: 71.39 kB / 0.5635 GB, free: 2.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.3758, allocations: 81.11 kB / 0.5636 GB, free: 2.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3759, allocations: 93.8 kB / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.376, allocations: 25.7 kB / 0.5637 GB, free: 2.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.376, allocations: 80.14 kB / 0.5638 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.376, allocations: 3.984 kB / 0.5638 GB, free: 2.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.3761, allocations: 17.97 kB / 0.5638 GB, free: 2.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3762, allocations: 314.8 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.3762, allocations: 3.938 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.795e-06/0.3763, allocations: 4 kB / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.12e-05/0.3763, allocations: 60.27 kB / 0.5642 GB, free: 1.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.3763, allocations: 0 / 0.5642 GB, free: 1.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.038e-05/0.3764, allocations: 59.39 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.3764, allocations: 33.7 kB / 0.5643 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.3764, allocations: 8.031 kB / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.3764, allocations: 0 / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3764, allocations: 0 / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.3765, allocations: 0 / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.291e-05/0.3765, allocations: 12 kB / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.3765, allocations: 0 / 0.5643 GB, free: 1.547 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.423e-05/0.3766, allocations: 139.5 kB / 0.5644 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-06/0.3766, allocations: 4 kB / 0.5644 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.3766, allocations: 7.062 kB / 0.5644 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.3766, allocations: 4 kB / 0.5645 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3766, allocations: 0 / 0.5645 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3766, allocations: 0 / 0.5645 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.3767, allocations: 145.6 kB / 0.5646 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3767, allocations: 7.984 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3767, allocations: 0 / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3767, allocations: 0 / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3767, allocations: 3.938 kB / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.3767, allocations: 0 / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3767, allocations: 0 / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.3769, allocations: 94.83 kB / 0.5647 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.3769, allocations: 81.06 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.3769, allocations: 7.938 kB / 0.5648 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-06/0.3769, allocations: 0 / 0.5648 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.3769, allocations: 4 kB / 0.5648 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.3769, allocations: 0 / 0.5648 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.027e-05/0.377, allocations: 79.22 kB / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.377, allocations: 4.125 kB / 0.5649 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.3772, allocations: 19.94 kB / 0.5649 GB, free: 0.8477 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.0004213/0.3776, allocations: 191.4 kB / 0.5651 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3777, allocations: 59.41 kB / 0.5651 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3777, allocations: 0 / 0.5651 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.152e-05/0.3778, allocations: 59.39 kB / 0.5652 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.3779, allocations: 0 / 0.5652 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.3781, allocations: 81 kB / 0.5653 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3785, allocations: 0.673 MB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.747e-06/0.3785, allocations: 4 kB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.205e-05/0.3785, allocations: 7.438 kB / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3785, allocations: 0 / 0.5659 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Templates: time 0.003302/0.3818, allocations: 0.6604 MB / 0.5666 GB, free: 15.06 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.150648249313235]