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.008548/0.008548, allocations: 109.2 kB / 21.98 MB, free: 5.184 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.002107/0.002107, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.422/1.422, allocations: 230.5 MB / 258.9 MB, free: 8.016 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.2188/0.2188, allocations: 46.93 MB / 362.3 MB, free: 4.211 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.002402/0.002402, allocations: 79.88 kB / 0.4982 GB, free: 7.301 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2977, allocations: 66.07 MB / 0.5627 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001694/0.2994, allocations: 0.4886 MB / 0.5632 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.3007, allocations: 0.8746 MB / 0.564 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.3008, allocations: 0 / 0.564 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.259e-05/0.3008, allocations: 0 / 0.564 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.3009, allocations: 7.938 kB / 0.564 GB, free: 2.91 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.0006619/0.3016, allocations: 55.86 kB / 0.5641 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.335e-05/0.3017, allocations: 3.938 kB / 0.5641 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.173e-05/0.3017, allocations: 8 kB / 0.5641 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.3017, allocations: 4 kB / 0.5641 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.736e-05/0.3018, allocations: 3.984 kB / 0.5641 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-06/0.3018, allocations: 0 / 0.5641 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.3019, allocations: 63.94 kB / 0.5642 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-06/0.302, allocations: 0 / 0.5642 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.302, allocations: 3.938 kB / 0.5642 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.3021, allocations: 51.72 kB / 0.5642 GB, free: 2.723 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3021, allocations: 0 / 0.5642 GB, free: 2.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3021, allocations: 0 / 0.5642 GB, free: 2.723 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3021, allocations: 0 / 0.5642 GB, free: 2.723 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.000371/0.3025, allocations: 286.5 kB / 0.5645 GB, free: 2.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3025, allocations: 12.03 kB / 0.5645 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.3025, allocations: 0.9375 kB / 0.5645 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.3027, allocations: 102.5 kB / 0.5646 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.3027, allocations: 8.312 kB / 0.5646 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.3027, allocations: 4.312 kB / 0.5646 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.69e-05/0.3028, allocations: 26.27 kB / 0.5646 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3028, allocations: 192 / 0.5646 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3028, allocations: 11.94 kB / 0.5647 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3028, allocations: 7.922 kB / 0.5647 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.621e-05/0.3028, allocations: 3.984 kB / 0.5647 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.3029, allocations: 120.8 kB / 0.5648 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.14e-05/0.303, allocations: 14.58 kB / 0.5648 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.724e-05/0.303, allocations: 8.797 kB / 0.5648 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-06/0.303, allocations: 0 / 0.5648 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.614e-05/0.3031, allocations: 72.33 kB / 0.5649 GB, free: 1.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3031, allocations: 0 / 0.5649 GB, free: 1.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001744/0.3033, allocations: 67.33 kB / 0.5649 GB, free: 1.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.3033, allocations: 77.11 kB / 0.565 GB, free: 1.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.862e-05/0.3034, allocations: 89.86 kB / 0.5651 GB, free: 1.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.3034, allocations: 29.7 kB / 0.5651 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.56e-05/0.3034, allocations: 80.14 kB / 0.5652 GB, free: 1.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.3035, allocations: 4.25 kB / 0.5652 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.3035, allocations: 17.7 kB / 0.5652 GB, free: 1.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3036, allocations: 314.8 kB / 0.5655 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.3037, allocations: 3.938 kB / 0.5655 GB, free: 1.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-06/0.3037, allocations: 0 / 0.5655 GB, free: 1.191 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.852e-05/0.3037, allocations: 60.27 kB / 0.5656 GB, free: 1.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3037, allocations: 0 / 0.5656 GB, free: 1.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.598e-05/0.3038, allocations: 67.39 kB / 0.5657 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.3038, allocations: 33.8 kB / 0.5657 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3038, allocations: 3.938 kB / 0.5657 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3038, allocations: 4 kB / 0.5657 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.3038, allocations: 0 / 0.5657 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3039, allocations: 0 / 0.5657 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.3039, allocations: 0 / 0.5657 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.3039, allocations: 0 / 0.5657 GB, free: 0.9922 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.0001013/0.304, allocations: 140.4 kB / 0.5658 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-06/0.304, allocations: 3.984 kB / 0.5658 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.086e-05/0.304, allocations: 10.94 kB / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-06/0.304, allocations: 0 / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.304, allocations: 0 / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.304, allocations: 0 / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.953e-05/0.3041, allocations: 120.8 kB / 0.566 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3041, allocations: 0 / 0.566 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-06/0.3041, allocations: 7.922 kB / 0.566 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3041, allocations: 3.938 kB / 0.566 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3041, allocations: 7.938 kB / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3041, allocations: 0 / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3041, allocations: 0 / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.3042, allocations: 90.84 kB / 0.5661 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-06/0.3042, allocations: 7.938 kB / 0.5661 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.3042, allocations: 3.938 kB / 0.5661 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.3042, allocations: 0 / 0.5661 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.3043, allocations: 4 kB / 0.5661 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.3043, allocations: 0 / 0.5661 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.644e-05/0.3043, allocations: 83.25 kB / 0.5662 GB, free: 444 kB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3043, allocations: 0 / 0.5662 GB, free: 444 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.3045, allocations: 19.94 kB / 0.5662 GB, free: 424 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.0004255/0.305, allocations: 188.1 kB / 0.5664 GB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.483e-05/0.3051, allocations: 59.41 kB / 0.5664 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.3051, allocations: 0 / 0.5664 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.3051, allocations: 55.41 kB / 0.5665 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.3052, allocations: 5.859 kB / 0.5665 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002116/0.3054, allocations: 114.8 kB / 0.5666 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.3057, allocations: 0.669 MB / 0.5672 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.268e-05/0.3057, allocations: 11.44 kB / 0.5672 GB, free: 15.25 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3057, allocations: 0 / 0.5672 GB, free: 15.25 MB / 414.1 MB Notification: Performance of Templates: time 0.002474/0.3082, allocations: 0.8272 MB / 0.568 GB, free: 14.43 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 -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: 7.620813666144386]