Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.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) 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(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.368/1.368, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009843/0.0009843, allocations: 101.9 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002827, allocations: 8 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2918, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.546/6.837, allocations: 2.761 GB / 3.153 GB, free: 107.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/6.838, allocations: 92.64 kB / 3.153 GB, free: 107.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.23/10.07, allocations: 0.9791 GB / 4.133 GB, free: 29.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.723e-06/10.07, allocations: 0 / 4.133 GB, free: 29.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002232/10.07, allocations: 56.14 kB / 4.133 GB, free: 29.45 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.01645/10.08, allocations: 3.583 MB / 4.136 GB, free: 27.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/10.08, allocations: 9.594 kB / 4.136 GB, free: 27.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01436/10.1, allocations: 1.218 MB / 4.137 GB, free: 27.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005566/10.1, allocations: 1.539 MB / 4.139 GB, free: 27.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004973/10.11, allocations: 347.4 kB / 4.139 GB, free: 26.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/10.11, allocations: 196.5 kB / 4.139 GB, free: 26.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01065/10.12, allocations: 3.531 MB / 4.143 GB, free: 26.41 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.941e-05/10.12, allocations: 11.06 kB / 4.143 GB, free: 26.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007342/10.12, allocations: 88.73 kB / 4.143 GB, free: 26.41 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/10.12, allocations: 104.4 kB / 4.143 GB, free: 26.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009281/10.13, allocations: 3.514 MB / 4.146 GB, free: 26.33 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02154/10.15, allocations: 14.43 MB / 4.16 GB, free: 16.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006587/10.16, allocations: 2.861 MB / 4.163 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/10.17, allocations: 8.251 MB / 4.171 GB, free: 9.465 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/10.17, allocations: 60.7 kB / 4.171 GB, free: 9.398 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003669/10.17, allocations: 0.5665 MB / 4.172 GB, free: 8.961 MB / 490.7 MB Notification: Performance of pre-optimization done (n=175): time 1.276e-05/10.17, allocations: 0 / 4.172 GB, free: 8.961 MB / 490.7 MB Notification: Performance of matching and sorting (n=205): time 0.04074/10.21, allocations: 12.52 MB / 4.184 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/10.21, allocations: 154.5 kB / 4.184 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002257/10.22, allocations: 1.234 MB / 4.185 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003312/10.22, allocations: 61.7 kB / 4.186 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006527/10.22, allocations: 0.7804 MB / 4.186 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007695/10.22, allocations: 0.6758 MB / 4.187 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/10.22, allocations: 44 kB / 4.187 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002008/10.22, allocations: 396.7 kB / 4.187 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002611/10.22, allocations: 1.257 MB / 4.189 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/10.22, allocations: 1.694 MB / 4.19 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002644/10.23, allocations: 1.361 MB / 4.192 GB, free: 8.398 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-06/10.23, allocations: 4 kB / 4.192 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008113/10.24, allocations: 3.928 MB / 4.195 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/10.24, allocations: 8 kB / 4.195 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/10.24, allocations: 12 kB / 4.195 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004792/10.24, allocations: 1.551 MB / 4.197 GB, free: 3.711 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/10.24, allocations: 463.3 kB / 4.197 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3527/10.6, allocations: 6.598 MB / 4.204 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/10.6, allocations: 220.2 kB / 4.204 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/10.6, allocations: 113.1 kB / 4.204 GB, free: 42.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {1 5,1 5,4 6,1 5,1 5,4 6,1 5,1 5,6 6} Notification: Performance of prepare postOptimizeDAE: time 0.001317/10.6, allocations: 0.5106 MB / 4.205 GB, free: 42.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/10.6, allocations: 197.7 kB / 4.205 GB, free: 42.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/10.61, allocations: 9.864 MB / 4.214 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.219e-05/10.61, allocations: 106.7 kB / 4.215 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/10.61, allocations: 1.688 kB / 4.215 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/10.61, allocations: 12.14 kB / 4.215 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/10.63, allocations: 13.36 MB / 4.228 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/10.63, allocations: 1.656 kB / 4.228 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/10.63, allocations: 402.5 kB / 4.228 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005657/10.64, allocations: 4.141 MB / 4.232 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002291/10.64, allocations: 61.66 kB / 4.232 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006464/10.64, allocations: 8.772 MB / 4.241 GB, free: 35.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/10.64, allocations: 9.578 kB / 4.241 GB, free: 35.69 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/10.66, allocations: 10.7 MB / 4.251 GB, free: 34.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/10.66, allocations: 0.9095 MB / 4.252 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006632/10.66, allocations: 49.67 kB / 4.252 GB, free: 34.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/10.66, allocations: 237.4 kB / 4.252 GB, free: 34.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004799/10.66, allocations: 226.5 kB / 4.253 GB, free: 34.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/10.66, allocations: 88.84 kB / 4.253 GB, free: 34.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002055/10.67, allocations: 1.254 MB / 4.254 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/10.67, allocations: 2.719 kB / 4.254 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008266/10.67, allocations: 1.917 MB / 4.256 GB, free: 34.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 71 ($cse1.phase,$cse1.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0105/10.68, allocations: 2.598 MB / 4.258 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008837/10.69, allocations: 4.225 MB / 4.262 GB, free: 33.97 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/10.69, allocations: 9.094 kB / 4.262 GB, free: 33.97 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005639/10.7, allocations: 3.14 MB / 4.265 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005083/10.7, allocations: 1.035 MB / 4.266 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/10.72, allocations: 9.5 MB / 4.276 GB, free: 30.47 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/10.72, allocations: 2.223 MB / 4.278 GB, free: 29.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003411/10.72, allocations: 1.74 MB / 4.28 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/10.72, allocations: 186.8 kB / 4.28 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/10.72, allocations: 0 / 4.28 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of Templates: time 0.1179/10.84, allocations: 92.26 MB / 4.37 GB, free: 1.484 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MeasuringTemperature/MeasuringTemperature.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches