Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 225.5 MB / 234.4 MB, free: 3.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 94.36 kB / 286.3 MB, free: 5.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.784e-06/7.824e-06, allocations: 0 / 343.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.127, allocations: 51.48 MB / 394.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.119/8.247, allocations: 2.761 GB / 3.147 GB, free: 76.03 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/8.247, allocations: 80.8 kB / 3.147 GB, free: 76 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.056/12.3, allocations: 0.9725 GB / 4.119 GB, free: 34.63 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001609/12.3, allocations: 59 kB / 4.119 GB, free: 34.63 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.01253/12.32, allocations: 3.442 MB / 4.123 GB, free: 33.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/12.32, allocations: 7.375 kB / 4.123 GB, free: 33.23 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01554/12.33, allocations: 1.717 MB / 4.124 GB, free: 33.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004372/12.34, allocations: 1.524 MB / 4.126 GB, free: 32.74 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002561/12.34, allocations: 276.8 kB / 4.126 GB, free: 32.55 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004508/12.34, allocations: 115.8 kB / 4.126 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004392/12.34, allocations: 2.673 MB / 4.129 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004146/12.35, allocations: 2.726 MB / 4.131 GB, free: 32.12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.513e-05/12.35, allocations: 9.594 kB / 4.131 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002776/12.35, allocations: 3.469 kB / 4.131 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/12.35, allocations: 112.6 kB / 4.131 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02033/12.37, allocations: 14.42 MB / 4.146 GB, free: 24.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/12.37, allocations: 1.427 MB / 4.147 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/12.37, allocations: 1.225 MB / 4.148 GB, free: 24.85 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04859/12.42, allocations: 27.26 MB / 4.175 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/12.42, allocations: 59.05 kB / 4.175 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=175): time 3.596e-06/12.42, allocations: 1.844 kB / 4.175 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=205): time 0.0321/12.45, allocations: 10.4 MB / 4.185 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/12.45, allocations: 154.6 kB / 4.185 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/12.45, allocations: 0.8374 MB / 4.186 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003331/12.45, allocations: 25.7 kB / 4.186 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000364/12.45, allocations: 0.6216 MB / 4.187 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006521/12.45, allocations: 0.6496 MB / 4.187 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/12.45, allocations: 0 / 4.187 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002025/12.45, allocations: 384.5 kB / 4.188 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/12.46, allocations: 1.215 MB / 4.189 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/12.46, allocations: 1.626 MB / 4.19 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00556/12.46, allocations: 1.993 MB / 4.192 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/12.46, allocations: 2.375 kB / 4.192 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.0171/12.48, allocations: 5.343 MB / 4.198 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/12.48, allocations: 7.078 kB / 4.198 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-05/12.48, allocations: 12.12 kB / 4.198 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004161/12.48, allocations: 1.562 MB / 4.199 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/12.49, allocations: 491.8 kB / 4.2 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009887/12.5, allocations: 7.616 MB / 4.207 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003266/12.5, allocations: 196.7 kB / 4.207 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003435/12.5, allocations: 123.8 kB / 4.207 GB, free: 15.62 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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 () * 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 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0008143/12.5, allocations: 221.2 kB / 4.207 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002119/12.5, allocations: 0.6817 MB / 4.208 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01599/12.52, allocations: 10.2 MB / 4.218 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.557e-05/12.52, allocations: 93.94 kB / 4.218 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/12.52, allocations: 0 / 4.218 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.9e-05/12.52, allocations: 9.375 kB / 4.218 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/12.54, allocations: 13.35 MB / 4.231 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/12.54, allocations: 2.219 kB / 4.231 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/12.54, allocations: 357.9 kB / 4.232 GB, free: 14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00833/12.55, allocations: 4.231 MB / 4.236 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004407/12.55, allocations: 42.11 kB / 4.236 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/12.56, allocations: 9.784 MB / 4.245 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/12.56, allocations: 2.062 kB / 4.245 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01986/12.58, allocations: 11.21 MB / 4.256 GB, free: 8.273 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/12.59, allocations: 0.671 MB / 4.257 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000437/12.59, allocations: 3.656 kB / 4.257 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002249/12.59, allocations: 215 kB / 4.257 GB, free: 8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004821/12.59, allocations: 242.3 kB / 4.257 GB, free: 8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000229/12.59, allocations: 96.25 kB / 4.257 GB, free: 8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0008543/12.59, allocations: 0.6055 MB / 4.258 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009744/12.6, allocations: 1.808 MB / 4.26 GB, free: 7.656 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: 65 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * 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.01168/12.61, allocations: 2.869 MB / 4.263 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008252/12.62, allocations: 4.848 MB / 4.267 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/12.62, allocations: 7.953 kB / 4.267 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005817/12.63, allocations: 3.936 MB / 4.271 GB, free: 6.863 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004654/12.63, allocations: 0.8573 MB / 4.272 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/12.64, allocations: 6.563 MB / 4.278 GB, free: 5.484 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002309/12.64, allocations: 2.244 MB / 4.281 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/12.64, allocations: 4 kB / 4.281 GB, free: 4.68 MB / 0.5105 GB Notification: Performance of Templates: time 0.4213/13.07, allocations: 87.55 MB / 4.366 GB, free: 93.48 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches