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.001523/0.001523, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 221.5 MB / 230.7 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009357/0.000936, allocations: 92.44 kB / 281.6 MB, free: 5.27 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.194/0.194, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.007e-05, allocations: 4.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 61.92 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.559, allocations: 84.94 MB / 0.5776 GB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.5593, allocations: 63.97 kB / 0.5777 GB, free: 11.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004014/0.5633, allocations: 1.618 MB / 0.5793 GB, free: 9.918 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5633, allocations: 4 kB / 0.5793 GB, free: 9.914 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.5633, allocations: 4 kB / 0.5793 GB, free: 9.91 MB / 394.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.0003058/0.5636, allocations: 348.2 kB / 0.5796 GB, free: 9.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.5637, allocations: 11.98 kB / 0.5796 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.5637, allocations: 4 kB / 0.5796 GB, free: 9.504 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.5639, allocations: 163.1 kB / 0.5798 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.5639, allocations: 0.75 kB / 0.5798 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.5639, allocations: 4 kB / 0.5798 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.238e-05/0.564, allocations: 3.953 kB / 0.5798 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.858e-05/0.564, allocations: 29.64 kB / 0.5798 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.564, allocations: 4 kB / 0.5798 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.5641, allocations: 4 kB / 0.5798 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5641, allocations: 0 / 0.5798 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.5642, allocations: 123.1 kB / 0.5799 GB, free: 9.098 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.396e-05/0.5643, allocations: 18.56 kB / 0.5799 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.76e-05/0.5643, allocations: 12.94 kB / 0.58 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.737e-06/0.5643, allocations: 0 / 0.58 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.5643, allocations: 64.27 kB / 0.58 GB, free: 8.977 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.5643, allocations: 0 / 0.58 GB, free: 8.977 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.5645, allocations: 41.59 kB / 0.5801 GB, free: 8.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.5646, allocations: 77.11 kB / 0.5801 GB, free: 8.836 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.728e-05/0.5647, allocations: 88.98 kB / 0.5802 GB, free: 8.742 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.5647, allocations: 25.7 kB / 0.5802 GB, free: 8.711 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.829e-05/0.5647, allocations: 80.14 kB / 0.5803 GB, free: 8.629 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.5647, allocations: 4.156 kB / 0.5803 GB, free: 8.625 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-06/0.5648, allocations: 4 kB / 0.5803 GB, free: 8.621 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.5649, allocations: 314.8 kB / 0.5806 GB, free: 8.305 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-06/0.5649, allocations: 0 / 0.5806 GB, free: 8.305 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-06/0.5649, allocations: 0 / 0.5806 GB, free: 8.305 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.842e-05/0.5649, allocations: 4.844 kB / 0.5806 GB, free: 8.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5649, allocations: 0 / 0.5806 GB, free: 8.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.748e-05/0.565, allocations: 40.64 kB / 0.5807 GB, free: 8.258 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.5651, allocations: 29.7 kB / 0.5807 GB, free: 8.223 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.5651, allocations: 4.094 kB / 0.5807 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.5651, allocations: 0 / 0.5807 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.987e-06/0.5651, allocations: 3.938 kB / 0.5807 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.5651, allocations: 8.578 kB / 0.5807 GB, free: 8.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.287e-05/0.5651, allocations: 4 kB / 0.5807 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.5651, allocations: 3.938 kB / 0.5807 GB, free: 8.199 MB / 394.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 () * 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.024e-05/0.5652, allocations: 126.7 kB / 0.5808 GB, free: 8.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.5652, allocations: 4 kB / 0.5808 GB, free: 8.059 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.766e-05/0.5653, allocations: 11.69 kB / 0.5809 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.5653, allocations: 4 kB / 0.5809 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.5653, allocations: 0 / 0.5809 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.5653, allocations: 3.953 kB / 0.5809 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.358e-05/0.5654, allocations: 130.2 kB / 0.581 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.5654, allocations: 0 / 0.581 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.5654, allocations: 0 / 0.581 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.5654, allocations: 0 / 0.581 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.5654, allocations: 3.984 kB / 0.581 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.5654, allocations: 0 / 0.581 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5654, allocations: 0 / 0.581 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.73e-05/0.5655, allocations: 73.08 kB / 0.5811 GB, free: 7.781 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.5656, allocations: 81.09 kB / 0.5811 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.5656, allocations: 0 / 0.5811 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.5656, allocations: 0 / 0.5811 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.931e-05/0.5656, allocations: 7.938 kB / 0.5811 GB, free: 7.676 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.5656, allocations: 0 / 0.5811 GB, free: 7.676 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.94e-05/0.5657, allocations: 79.22 kB / 0.5812 GB, free: 7.598 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5657, allocations: 4.125 kB / 0.5812 GB, free: 7.594 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.5659, allocations: 24 kB / 0.5812 GB, free: 7.57 MB / 394.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) * 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.0003939/0.5663, allocations: 188.9 kB / 0.5814 GB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.685e-05/0.5664, allocations: 59.41 kB / 0.5815 GB, free: 7.328 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5664, allocations: 0 / 0.5815 GB, free: 7.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.037e-05/0.5665, allocations: 55.41 kB / 0.5815 GB, free: 7.262 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.262e-05/0.5666, allocations: 3.953 kB / 0.5815 GB, free: 7.258 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.5667, allocations: 48.19 kB / 0.5816 GB, free: 7.188 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.567, allocations: 0.6749 MB / 0.5822 GB, free: 6.488 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.743e-06/0.567, allocations: 0 / 0.5822 GB, free: 6.488 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.078e-05/0.567, allocations: 11.38 kB / 0.5823 GB, free: 6.477 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.567, allocations: 0 / 0.5823 GB, free: 6.477 MB / 394.7 MB Notification: Performance of Templates: time 0.002889/0.5699, allocations: 0.6065 MB / 0.5828 GB, free: 5.875 MB / 394.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