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.001481/0.001482, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001553/0.001553, allocations: 192.9 kB / 16.14 MB, free: 6.715 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.507/1.507, allocations: 205.1 MB / 222 MB, free: 4.75 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.001362/0.001362, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2332, allocations: 46.62 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.0834/0.3166, allocations: 96.08 MB / 420.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2633/0.58, allocations: 35.74 MB / 456.5 MB, free: 1.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003423/0.5835, allocations: 70.81 kB / 456.6 MB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003557/0.5871, allocations: 1.18 MB / 457.7 MB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01151/0.5986, allocations: 3.936 MB / 461.7 MB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02192/0.6205, allocations: 7.606 MB / 469.3 MB, free: 1.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.6307, allocations: 8.82 MB / 478.1 MB, free: 1.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003033/0.6338, allocations: 1.772 MB / 479.9 MB, free: 1.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01298/0.6468, allocations: 5.477 MB / 485.3 MB, free: 188 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005966/0.6528, allocations: 2.28 MB / 487.6 MB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009575/0.6538, allocations: 148.1 kB / 487.8 MB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02245/0.6762, allocations: 8.967 MB / 496.7 MB, free: 13.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002267/0.6785, allocations: 0.7479 MB / 497.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003082/0.6816, allocations: 1.268 MB / 498.8 MB, free: 13.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02247/0.7041, allocations: 8.555 MB / 0.4954 GB, free: 6.871 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.7042, allocations: 0 / 0.4954 GB, free: 6.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.7042, allocations: 0 / 0.4954 GB, free: 6.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.457e-05/0.7043, allocations: 2.719 kB / 0.4954 GB, free: 6.871 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.009413/0.7137, allocations: 3.435 MB / 0.4988 GB, free: 3.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.7137, allocations: 8.031 kB / 0.4988 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.725, allocations: 1.215 MB / 0.5 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002568/0.7276, allocations: 1.331 MB / 0.5013 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.7279, allocations: 348.9 kB / 0.5016 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003988/0.7283, allocations: 190.4 kB / 0.5018 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008588/0.7369, allocations: 3.425 MB / 0.5051 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.668e-05/0.737, allocations: 10.62 kB / 0.5051 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003041/0.7373, allocations: 81.84 kB / 0.5052 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.7375, allocations: 101.8 kB / 0.5053 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008707/0.7462, allocations: 3.408 MB / 0.5086 GB, free: 11.88 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.02101/0.7672, allocations: 14.36 MB / 0.5227 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007099/0.7743, allocations: 2.813 MB / 0.5254 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002627/0.777, allocations: 1.431 MB / 0.5268 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0466/0.8236, allocations: 24.28 MB / 0.5505 GB, free: 348 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.287e-05/0.8237, allocations: 56.56 kB / 0.5506 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00268/0.8264, allocations: 447.1 kB / 0.551 GB, free: 15.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=175): time 8.546e-06/0.8264, allocations: 0 / 0.551 GB, free: 15.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03909/0.8655, allocations: 11.99 MB / 0.5627 GB, free: 3.898 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.8656, allocations: 150.5 kB / 0.5628 GB, free: 3.719 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.8676, allocations: 1.415 MB / 0.5642 GB, free: 2.297 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.8679, allocations: 61.7 kB / 0.5643 GB, free: 2.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005771/0.8685, allocations: 0.7874 MB / 0.5651 GB, free: 1.438 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006058/0.8691, allocations: 0.6712 MB / 0.5657 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007727/0.8699, allocations: 451.7 kB / 0.5661 GB, free: 332 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.071e-05/0.87, allocations: 301.1 kB / 0.5664 GB, free: 28 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002616/0.8726, allocations: 1.267 MB / 0.5677 GB, free: 14.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/0.8755, allocations: 1.702 MB / 0.5693 GB, free: 12.89 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005367/0.8809, allocations: 2.923 MB / 0.5722 GB, free: 9.855 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.8809, allocations: 4 kB / 0.5722 GB, free: 9.852 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008196/0.8891, allocations: 3.94 MB / 0.576 GB, free: 5.949 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.8892, allocations: 12 kB / 0.576 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/0.8892, allocations: 14.28 kB / 0.5761 GB, free: 5.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004865/0.8941, allocations: 1.579 MB / 0.5776 GB, free: 4.328 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/0.8963, allocations: 449.8 kB / 0.578 GB, free: 3.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00612/0.9024, allocations: 6.698 MB / 0.5846 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002392/0.9048, allocations: 191.6 kB / 0.5848 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003333/0.9051, allocations: 111.9 kB / 0.5849 GB, free: 12.71 MB / 494.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.001174/0.9063, allocations: 0.5132 MB / 0.5854 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006026/0.9069, allocations: 197.7 kB / 0.5856 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/0.9209, allocations: 9.851 MB / 0.5952 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.819e-05/0.921, allocations: 103.8 kB / 0.5953 GB, free: 1.977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.9211, allocations: 0 / 0.5953 GB, free: 1.977 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/0.9211, allocations: 15.05 kB / 0.5953 GB, free: 1.965 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01819/0.9393, allocations: 13.27 MB / 0.6082 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.9393, allocations: 0 / 0.6082 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.9412, allocations: 361.8 kB / 0.6086 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006499/0.9477, allocations: 3.802 MB / 0.6123 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003474/0.9481, allocations: 67.91 kB / 0.6124 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008169/0.9563, allocations: 8.767 MB / 0.6209 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.9563, allocations: 4.031 kB / 0.6209 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1697/1.126, allocations: 10.68 MB / 0.6314 GB, free: 247.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.127, allocations: 0.6958 MB / 0.632 GB, free: 247.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000385/1.128, allocations: 108.2 kB / 0.6321 GB, free: 247.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/1.13, allocations: 205.3 kB / 0.6323 GB, free: 247.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004599/1.13, allocations: 222.7 kB / 0.6326 GB, free: 247 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.13, allocations: 89.2 kB / 0.6326 GB, free: 247 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001521/1.132, allocations: 1.271 MB / 0.6339 GB, free: 246.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/1.132, allocations: 0 / 0.6339 GB, free: 246.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004108/1.136, allocations: 1.8 MB / 0.6356 GB, free: 246.3 MB / 0.5137 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.004667/1.141, allocations: 1.746 MB / 0.6373 GB, free: 246.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007502/1.148, allocations: 4.205 MB / 0.6415 GB, free: 244.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/1.148, allocations: 4.531 kB / 0.6415 GB, free: 244.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00477/1.153, allocations: 3.1 MB / 0.6445 GB, free: 243.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004563/1.157, allocations: 1.074 MB / 0.6455 GB, free: 243.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009621/1.167, allocations: 9.364 MB / 0.6547 GB, free: 238.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/1.168, allocations: 2.161 MB / 0.6568 GB, free: 236.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002431/1.171, allocations: 1.737 MB / 0.6585 GB, free: 234.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/1.171, allocations: 191.4 kB / 0.6587 GB, free: 234.4 MB / 0.5137 GB Notification: Performance of SimCode: time 7.12e-07/1.171, allocations: 0 / 0.6587 GB, free: 234.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.09603/1.267, allocations: 91.97 MB / 0.7485 GB, free: 142.3 MB / 0.5137 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)