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.0009801/0.0009802, allocations: 176.4 kB / 17.4 MB, free: 4.297 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.51/1.51, allocations: 223.3 MB / 241.4 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.0008912/0.0008912, allocations: 108.4 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003331, allocations: 8 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2633, allocations: 50.39 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.565/5.829, allocations: 2.762 GB / 3.155 GB, free: 43.39 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/5.829, allocations: 91.5 kB / 3.155 GB, free: 43.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3/8.83, allocations: 0.9324 GB / 4.087 GB, free: 10.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.913e-06/8.83, allocations: 4 kB / 4.087 GB, free: 10.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002161/8.83, allocations: 55.92 kB / 4.087 GB, free: 10.73 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.01207/8.842, allocations: 3.568 MB / 4.091 GB, free: 7.105 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/8.842, allocations: 8.031 kB / 4.091 GB, free: 7.098 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/8.855, allocations: 1.212 MB / 4.092 GB, free: 5.883 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004061/8.859, allocations: 1.576 MB / 4.094 GB, free: 4.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/8.859, allocations: 349.8 kB / 4.094 GB, free: 3.871 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008448/8.86, allocations: 184 kB / 4.094 GB, free: 3.691 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/8.87, allocations: 3.548 MB / 4.098 GB, free: 0 / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/8.871, allocations: 16.41 kB / 4.098 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006404/8.871, allocations: 83.92 kB / 4.098 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/8.871, allocations: 99.33 kB / 4.098 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009699/8.881, allocations: 3.518 MB / 4.101 GB, free: 12.28 MB / 0.4948 GB 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.308/9.189, allocations: 14.42 MB / 4.115 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006551/9.196, allocations: 2.869 MB / 4.118 GB, free: 35.47 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002562/9.198, allocations: 1.431 MB / 4.12 GB, free: 35.46 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/9.212, allocations: 8.247 MB / 4.128 GB, free: 30.49 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.476e-05/9.212, allocations: 61.56 kB / 4.128 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003335/9.215, allocations: 0.5624 MB / 4.128 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 6.612e-06/9.215, allocations: 0 / 4.128 GB, free: 30.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.03469/9.25, allocations: 12.3 MB / 4.14 GB, free: 29.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/9.25, allocations: 153.1 kB / 4.14 GB, free: 29.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/9.252, allocations: 1.389 MB / 4.142 GB, free: 29.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002772/9.252, allocations: 67.48 kB / 4.142 GB, free: 29.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/9.253, allocations: 0.7838 MB / 4.143 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005709/9.253, allocations: 0.6742 MB / 4.143 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/9.253, allocations: 40.03 kB / 4.143 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001143/9.254, allocations: 394.8 kB / 4.144 GB, free: 28.19 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00229/9.256, allocations: 1.261 MB / 4.145 GB, free: 28.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/9.258, allocations: 1.697 MB / 4.147 GB, free: 27.73 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004639/9.263, allocations: 2.924 MB / 4.149 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/9.263, allocations: 3.938 kB / 4.149 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007772/9.271, allocations: 3.928 MB / 4.153 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/9.271, allocations: 13.25 kB / 4.153 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/9.271, allocations: 14.81 kB / 4.153 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004178/9.275, allocations: 1.551 MB / 4.155 GB, free: 26.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00213/9.277, allocations: 462.2 kB / 4.155 GB, free: 26.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005091/9.282, allocations: 6.601 MB / 4.162 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/9.286, allocations: 218.2 kB / 4.162 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/9.286, allocations: 117.9 kB / 4.162 GB, free: 22.28 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.001285/9.287, allocations: 0.5164 MB / 4.162 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/9.288, allocations: 194.5 kB / 4.163 GB, free: 22.06 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/9.299, allocations: 9.859 MB / 4.172 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.169e-05/9.3, allocations: 105.5 kB / 4.172 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/9.3, allocations: 1.188 kB / 4.172 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.469e-05/9.3, allocations: 12.75 kB / 4.172 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01746/9.317, allocations: 13.38 MB / 4.185 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/9.317, allocations: 0 / 4.185 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/9.319, allocations: 402.7 kB / 4.186 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00561/9.325, allocations: 3.838 MB / 4.19 GB, free: 20.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005031/9.325, allocations: 62.34 kB / 4.19 GB, free: 20.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006789/9.332, allocations: 8.764 MB / 4.198 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/9.332, allocations: 2.688 kB / 4.198 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/9.346, allocations: 10.71 MB / 4.209 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/9.348, allocations: 0.9097 MB / 4.21 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004352/9.348, allocations: 47.53 kB / 4.21 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002088/9.35, allocations: 238.5 kB / 4.21 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004588/9.351, allocations: 228.7 kB / 4.21 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001869/9.351, allocations: 90.83 kB / 4.21 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001628/9.353, allocations: 1.247 MB / 4.211 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.3e-07/9.353, allocations: 7.219 kB / 4.211 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007605/9.36, allocations: 1.916 MB / 4.213 GB, free: 13.9 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,4 11,2 4,2 4,4 11,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01023/9.371, allocations: 2.596 MB / 4.216 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008731/9.379, allocations: 4.229 MB / 4.22 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/9.379, allocations: 9.953 kB / 4.22 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005247/9.385, allocations: 3.107 MB / 4.223 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005568/9.39, allocations: 1.077 MB / 4.224 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/9.402, allocations: 9.503 MB / 4.233 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/9.404, allocations: 2.164 MB / 4.235 GB, free: 8.941 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003334/9.407, allocations: 1.742 MB / 4.237 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005783/9.407, allocations: 184 kB / 4.237 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-06/9.407, allocations: 0.9844 kB / 4.237 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of Templates: time 0.5147/9.922, allocations: 95.13 MB / 4.33 GB, free: 52.93 MB / 0.5105 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/jenkins1/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