Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009677, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005536/0.005536, allocations: 169.2 kB / 16.26 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.4 MB / 222.4 MB, free: 5.789 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005083, allocations: 12 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2974, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.0992/0.3966, allocations: 94.47 MB / 421.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04691/0.4436, allocations: 35.27 MB / 456.8 MB, free: 1.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004139/0.4478, allocations: 67.44 kB / 456.8 MB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005587/0.4534, allocations: 1.174 MB / 458 MB, free: 24 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2566/0.71, allocations: 3.939 MB / 461.9 MB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02304/0.7331, allocations: 7.605 MB / 469.5 MB, free: 2.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01453/0.7476, allocations: 8.813 MB / 478.4 MB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003702/0.7514, allocations: 1.761 MB / 480.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01331/0.7647, allocations: 5.44 MB / 485.6 MB, free: 1.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005026/0.7698, allocations: 2.163 MB / 487.7 MB, free: 1.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006656/0.7705, allocations: 144 kB / 487.9 MB, free: 1.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02407/0.7946, allocations: 8.969 MB / 496.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002286/0.7969, allocations: 0.7376 MB / 497.6 MB, free: 15.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003222/0.8001, allocations: 1.256 MB / 498.8 MB, free: 15.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0269/0.8271, allocations: 8.482 MB / 0.4954 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.8271, allocations: 0 / 0.4954 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.8271, allocations: 4 kB / 0.4954 GB, free: 10.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001366/0.8273, allocations: 0 / 0.4954 GB, free: 10.49 MB / 398.1 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.01119/0.8385, allocations: 2.954 MB / 0.4983 GB, free: 7.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.8385, allocations: 8.031 kB / 0.4983 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/0.8494, allocations: 1.265 MB / 0.4996 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003581/0.853, allocations: 1.337 MB / 0.5009 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005471/0.8536, allocations: 348.8 kB / 0.5012 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.855, allocations: 190.6 kB / 0.5014 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01386/0.8689, allocations: 3.501 MB / 0.5048 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.85e-05/0.869, allocations: 2.812 kB / 0.5048 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004139/0.8694, allocations: 85.78 kB / 0.5049 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/0.8697, allocations: 106.6 kB / 0.505 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.8837, allocations: 3.525 MB / 0.5084 GB, free: 15.51 MB / 414.1 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.03243/0.9162, allocations: 14.46 MB / 0.5225 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.927, allocations: 2.926 MB / 0.5254 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004175/0.9312, allocations: 1.473 MB / 0.5268 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0523/0.9836, allocations: 24.52 MB / 0.5508 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.323e-05/0.9837, allocations: 54 kB / 0.5508 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002777/0.9865, allocations: 449.2 kB / 0.5513 GB, free: 4.445 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 5.36e-06/0.9865, allocations: 0 / 0.5513 GB, free: 4.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03809/1.025, allocations: 12.48 MB / 0.5634 GB, free: 8.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.509e-05/1.025, allocations: 158.5 kB / 0.5636 GB, free: 8.555 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/1.027, allocations: 1.404 MB / 0.565 GB, free: 7.141 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002758/1.027, allocations: 65.7 kB / 0.565 GB, free: 7.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005457/1.027, allocations: 0.7955 MB / 0.5658 GB, free: 6.273 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006131/1.028, allocations: 0.6672 MB / 0.5665 GB, free: 5.613 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002888/1.028, allocations: 192.9 kB / 0.5666 GB, free: 5.422 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.437e-05/1.028, allocations: 301.1 kB / 0.5669 GB, free: 5.125 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/1.031, allocations: 1.304 MB / 0.5682 GB, free: 3.816 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002834/1.034, allocations: 1.739 MB / 0.5699 GB, free: 1.906 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005326/1.039, allocations: 3.007 MB / 0.5728 GB, free: 14.79 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/1.039, allocations: 4 kB / 0.5728 GB, free: 14.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007947/1.047, allocations: 4.021 MB / 0.5768 GB, free: 10.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/1.047, allocations: 8 kB / 0.5768 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/1.047, allocations: 12 kB / 0.5768 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00456/1.052, allocations: 1.575 MB / 0.5783 GB, free: 9.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/1.054, allocations: 477.6 kB / 0.5788 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006204/1.06, allocations: 6.695 MB / 0.5853 GB, free: 1.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00297/1.063, allocations: 231.4 kB / 0.5855 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/1.064, allocations: 115.7 kB / 0.5856 GB, free: 1.508 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (mFlow3.medium.phase,openTankHot3.inFlow[1],openTankHot3.regularFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankCold3.inFlow[1],openTankCold3.regularFlow[1],openTankCold3.heatTransfer.states[1].phase,mFlow2.medium.phase,mFlow1.medium.phase,openTankHot2.inFlow[1],openTankHot2.regularFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot1.inFlow[1],openTankHot1.regularFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankCold1.inFlow[1],openTankCold1.regularFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold2.inFlow[1],openTankCold2.regularFlow[1],openTankCold2.heatTransfer.states[1].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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(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.001181/1.065, allocations: 0.5076 MB / 0.5861 GB, free: 1.012 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/1.065, allocations: 193.8 kB / 0.5863 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/1.079, allocations: 9.96 MB / 0.5961 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/1.079, allocations: 106.8 kB / 0.5962 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.079, allocations: 7.984 kB / 0.5962 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.979e-05/1.079, allocations: 8.156 kB / 0.5962 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/1.098, allocations: 13.38 MB / 0.6092 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/1.098, allocations: 0 / 0.6092 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/1.1, allocations: 413.2 kB / 0.6096 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006114/1.106, allocations: 3.802 MB / 0.6133 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003112/1.106, allocations: 63.95 kB / 0.6134 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2133/1.32, allocations: 8.781 MB / 0.622 GB, free: 230 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.32, allocations: 0 / 0.622 GB, free: 230 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02523/1.345, allocations: 10.81 MB / 0.6325 GB, free: 225.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/1.347, allocations: 0.9014 MB / 0.6334 GB, free: 225.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005721/1.348, allocations: 51.84 kB / 0.6335 GB, free: 225.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003589/1.352, allocations: 234.9 kB / 0.6337 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007411/1.352, allocations: 219.6 kB / 0.6339 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003027/1.353, allocations: 88.94 kB / 0.634 GB, free: 225.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002625/1.355, allocations: 1.273 MB / 0.6352 GB, free: 225 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7.01e-07/1.355, allocations: 0 / 0.6352 GB, free: 225 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007017/1.362, allocations: 1.797 MB / 0.637 GB, free: 224.8 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.level,openTankCold2.medium.h,openTankCold1.level,openTankCold1.medium.h,openTankHot1.level,openTankHot1.medium.h,openTankHot2.level,openTankHot2.medium.h,openTankCold3.level,openTankCold3.medium.h,openTankHot3.level,openTankHot3.medium.h) * Number of discrete variables: 71 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.phase,$cse54.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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(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.009551/1.372, allocations: 1.755 MB / 0.6387 GB, free: 224.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01486/1.387, allocations: 4.285 MB / 0.6429 GB, free: 223.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.387, allocations: 2.438 kB / 0.6429 GB, free: 223.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.009911/1.397, allocations: 3.141 MB / 0.6459 GB, free: 220.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/1.407, allocations: 1.083 MB / 0.647 GB, free: 219.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02076/1.428, allocations: 9.65 MB / 0.6564 GB, free: 210 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/1.43, allocations: 2.169 MB / 0.6585 GB, free: 207.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00564/1.436, allocations: 1.726 MB / 0.6602 GB, free: 206.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009689/1.437, allocations: 179.4 kB / 0.6604 GB, free: 205.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.442e-06/1.437, allocations: 4 kB / 0.6604 GB, free: 205.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.1232/1.56, allocations: 91.32 MB / 0.7496 GB, free: 114.5 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)