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.001047/0.001047, allocations: 183 kB / 18.09 MB, free: 3.727 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.425/1.425, allocations: 223.3 MB / 242.1 MB, free: 11.69 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.0008081/0.0008081, allocations: 97.05 kB / 293.3 MB, free: 10.77 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.3497/0.3497, allocations: 44.14 MB / 388.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003645, allocations: 8 kB / 461.1 MB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2975, allocations: 61.88 MB / 0.5107 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.4009, allocations: 85.68 MB / 0.5944 GB, free: 9.426 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4011, allocations: 63.95 kB / 0.5945 GB, free: 9.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004303/0.4054, allocations: 1.932 MB / 0.5963 GB, free: 7.434 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4055, allocations: 0 / 0.5963 GB, free: 7.434 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.4055, allocations: 0 / 0.5963 GB, free: 7.434 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.0002717/0.4058, allocations: 361.2 kB / 0.5967 GB, free: 7.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.4058, allocations: 8.031 kB / 0.5967 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.4058, allocations: 4.938 kB / 0.5967 GB, free: 7.012 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.765e-05/0.4059, allocations: 164.4 kB / 0.5969 GB, free: 6.812 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.4059, allocations: 4.375 kB / 0.5969 GB, free: 6.809 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.406, allocations: 384 / 0.5969 GB, free: 6.809 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.161e-05/0.406, allocations: 34.27 kB / 0.5969 GB, free: 6.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.406, allocations: 192 / 0.5969 GB, free: 6.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.4061, allocations: 3.938 kB / 0.5969 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.4061, allocations: 0 / 0.5969 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.747e-05/0.4061, allocations: 7.969 kB / 0.5969 GB, free: 6.758 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000111/0.4062, allocations: 145.7 kB / 0.597 GB, free: 6.566 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.235e-05/0.4062, allocations: 22.52 kB / 0.5971 GB, free: 6.535 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.4063, allocations: 8.953 kB / 0.5971 GB, free: 6.523 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.172e-06/0.4063, allocations: 0 / 0.5971 GB, free: 6.523 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.4063, allocations: 60.27 kB / 0.5971 GB, free: 6.449 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.4063, allocations: 0 / 0.5971 GB, free: 6.449 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.4065, allocations: 71.27 kB / 0.5972 GB, free: 6.367 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.4065, allocations: 77.11 kB / 0.5973 GB, free: 6.273 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.982e-05/0.4066, allocations: 102 kB / 0.5974 GB, free: 6.164 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.4066, allocations: 25.7 kB / 0.5974 GB, free: 6.133 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.184e-05/0.4066, allocations: 80.14 kB / 0.5975 GB, free: 6.051 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.4066, allocations: 3.938 kB / 0.5975 GB, free: 6.047 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-06/0.4067, allocations: 0 / 0.5975 GB, free: 6.047 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.355e-05/0.4067, allocations: 314.8 kB / 0.5978 GB, free: 5.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-06/0.4068, allocations: 4 kB / 0.5978 GB, free: 5.727 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.4068, allocations: 128 / 0.5978 GB, free: 5.727 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.011e-05/0.4068, allocations: 64.33 kB / 0.5978 GB, free: 5.648 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4068, allocations: 3.938 kB / 0.5978 GB, free: 5.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.602e-05/0.4069, allocations: 71.33 kB / 0.5979 GB, free: 5.562 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.4069, allocations: 29.7 kB / 0.5979 GB, free: 5.527 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4069, allocations: 3.938 kB / 0.5979 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.876e-06/0.4069, allocations: 0 / 0.5979 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.4069, allocations: 0 / 0.5979 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.407, allocations: 0 / 0.5979 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.176e-05/0.407, allocations: 4 kB / 0.5979 GB, free: 5.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.407, allocations: 4.031 kB / 0.5979 GB, free: 5.516 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 6.651e-05/0.4071, allocations: 131.5 kB / 0.5981 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-06/0.4071, allocations: 4 kB / 0.5981 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.399e-05/0.4071, allocations: 14.64 kB / 0.5981 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.4071, allocations: 0 / 0.5981 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4071, allocations: 4 kB / 0.5981 GB, free: 5.352 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.4071, allocations: 0 / 0.5981 GB, free: 5.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.572e-05/0.4072, allocations: 149.7 kB / 0.5982 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4072, allocations: 0 / 0.5982 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.4072, allocations: 4 kB / 0.5982 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4072, allocations: 0 / 0.5982 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.4072, allocations: 7.922 kB / 0.5983 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.4072, allocations: 0 / 0.5983 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4072, allocations: 0 / 0.5983 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.429e-05/0.4073, allocations: 90.78 kB / 0.5983 GB, free: 5.031 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.111e-05/0.4074, allocations: 81.09 kB / 0.5984 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.4074, allocations: 7.938 kB / 0.5984 GB, free: 4.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.4074, allocations: 4.031 kB / 0.5984 GB, free: 4.922 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.395e-05/0.4074, allocations: 0 / 0.5984 GB, free: 4.922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.4074, allocations: 0 / 0.5984 GB, free: 4.922 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.755e-05/0.4075, allocations: 79.28 kB / 0.5985 GB, free: 4.844 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4075, allocations: 0 / 0.5985 GB, free: 4.844 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.4077, allocations: 16 kB / 0.5985 GB, free: 4.828 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.0004072/0.4081, allocations: 206.1 kB / 0.5987 GB, free: 4.652 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.391e-05/0.4082, allocations: 55.41 kB / 0.5988 GB, free: 4.586 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.4082, allocations: 8.062 kB / 0.5988 GB, free: 4.578 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.683e-05/0.4082, allocations: 59.28 kB / 0.5988 GB, free: 4.508 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.4084, allocations: 4 kB / 0.5988 GB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000155/0.4085, allocations: 86.66 kB / 0.5989 GB, free: 4.391 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.4087, allocations: 0.6692 MB / 0.5996 GB, free: 3.695 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.125e-06/0.4087, allocations: 4 kB / 0.5996 GB, free: 3.691 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.298e-06/0.4088, allocations: 7.438 kB / 0.5996 GB, free: 3.684 MB / 410.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4088, allocations: 0 / 0.5996 GB, free: 3.684 MB / 410.7 MB Notification: Performance of Templates: time 0.002319/0.4111, allocations: 0.6315 MB / 0.6002 GB, free: 3.055 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/jenkins1/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