Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001328/0.001328, allocations: 96.61 kB / 16.5 MB, free: 6.641 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.001176/0.001176, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.332/1.332, allocations: 205.1 MB / 223.3 MB, free: 12.38 MB / 190.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.001217/0.001217, allocations: 47.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.09338, allocations: 46.64 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.2407/0.3341, allocations: 96.05 MB / 422 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03978/0.3739, allocations: 35.74 MB / 457.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.377, allocations: 75.38 kB / 457.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003386/0.3804, allocations: 1.181 MB / 459 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.3928, allocations: 3.953 MB / 463 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02204/0.4149, allocations: 7.6 MB / 470.6 MB, free: 7.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009486/0.4244, allocations: 8.828 MB / 479.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002897/0.4273, allocations: 1.776 MB / 481.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01217/0.4395, allocations: 5.472 MB / 486.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004211/0.4437, allocations: 2.203 MB / 488.8 MB, free: 4.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008121/0.4446, allocations: 148 kB / 489 MB, free: 4.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01915/0.4637, allocations: 8.963 MB / 498 MB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.4653, allocations: 0.7399 MB / 498.7 MB, free: 10.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.4676, allocations: 1.256 MB / 500 MB, free: 9.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02099/0.4886, allocations: 8.566 MB / 0.4966 GB, free: 1.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4886, allocations: 0 / 0.4966 GB, free: 1.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4886, allocations: 0 / 0.4966 GB, free: 1.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.001e-05/0.4887, allocations: 0 / 0.4966 GB, free: 1.004 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.008843/0.4975, allocations: 3.433 MB / 0.5 GB, free: 13.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4976, allocations: 12.03 kB / 0.5 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.5086, allocations: 1.204 MB / 0.5011 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.5116, allocations: 1.342 MB / 0.5025 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003456/0.5119, allocations: 350.3 kB / 0.5028 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005567/0.5125, allocations: 188.3 kB / 0.503 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009354/0.5219, allocations: 3.429 MB / 0.5063 GB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.649e-05/0.5219, allocations: 7.938 kB / 0.5063 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.5223, allocations: 83.97 kB / 0.5064 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/0.5224, allocations: 99.33 kB / 0.5065 GB, free: 6.598 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009505/0.5319, allocations: 3.408 MB / 0.5098 GB, free: 3.184 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.02369/0.5557, allocations: 14.36 MB / 0.5239 GB, free: 3.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007693/0.5634, allocations: 2.807 MB / 0.5266 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1727/0.7361, allocations: 1.423 MB / 0.528 GB, free: 153.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04542/0.7816, allocations: 24.27 MB / 0.5517 GB, free: 138.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001094/0.7817, allocations: 55.34 kB / 0.5517 GB, free: 138.2 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003122/0.7849, allocations: 451.1 kB / 0.5522 GB, free: 138.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=175): time 1.369e-05/0.7849, allocations: 0 / 0.5522 GB, free: 138.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=205): time 0.03979/0.8247, allocations: 11.99 MB / 0.5639 GB, free: 132.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.8248, allocations: 153.9 kB / 0.564 GB, free: 132.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.8268, allocations: 1.408 MB / 0.5654 GB, free: 130.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003354/0.8272, allocations: 61.7 kB / 0.5655 GB, free: 130.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004388/0.8276, allocations: 0.7834 MB / 0.5662 GB, free: 130.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006939/0.8283, allocations: 0.6772 MB / 0.5669 GB, free: 129.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000761/0.8291, allocations: 454.6 kB / 0.5673 GB, free: 129 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.876e-05/0.8291, allocations: 305.1 kB / 0.5676 GB, free: 128.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/0.8314, allocations: 1.265 MB / 0.5688 GB, free: 127.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/0.8339, allocations: 1.701 MB / 0.5705 GB, free: 125.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004619/0.8385, allocations: 2.918 MB / 0.5734 GB, free: 122.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.8385, allocations: 7.984 kB / 0.5734 GB, free: 122.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007359/0.8459, allocations: 3.938 MB / 0.5772 GB, free: 118.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.846, allocations: 12 kB / 0.5772 GB, free: 118.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.846, allocations: 9 kB / 0.5772 GB, free: 118.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004445/0.8504, allocations: 1.574 MB / 0.5788 GB, free: 116.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002007/0.8525, allocations: 447.3 kB / 0.5792 GB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/0.8574, allocations: 6.708 MB / 0.5857 GB, free: 109.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/0.86, allocations: 195.5 kB / 0.5859 GB, free: 109.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003771/0.8604, allocations: 115.7 kB / 0.586 GB, free: 109.2 MB / 430.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.00118/0.8616, allocations: 0.5092 MB / 0.5865 GB, free: 108.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006464/0.8623, allocations: 197.7 kB / 0.5867 GB, free: 108.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/0.8749, allocations: 9.859 MB / 0.5964 GB, free: 98.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.135e-05/0.875, allocations: 99.84 kB / 0.5965 GB, free: 98.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/0.8751, allocations: 0 / 0.5965 GB, free: 98.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.911e-05/0.8751, allocations: 11.95 kB / 0.5965 GB, free: 98.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.8917, allocations: 13.26 MB / 0.6094 GB, free: 85.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.8918, allocations: 0 / 0.6094 GB, free: 85.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/0.8935, allocations: 367.5 kB / 0.6098 GB, free: 84.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005422/0.899, allocations: 3.808 MB / 0.6135 GB, free: 80.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003977/0.8994, allocations: 63.91 kB / 0.6135 GB, free: 80.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006484/0.9059, allocations: 8.756 MB / 0.6221 GB, free: 71.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.9059, allocations: 4.031 kB / 0.6221 GB, free: 71.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/0.9199, allocations: 10.69 MB / 0.6325 GB, free: 61.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/0.9214, allocations: 0.6913 MB / 0.6332 GB, free: 60.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005802/0.922, allocations: 115.1 kB / 0.6333 GB, free: 60.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/0.9243, allocations: 199.6 kB / 0.6335 GB, free: 60 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005146/0.9248, allocations: 221.7 kB / 0.6337 GB, free: 59.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002223/0.925, allocations: 87.94 kB / 0.6338 GB, free: 59.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001652/0.9267, allocations: 1.27 MB / 0.635 GB, free: 58.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9267, allocations: 0 / 0.635 GB, free: 58.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005103/0.9318, allocations: 1.801 MB / 0.6368 GB, free: 56.73 MB / 430.1 MB 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.006522/0.9383, allocations: 1.747 MB / 0.6385 GB, free: 55.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009092/0.9475, allocations: 4.204 MB / 0.6426 GB, free: 51.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.9475, allocations: 4.562 kB / 0.6426 GB, free: 51.04 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006122/0.9536, allocations: 3.088 MB / 0.6456 GB, free: 47.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006512/0.9602, allocations: 1.091 MB / 0.6467 GB, free: 46.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.9747, allocations: 9.365 MB / 0.6558 GB, free: 37.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/0.9767, allocations: 2.162 MB / 0.658 GB, free: 35.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003534/0.9803, allocations: 1.738 MB / 0.6597 GB, free: 33.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000788/0.9811, allocations: 183.4 kB / 0.6598 GB, free: 33.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.173e-06/0.9811, allocations: 4 kB / 0.6598 GB, free: 33.35 MB / 430.1 MB Notification: Performance of Templates: time 0.2878/1.269, allocations: 91.96 MB / 0.7496 GB, free: 107.2 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)