Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003242/0.003242, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.009/3.009, allocations: 226.5 MB / 245.3 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 97.44 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.000448, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6281/0.6286, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.16/13.79, allocations: 2.762 GB / 3.161 GB, free: 144.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004527/13.79, allocations: 90.42 kB / 3.161 GB, free: 144.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.994/20.78, allocations: 0.9328 GB / 4.094 GB, free: 36.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.877e-06/20.78, allocations: 2.156 kB / 4.094 GB, free: 36.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003124/20.78, allocations: 62.95 kB / 4.094 GB, free: 36.49 MB / 0.4948 GB 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.02775/20.81, allocations: 3.581 MB / 4.098 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/20.81, allocations: 13.69 kB / 4.098 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02636/20.84, allocations: 1.226 MB / 4.099 GB, free: 34.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008267/20.85, allocations: 1.574 MB / 4.101 GB, free: 34.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006925/20.85, allocations: 350.2 kB / 4.101 GB, free: 34.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001561/20.85, allocations: 183.1 kB / 4.101 GB, free: 34.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02331/20.87, allocations: 3.562 MB / 4.105 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/20.87, allocations: 12.16 kB / 4.105 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007186/20.87, allocations: 80.33 kB / 4.105 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002465/20.87, allocations: 109.4 kB / 4.105 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01834/20.89, allocations: 3.514 MB / 4.108 GB, free: 33.64 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.0512/20.94, allocations: 14.42 MB / 4.122 GB, free: 26.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/20.96, allocations: 2.864 MB / 4.125 GB, free: 26.47 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01005/20.97, allocations: 1.439 MB / 4.126 GB, free: 26.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02957/21, allocations: 8.968 MB / 4.135 GB, free: 20.72 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001029/21, allocations: 53.66 kB / 4.135 GB, free: 20.68 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01488/21.02, allocations: 0.5694 MB / 4.136 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 3.899e-05/21.02, allocations: 0 / 4.136 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.08842/21.11, allocations: 12.3 MB / 4.148 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/21.11, allocations: 155.5 kB / 4.148 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003726/21.11, allocations: 1.389 MB / 4.149 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/21.11, allocations: 68.77 kB / 4.149 GB, free: 19.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001051/21.11, allocations: 0.7879 MB / 4.15 GB, free: 18.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.006264/21.12, allocations: 0.6712 MB / 4.151 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007509/21.12, allocations: 43.53 kB / 4.151 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000342/21.12, allocations: 390.2 kB / 4.151 GB, free: 18.03 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005396/21.12, allocations: 1.262 MB / 4.152 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006082/21.13, allocations: 1.697 MB / 4.154 GB, free: 17.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01618/21.15, allocations: 2.917 MB / 4.157 GB, free: 17.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.034e-05/21.15, allocations: 3.781 kB / 4.157 GB, free: 17.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.018/21.17, allocations: 3.94 MB / 4.161 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/21.17, allocations: 6.156 kB / 4.161 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004109/21.17, allocations: 12.19 kB / 4.161 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009121/21.18, allocations: 1.555 MB / 4.162 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/21.18, allocations: 459.2 kB / 4.163 GB, free: 16.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/21.2, allocations: 6.598 MB / 4.169 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005275/21.2, allocations: 221.5 kB / 4.169 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001046/21.2, allocations: 116.4 kB / 4.17 GB, free: 12.07 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.003124/21.21, allocations: 0.51 MB / 4.17 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005917/21.21, allocations: 197.5 kB / 4.17 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03215/21.24, allocations: 9.848 MB / 4.18 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002012/21.24, allocations: 105.2 kB / 4.18 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.859e-05/21.24, allocations: 4 kB / 4.18 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001079/21.24, allocations: 13.88 kB / 4.18 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04352/21.29, allocations: 13.37 MB / 4.193 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.349e-05/21.29, allocations: 0 / 4.193 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003806/21.29, allocations: 402.6 kB / 4.193 GB, free: 7.246 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01123/21.3, allocations: 3.839 MB / 4.197 GB, free: 6.406 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008631/21.3, allocations: 61.08 kB / 4.197 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/21.32, allocations: 8.766 MB / 4.206 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/21.32, allocations: 2.656 kB / 4.206 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0424/21.36, allocations: 10.72 MB / 4.216 GB, free: 6.961 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004601/21.36, allocations: 0.9024 MB / 4.217 GB, free: 6.188 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001591/21.36, allocations: 55.94 kB / 4.217 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009625/21.37, allocations: 232.5 kB / 4.217 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001778/21.38, allocations: 228.1 kB / 4.218 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001006/21.38, allocations: 88.14 kB / 4.218 GB, free: 5.75 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004582/21.38, allocations: 1.252 MB / 4.219 GB, free: 4.688 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.52e-07/21.38, allocations: 0 / 4.219 GB, free: 4.688 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02227/21.4, allocations: 1.942 MB / 4.221 GB, free: 2.789 MB / 0.5105 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.03073/21.44, allocations: 2.609 MB / 4.223 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03617/21.47, allocations: 4.556 MB / 4.228 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-05/21.47, allocations: 0.5625 kB / 4.228 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01737/21.49, allocations: 3.115 MB / 4.231 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01824/21.51, allocations: 1.074 MB / 4.232 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03918/21.55, allocations: 9.558 MB / 4.241 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003738/21.55, allocations: 2.123 MB / 4.243 GB, free: 240 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00197/21.55, allocations: 207.3 kB / 4.244 GB, free: 60 kB / 0.5261 GB Notification: Performance of SimCode: time 2.054e-06/21.55, allocations: 0 / 4.244 GB, free: 60 kB / 0.5261 GB Notification: Performance of Templates: time 1.22/22.77, allocations: 180.2 MB / 4.419 GB, free: 10.75 MB / 0.5417 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches