Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001554/0.001554, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.556/1.556, allocations: 170.6 MB / 183.8 MB, free: 11.47 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001784/0.001784, allocations: 98.78 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.454e-05/3.456e-05, allocations: 4 kB / 268.9 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08349, allocations: 38.76 MB / 307.6 MB, free: 14.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.866/5.95, allocations: 2.551 GB / 2.852 GB, free: 51.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/5.95, allocations: 77.02 kB / 2.852 GB, free: 51.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147/10.1, allocations: 0.9963 GB / 3.848 GB, free: 23.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/10.1, allocations: 0 / 3.848 GB, free: 23.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002287/10.1, allocations: 71.81 kB / 3.848 GB, free: 23.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.0187/10.12, allocations: 4.259 MB / 3.852 GB, free: 21.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/10.12, allocations: 13.11 kB / 3.852 GB, free: 21.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008099/10.12, allocations: 0.9828 MB / 3.853 GB, free: 21.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006567/10.13, allocations: 2.205 MB / 3.855 GB, free: 20.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003099/10.13, allocations: 286.9 kB / 3.856 GB, free: 20.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009508/10.13, allocations: 251.6 kB / 3.856 GB, free: 20.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009979/10.14, allocations: 4.473 MB / 3.86 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.676e-05/10.14, allocations: 7.406 kB / 3.86 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000363/10.14, allocations: 110.2 kB / 3.86 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002334/10.14, allocations: 218 kB / 3.861 GB, free: 19.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007849/10.15, allocations: 4.043 MB / 3.865 GB, free: 19.82 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.0255/10.18, allocations: 19.01 MB / 3.883 GB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005282/10.18, allocations: 2.775 MB / 3.886 GB, free: 8.852 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/10.18, allocations: 1.478 MB / 3.887 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03123/10.21, allocations: 17.06 MB / 3.904 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.646e-05/10.21, allocations: 60.62 kB / 3.904 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002398/10.22, allocations: 239.3 kB / 3.904 GB, free: 13.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 1.222e-05/10.22, allocations: 0 / 3.904 GB, free: 13.69 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.03023/10.25, allocations: 11.19 MB / 3.915 GB, free: 12.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/10.25, allocations: 124.8 kB / 3.915 GB, free: 12.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/10.25, allocations: 1.658 MB / 3.917 GB, free: 11.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002434/10.25, allocations: 62.39 kB / 3.917 GB, free: 11.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006544/10.25, allocations: 1.148 MB / 3.918 GB, free: 10.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005322/10.25, allocations: 0.7289 MB / 3.919 GB, free: 9.539 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/10.25, allocations: 48 kB / 3.919 GB, free: 9.492 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000211/10.25, allocations: 404.6 kB / 3.919 GB, free: 9.121 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/10.25, allocations: 1.32 MB / 3.921 GB, free: 7.949 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002523/10.26, allocations: 1.817 MB / 3.922 GB, free: 6.113 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002439/10.26, allocations: 1.54 MB / 3.924 GB, free: 4.816 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-06/10.26, allocations: 8 kB / 3.924 GB, free: 4.809 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.008028/10.27, allocations: 4.603 MB / 3.928 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3413/10.61, allocations: 5.531 MB / 3.934 GB, free: 33.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.397e-05/10.61, allocations: 13.56 kB / 3.934 GB, free: 33.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01513/10.62, allocations: 3.781 MB / 3.937 GB, free: 33.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/10.63, allocations: 314.3 kB / 3.938 GB, free: 33.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007882/10.63, allocations: 4.562 MB / 3.942 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/10.64, allocations: 316 kB / 3.943 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003653/10.64, allocations: 118.6 kB / 3.943 GB, free: 32.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/10.64, allocations: 6.531 kB / 3.943 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006984/10.64, allocations: 3.937 MB / 3.946 GB, free: 32.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/10.64, allocations: 12.97 kB / 3.946 GB, free: 32.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008681/10.65, allocations: 2.622 MB / 3.949 GB, free: 32.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/10.65, allocations: 376.3 kB / 3.949 GB, free: 32.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005118/10.66, allocations: 3.557 MB / 3.953 GB, free: 32.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/10.66, allocations: 309.1 kB / 3.953 GB, free: 32.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003336/10.66, allocations: 114.3 kB / 3.953 GB, free: 32.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.0008299/10.66, allocations: 251.1 kB / 3.954 GB, free: 32.01 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/10.66, allocations: 229.2 kB / 3.954 GB, free: 32.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/10.68, allocations: 9.375 MB / 3.963 GB, free: 31.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.542e-05/10.68, allocations: 112 kB / 3.963 GB, free: 31.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/10.68, allocations: 2.531 kB / 3.963 GB, free: 31.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008964/10.69, allocations: 8.249 MB / 3.971 GB, free: 30.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/10.7, allocations: 13.6 MB / 3.984 GB, free: 29.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/10.7, allocations: 5.469 kB / 3.984 GB, free: 29.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/10.71, allocations: 406.6 kB / 3.985 GB, free: 29.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00563/10.71, allocations: 2.676 MB / 3.987 GB, free: 29.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005233/10.71, allocations: 80.72 kB / 3.987 GB, free: 29.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004727/10.72, allocations: 6.922 MB / 3.994 GB, free: 25.37 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/10.72, allocations: 4.5 kB / 3.994 GB, free: 25.37 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01334/10.73, allocations: 9.963 MB / 4.004 GB, free: 24.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/10.73, allocations: 0.8228 MB / 4.005 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006299/10.73, allocations: 59.16 kB / 4.005 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/10.73, allocations: 262.7 kB / 4.005 GB, free: 24.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004039/10.74, allocations: 197.5 kB / 4.005 GB, free: 24.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001949/10.74, allocations: 84.03 kB / 4.005 GB, free: 24.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001877/10.74, allocations: 1.314 MB / 4.007 GB, free: 24.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.563e-06/10.74, allocations: 1.719 kB / 4.007 GB, free: 24.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01327/10.75, allocations: 3.054 MB / 4.01 GB, free: 24.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0132/10.76, allocations: 3.051 MB / 4.013 GB, free: 23.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01113/10.78, allocations: 6.207 MB / 4.019 GB, free: 23.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/10.78, allocations: 0 / 4.019 GB, free: 23.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005479/10.78, allocations: 2.98 MB / 4.022 GB, free: 23.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006457/10.79, allocations: 1.081 MB / 4.023 GB, free: 22.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/10.8, allocations: 7.336 MB / 4.03 GB, free: 20.28 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001825/10.8, allocations: 2.578 MB / 4.032 GB, free: 19.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005144/10.81, allocations: 2.134 MB / 4.034 GB, free: 19.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005546/10.81, allocations: 158.9 kB / 4.035 GB, free: 19.31 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/10.81, allocations: 0 / 4.035 GB, free: 19.31 MB / 426.7 MB Notification: Performance of Templates: time 0.4721/11.28, allocations: 117.7 MB / 4.149 GB, free: 49.77 MB / 442.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)