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.001816/0.001816, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 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.001356/0.001356, allocations: 205.5 kB / 25.12 MB, free: 3.59 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.485/1.485, allocations: 230.4 MB / 258.7 MB, free: 8.098 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.2365/0.2365, allocations: 46.94 MB / 362 MB, free: 4.25 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-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.002373/0.002373, allocations: 79.86 kB / 0.4978 GB, free: 7.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3965, allocations: 66.08 MB / 0.5623 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001696/0.3981, allocations: 481.1 kB / 0.5628 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.3996, allocations: 0.8863 MB / 0.5636 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.498e-05/0.3996, allocations: 0 / 0.5636 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.3996, allocations: 0 / 0.5636 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.3998, allocations: 11.92 kB / 0.5636 GB, free: 2.926 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.0006598/0.4005, allocations: 60.36 kB / 0.5637 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.389e-05/0.4006, allocations: 7.984 kB / 0.5637 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.044e-05/0.4006, allocations: 0 / 0.5637 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.011e-05/0.4006, allocations: 4 kB / 0.5637 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.4007, allocations: 3.984 kB / 0.5637 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.4007, allocations: 0 / 0.5637 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.4008, allocations: 55.95 kB / 0.5638 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.4009, allocations: 4 kB / 0.5638 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.4009, allocations: 7.938 kB / 0.5638 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.401, allocations: 47.72 kB / 0.5638 GB, free: 2.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.401, allocations: 4 kB / 0.5638 GB, free: 2.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.401, allocations: 0 / 0.5638 GB, free: 2.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.401, allocations: 0 / 0.5638 GB, free: 2.746 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.0003988/0.4014, allocations: 282.7 kB / 0.5641 GB, free: 2.438 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4015, allocations: 8.031 kB / 0.5641 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.099e-05/0.4015, allocations: 0.9375 kB / 0.5641 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.4016, allocations: 114.5 kB / 0.5642 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.4017, allocations: 384 / 0.5642 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.4017, allocations: 384 / 0.5642 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.4018, allocations: 59.95 kB / 0.5643 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4018, allocations: 192 / 0.5643 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.4018, allocations: 3.938 kB / 0.5643 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4018, allocations: 0 / 0.5643 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.445e-05/0.4019, allocations: 37.58 kB / 0.5643 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.402, allocations: 120.8 kB / 0.5644 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.007e-05/0.4021, allocations: 52.25 kB / 0.5645 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.368e-05/0.4021, allocations: 30.56 kB / 0.5645 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.667e-06/0.4021, allocations: 0 / 0.5645 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.198e-05/0.4022, allocations: 60.27 kB / 0.5646 GB, free: 1.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.4022, allocations: 0 / 0.5646 GB, free: 1.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002187/0.4024, allocations: 122.8 kB / 0.5647 GB, free: 1.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.4025, allocations: 81.23 kB / 0.5648 GB, free: 1.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.367e-05/0.4025, allocations: 97.8 kB / 0.5648 GB, free: 1.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.4026, allocations: 25.7 kB / 0.5649 GB, free: 1.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.4026, allocations: 84.14 kB / 0.565 GB, free: 1.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.4026, allocations: 0 / 0.565 GB, free: 1.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.4026, allocations: 9.719 kB / 0.565 GB, free: 1.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4028, allocations: 314.8 kB / 0.5653 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.601e-05/0.4028, allocations: 29.7 kB / 0.5653 GB, free: 1.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.117e-05/0.4028, allocations: 33.83 kB / 0.5653 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.755e-05/0.4029, allocations: 60.27 kB / 0.5654 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4029, allocations: 0 / 0.5654 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.994e-05/0.403, allocations: 89.09 kB / 0.5655 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.403, allocations: 33.7 kB / 0.5655 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.403, allocations: 3.938 kB / 0.5655 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.403, allocations: 3.984 kB / 0.5655 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.403, allocations: 3.938 kB / 0.5655 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.403, allocations: 0 / 0.5655 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.4031, allocations: 8.094 kB / 0.5655 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.4031, allocations: 0 / 0.5655 GB, free: 0.7266 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.0001041/0.4032, allocations: 140.4 kB / 0.5657 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.4032, allocations: 0 / 0.5657 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.645e-05/0.4032, allocations: 6.938 kB / 0.5657 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.4032, allocations: 0 / 0.5657 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.4032, allocations: 8 kB / 0.5657 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4032, allocations: 0 / 0.5657 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.4033, allocations: 112.8 kB / 0.5658 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4033, allocations: 7.984 kB / 0.5658 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.4033, allocations: 0 / 0.5658 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.4033, allocations: 7.938 kB / 0.5658 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.4034, allocations: 3.938 kB / 0.5658 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4034, allocations: 0 / 0.5658 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4034, allocations: 0 / 0.5658 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.4035, allocations: 120.5 kB / 0.5659 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-06/0.4035, allocations: 7.891 kB / 0.5659 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.4035, allocations: 11.91 kB / 0.5659 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-06/0.4035, allocations: 4 kB / 0.5659 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.4035, allocations: 0 / 0.5659 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.4035, allocations: 0 / 0.5659 GB, free: 220 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.83e-05/0.4036, allocations: 75.28 kB / 0.566 GB, free: 144 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4036, allocations: 0 / 0.566 GB, free: 144 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.4038, allocations: 23.92 kB / 0.566 GB, free: 120 kB / 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.0004745/0.4043, allocations: 178.8 kB / 0.5662 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.4044, allocations: 118.8 kB / 0.5663 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4044, allocations: 0 / 0.5663 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.257e-05/0.4045, allocations: 81.11 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.4046, allocations: 4 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002319/0.4049, allocations: 114.6 kB / 0.5665 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.4052, allocations: 0.6729 MB / 0.5672 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.863e-06/0.4052, allocations: 0 / 0.5672 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.4052, allocations: 7.438 kB / 0.5672 GB, free: 14.86 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4052, allocations: 128 / 0.5672 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Templates: time 0.003158/0.4083, allocations: 0.6609 MB / 0.5678 GB, free: 14.2 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 gbode -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/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-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.126934087835252]