Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001744/0.001744, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.001933/0.001933, allocations: 168.6 kB / 24.5 MB, free: 3.453 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.463/1.463, allocations: 177.2 MB / 204.9 MB, free: 9.051 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2079/0.2079, allocations: 32.81 MB / 294.1 MB, free: 64 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 63.89 kB / 440.5 MB, free: 9.5 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3784, allocations: 65.44 MB / 0.4941 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001494/0.3799, allocations: 499.2 kB / 0.4946 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.381, allocations: 0.8779 MB / 0.4955 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.645e-05/0.381, allocations: 0 / 0.4955 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.381, allocations: 0 / 0.4955 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.3812, allocations: 3.188 kB / 0.4955 GB, free: 30.48 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0006236/0.3818, allocations: 65.86 kB / 0.4955 GB, free: 30.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.213e-05/0.3819, allocations: 11.22 kB / 0.4955 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.93e-05/0.3819, allocations: 0 / 0.4955 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.3819, allocations: 3.062 kB / 0.4955 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.597e-05/0.382, allocations: 3.984 kB / 0.4955 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.382, allocations: 0 / 0.4955 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.3821, allocations: 62.06 kB / 0.4956 GB, free: 30.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.415e-06/0.3821, allocations: 0 / 0.4956 GB, free: 30.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.837e-05/0.3821, allocations: 3.281 kB / 0.4956 GB, free: 30.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3823, allocations: 47.89 kB / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3823, allocations: 0 / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3823, allocations: 4 kB / 0.4956 GB, free: 30.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.3823, allocations: 0 / 0.4956 GB, free: 30.39 MB / 446.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.0002726/0.3826, allocations: 279.8 kB / 0.4959 GB, free: 30.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.3826, allocations: 9.156 kB / 0.4959 GB, free: 30.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.3826, allocations: 3.844 kB / 0.4959 GB, free: 30.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.262e-05/0.3827, allocations: 102.5 kB / 0.496 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-06/0.3827, allocations: 384 / 0.496 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3827, allocations: 3.688 kB / 0.496 GB, free: 29.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.919e-05/0.3828, allocations: 62.48 kB / 0.4961 GB, free: 29.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3828, allocations: 192 / 0.4961 GB, free: 29.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.3828, allocations: 7.938 kB / 0.4961 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.3828, allocations: 0 / 0.4961 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.165e-05/0.3829, allocations: 32.61 kB / 0.4961 GB, free: 29.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.272e-05/0.3829, allocations: 97.33 kB / 0.4962 GB, free: 29.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.336e-05/0.383, allocations: 50.67 kB / 0.4963 GB, free: 29.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.717e-05/0.383, allocations: 33.59 kB / 0.4963 GB, free: 29.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-06/0.383, allocations: 0 / 0.4963 GB, free: 29.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.383, allocations: 56.27 kB / 0.4964 GB, free: 29.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.383, allocations: 2.906 kB / 0.4964 GB, free: 29.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.3832, allocations: 131 kB / 0.4965 GB, free: 29.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.3832, allocations: 81.23 kB / 0.4966 GB, free: 29.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.523e-05/0.3833, allocations: 89.86 kB / 0.4966 GB, free: 29.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-06/0.3833, allocations: 28.55 kB / 0.4967 GB, free: 29.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.126e-05/0.3833, allocations: 87.64 kB / 0.4968 GB, free: 29.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.3833, allocations: 0 / 0.4968 GB, free: 29.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.3833, allocations: 12.91 kB / 0.4968 GB, free: 29.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.42e-05/0.3834, allocations: 314.8 kB / 0.4971 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.431e-05/0.3834, allocations: 28.55 kB / 0.4971 GB, free: 28.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-06/0.3834, allocations: 25.7 kB / 0.4971 GB, free: 28.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.926e-05/0.3834, allocations: 69.55 kB / 0.4972 GB, free: 28.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3834, allocations: 0 / 0.4972 GB, free: 28.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.424e-05/0.3835, allocations: 95.23 kB / 0.4973 GB, free: 28.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3835, allocations: 31.8 kB / 0.4973 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.3835, allocations: 0 / 0.4973 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3835, allocations: 7.266 kB / 0.4973 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3835, allocations: 2.969 kB / 0.4973 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.3835, allocations: 0 / 0.4973 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.3835, allocations: 0 / 0.4973 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.3835, allocations: 0 / 0.4973 GB, free: 28.5 MB / 446.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 5.294e-05/0.3836, allocations: 138.3 kB / 0.4974 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-06/0.3836, allocations: 3.094 kB / 0.4975 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.755e-06/0.3836, allocations: 3 kB / 0.4975 GB, free: 28.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3836, allocations: 3.938 kB / 0.4975 GB, free: 28.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.3836, allocations: 3.562 kB / 0.4975 GB, free: 28.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.3836, allocations: 0 / 0.4975 GB, free: 28.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.91e-05/0.3837, allocations: 96.39 kB / 0.4976 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3837, allocations: 0 / 0.4976 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3837, allocations: 0 / 0.4976 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.3837, allocations: 0 / 0.4976 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.3837, allocations: 7.25 kB / 0.4976 GB, free: 28.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.3837, allocations: 4 kB / 0.4976 GB, free: 28.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3837, allocations: 3.938 kB / 0.4976 GB, free: 28.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.049e-05/0.3837, allocations: 120.2 kB / 0.4977 GB, free: 28.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-06/0.3837, allocations: 7.422 kB / 0.4977 GB, free: 28.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.3837, allocations: 3.094 kB / 0.4977 GB, free: 28.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.3838, allocations: 0 / 0.4977 GB, free: 28.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.3838, allocations: 3.938 kB / 0.4977 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3838, allocations: 0 / 0.4977 GB, free: 28.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.347e-05/0.3838, allocations: 78.34 kB / 0.4978 GB, free: 28 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3838, allocations: 4.062 kB / 0.4978 GB, free: 28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002054/0.384, allocations: 20.34 kB / 0.4978 GB, free: 27.99 MB / 446.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.0003754/0.3844, allocations: 203.9 kB / 0.498 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.321e-05/0.3845, allocations: 116.3 kB / 0.4981 GB, free: 27.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3845, allocations: 3.094 kB / 0.4981 GB, free: 27.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.25e-05/0.3845, allocations: 80.17 kB / 0.4982 GB, free: 27.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.3846, allocations: 3.094 kB / 0.4982 GB, free: 27.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001594/0.3848, allocations: 117.2 kB / 0.4983 GB, free: 27.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.324e-05/0.3848, allocations: 54.48 kB / 0.4983 GB, free: 27.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.3848, allocations: 0 / 0.4983 GB, free: 27.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.05e-05/0.3848, allocations: 16.56 kB / 0.4984 GB, free: 27.41 MB / 446.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3848, allocations: 3.125 kB / 0.4984 GB, free: 27.41 MB / 446.1 MB Notification: Performance of Templates: time 0.002871/0.3877, allocations: 0.6411 MB / 0.499 GB, free: 27.32 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.01901732198894]