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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.001109, allocations: 176.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008757/0.0008757, allocations: 89.95 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3367/0.3367, allocations: 44.21 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 11.98 kB / 459.9 MB, free: 1.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3508, allocations: 61.9 MB / 0.5095 GB, free: 37.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.4668, allocations: 85.69 MB / 0.5932 GB, free: 9.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.467, allocations: 59.97 kB / 0.5933 GB, free: 9.422 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004162/0.4712, allocations: 1.913 MB / 0.5952 GB, free: 7.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4712, allocations: 0 / 0.5952 GB, free: 7.508 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.4712, allocations: 0 / 0.5952 GB, free: 7.508 MB / 410.7 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.0003261/0.4715, allocations: 369 kB / 0.5955 GB, free: 7.094 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.4716, allocations: 8.031 kB / 0.5955 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.4716, allocations: 0 / 0.5955 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.4717, allocations: 167 kB / 0.5957 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.4718, allocations: 0 / 0.5957 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.477e-06/0.4718, allocations: 0 / 0.5957 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.044e-05/0.4719, allocations: 33.66 kB / 0.5957 GB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.4719, allocations: 0 / 0.5957 GB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.4719, allocations: 3.984 kB / 0.5957 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.4719, allocations: 0 / 0.5957 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.554e-05/0.4719, allocations: 4 kB / 0.5957 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.4721, allocations: 149.7 kB / 0.5959 GB, free: 6.641 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.264e-05/0.4721, allocations: 18.52 kB / 0.5959 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.4721, allocations: 3.984 kB / 0.5959 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.4722, allocations: 56.33 kB / 0.5959 GB, free: 6.539 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4722, allocations: 4 kB / 0.5959 GB, free: 6.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002334/0.4724, allocations: 75.34 kB / 0.596 GB, free: 6.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.4725, allocations: 77.11 kB / 0.5961 GB, free: 6.355 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.921e-05/0.4726, allocations: 85 kB / 0.5962 GB, free: 6.266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.4726, allocations: 25.7 kB / 0.5962 GB, free: 6.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.4726, allocations: 80.14 kB / 0.5963 GB, free: 6.152 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.4726, allocations: 7.938 kB / 0.5963 GB, free: 6.145 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.4726, allocations: 0 / 0.5963 GB, free: 6.145 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4728, allocations: 318.8 kB / 0.5966 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.4728, allocations: 4.25 kB / 0.5966 GB, free: 5.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.148e-06/0.4728, allocations: 3.938 kB / 0.5966 GB, free: 5.816 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.526e-05/0.4728, allocations: 29.7 kB / 0.5966 GB, free: 5.781 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.4728, allocations: 0 / 0.5966 GB, free: 5.781 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.395e-05/0.4729, allocations: 59.41 kB / 0.5967 GB, free: 5.711 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.4729, allocations: 33.69 kB / 0.5967 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.473, allocations: 3.938 kB / 0.5967 GB, free: 5.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.473, allocations: 3.953 kB / 0.5967 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.473, allocations: 0 / 0.5967 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.473, allocations: 8.094 kB / 0.5967 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.169e-05/0.473, allocations: 0 / 0.5967 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.473, allocations: 0 / 0.5967 GB, free: 5.656 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.499e-05/0.4731, allocations: 144.1 kB / 0.5968 GB, free: 5.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-06/0.4731, allocations: 0 / 0.5968 GB, free: 5.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.621e-05/0.4731, allocations: 10.66 kB / 0.5969 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.4732, allocations: 0 / 0.5969 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4732, allocations: 3.953 kB / 0.5969 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4732, allocations: 3.984 kB / 0.5969 GB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.4733, allocations: 149.7 kB / 0.597 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4733, allocations: 0 / 0.597 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4733, allocations: 0 / 0.597 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.4733, allocations: 0 / 0.597 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.4733, allocations: 4 kB / 0.597 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.4733, allocations: 0 / 0.597 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4733, allocations: 0 / 0.597 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.672e-05/0.4734, allocations: 94.78 kB / 0.5971 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.4735, allocations: 81.14 kB / 0.5972 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.4735, allocations: 4 kB / 0.5972 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-06/0.4735, allocations: 0 / 0.5972 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.4735, allocations: 3.984 kB / 0.5972 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.4735, allocations: 0 / 0.5972 GB, free: 5.062 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.748e-05/0.4736, allocations: 83.23 kB / 0.5973 GB, free: 4.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.703e-06/0.4736, allocations: 0 / 0.5973 GB, free: 4.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.4738, allocations: 23.94 kB / 0.5973 GB, free: 4.957 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003724/0.4742, allocations: 198.9 kB / 0.5975 GB, free: 4.789 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.296e-05/0.4743, allocations: 59.41 kB / 0.5975 GB, free: 4.719 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4743, allocations: 4 kB / 0.5975 GB, free: 4.715 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.4743, allocations: 55.41 kB / 0.5976 GB, free: 4.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.959e-05/0.4744, allocations: 4 kB / 0.5976 GB, free: 4.645 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001799/0.4746, allocations: 80.8 kB / 0.5977 GB, free: 4.539 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.4748, allocations: 0.6731 MB / 0.5983 GB, free: 3.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.4748, allocations: 0 / 0.5983 GB, free: 3.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.287e-06/0.4749, allocations: 7.438 kB / 0.5983 GB, free: 3.832 MB / 410.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4749, allocations: 4.125 kB / 0.5983 GB, free: 3.828 MB / 410.7 MB Notification: Performance of Templates: time 0.002563/0.4774, allocations: 0.6109 MB / 0.5989 GB, free: 3.223 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (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 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches