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.001709/0.001709, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002128/0.002128, allocations: 209 kB / 24.48 MB, free: 3.938 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.467/1.467, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.232/0.232, allocations: 46.97 MB / 361.6 MB, free: 4.113 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.002077/0.002077, allocations: 63.89 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3142, allocations: 66.04 MB / 0.5618 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001702/0.3159, allocations: 497 kB / 0.5623 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.3173, allocations: 0.863 MB / 0.5631 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.73e-05/0.3174, allocations: 0 / 0.5631 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3174, allocations: 0 / 0.5631 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002089/0.3176, allocations: 15.92 kB / 0.5631 GB, free: 2.758 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.0006713/0.3183, allocations: 57.5 kB / 0.5632 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.3183, allocations: 3.938 kB / 0.5632 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.414e-05/0.3184, allocations: 4 kB / 0.5632 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.032e-05/0.3184, allocations: 4 kB / 0.5632 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.3184, allocations: 3.938 kB / 0.5632 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.3184, allocations: 4 kB / 0.5632 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.3186, allocations: 55.94 kB / 0.5633 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-06/0.3186, allocations: 0 / 0.5633 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.3186, allocations: 11.92 kB / 0.5633 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.3188, allocations: 43.73 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3188, allocations: 4 kB / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3188, allocations: 0 / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.3188, allocations: 0 / 0.5633 GB, free: 2.578 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.0003916/0.3192, allocations: 286.6 kB / 0.5636 GB, free: 2.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3192, allocations: 8.031 kB / 0.5636 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.3192, allocations: 0.9375 kB / 0.5636 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.3193, allocations: 110.5 kB / 0.5637 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3194, allocations: 384 / 0.5637 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-06/0.3194, allocations: 384 / 0.5637 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.3195, allocations: 67.89 kB / 0.5638 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.3195, allocations: 192 / 0.5638 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3195, allocations: 3.938 kB / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3195, allocations: 0 / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.192e-05/0.3195, allocations: 29.7 kB / 0.5638 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000122/0.3197, allocations: 93.33 kB / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.471e-05/0.3197, allocations: 44.31 kB / 0.5639 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.267e-05/0.3198, allocations: 42.55 kB / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.3198, allocations: 3.938 kB / 0.564 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.699e-05/0.3198, allocations: 60.33 kB / 0.564 GB, free: 1.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3198, allocations: 0 / 0.564 GB, free: 1.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002002/0.32, allocations: 118.7 kB / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.3201, allocations: 77.11 kB / 0.5642 GB, free: 1.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.241e-05/0.3202, allocations: 97.86 kB / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.3202, allocations: 25.7 kB / 0.5643 GB, free: 1.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.707e-05/0.3202, allocations: 80.14 kB / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.3202, allocations: 256 / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.3203, allocations: 17.72 kB / 0.5644 GB, free: 1.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3204, allocations: 310.8 kB / 0.5647 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.9e-05/0.3205, allocations: 33.69 kB / 0.5648 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.639e-05/0.3205, allocations: 37.64 kB / 0.5648 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.642e-05/0.3205, allocations: 60.27 kB / 0.5648 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3205, allocations: 0 / 0.5648 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.814e-05/0.3206, allocations: 85.11 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.3207, allocations: 37.69 kB / 0.565 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.3207, allocations: 3.938 kB / 0.565 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.3207, allocations: 8.031 kB / 0.565 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3207, allocations: 4 kB / 0.565 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.3207, allocations: 0 / 0.565 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.604e-05/0.3207, allocations: 0 / 0.565 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3207, allocations: 0 / 0.565 GB, free: 0.5938 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.0001002/0.3208, allocations: 139.5 kB / 0.5651 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.3208, allocations: 0 / 0.5651 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.202e-05/0.3208, allocations: 10.92 kB / 0.5651 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3208, allocations: 3.938 kB / 0.5651 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3208, allocations: 0 / 0.5651 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3208, allocations: 4 kB / 0.5651 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.29e-05/0.3209, allocations: 97.33 kB / 0.5652 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3209, allocations: 0 / 0.5652 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3209, allocations: 0 / 0.5652 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.3209, allocations: 0 / 0.5652 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.3209, allocations: 4 kB / 0.5652 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3209, allocations: 0 / 0.5652 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3209, allocations: 3.938 kB / 0.5652 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.3211, allocations: 116.5 kB / 0.5653 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-06/0.3211, allocations: 7.953 kB / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.3211, allocations: 4.031 kB / 0.5654 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.3211, allocations: 7.984 kB / 0.5654 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.619e-05/0.3211, allocations: 7.922 kB / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-06/0.3211, allocations: 0 / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.465e-05/0.3212, allocations: 75.28 kB / 0.5654 GB, free: 44 kB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3212, allocations: 0 / 0.5654 GB, free: 44 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.3214, allocations: 23.88 kB / 0.5655 GB, free: 20 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.0005091/0.3219, allocations: 197.5 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.322, allocations: 114.8 kB / 0.5658 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.322, allocations: 4 kB / 0.5658 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.3221, allocations: 81.17 kB / 0.5658 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.3222, allocations: 7.984 kB / 0.5658 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.3225, allocations: 136.4 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.395e-05/0.3225, allocations: 55.36 kB / 0.566 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.359e-05/0.3225, allocations: 7.438 kB / 0.566 GB, free: 15.35 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3225, allocations: 0 / 0.566 GB, free: 15.35 MB / 414.1 MB Notification: Performance of Templates: time 0.002523/0.3251, allocations: 0.8277 MB / 0.5668 GB, free: 14.53 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: 7.681005589198321]