Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.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.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 107.8 kB / 18.36 MB, free: 4.844 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.001084/0.001084, allocations: 184.2 kB / 19.29 MB, free: 3.918 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.25/1.25, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001172/0.001172, allocations: 55.92 kB / 329.1 MB, free: 3.355 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07355/0.07473, allocations: 46.61 MB / 375.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2315/0.3062, allocations: 90.12 MB / 465.9 MB, free: 5.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02882/0.3351, allocations: 21.31 MB / 487.2 MB, free: 104 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.3373, allocations: 83.5 kB / 487.3 MB, free: 20 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.3396, allocations: 0.9435 MB / 488.2 MB, free: 15.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008352/0.3479, allocations: 3.713 MB / 491.9 MB, free: 11.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01182/0.3598, allocations: 5.626 MB / 497.5 MB, free: 5.699 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008163/0.3679, allocations: 7.023 MB / 0.4927 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002942/0.3709, allocations: 1.846 MB / 0.4945 GB, free: 12.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3725/0.7434, allocations: 74.85 MB / 0.5676 GB, free: 55.66 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06368/0.8072, allocations: 31.91 MB / 0.5988 GB, free: 45.95 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007593/0.808, allocations: 251.8 kB / 0.599 GB, free: 45.95 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01183/0.8198, allocations: 6.084 MB / 0.605 GB, free: 44.46 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.8209, allocations: 1.089 MB / 0.6061 GB, free: 44.11 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.8226, allocations: 1.493 MB / 0.6075 GB, free: 43.51 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005983/0.8286, allocations: 5.517 MB / 0.6129 GB, free: 39.43 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8286, allocations: 3.984 kB / 0.6129 GB, free: 39.42 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.8286, allocations: 0 / 0.6129 GB, free: 39.42 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.962e-05/0.8287, allocations: 0 / 0.6129 GB, free: 39.42 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.006799/0.8355, allocations: 3.5 MB / 0.6163 GB, free: 36.35 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.8355, allocations: 8.031 kB / 0.6163 GB, free: 36.34 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008482/0.8364, allocations: 308.6 kB / 0.6166 GB, free: 36.04 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.8386, allocations: 1.678 MB / 0.6183 GB, free: 34.7 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.8387, allocations: 218.9 kB / 0.6185 GB, free: 34.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.839, allocations: 201.9 kB / 0.6187 GB, free: 34.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004123/0.8432, allocations: 3.296 MB / 0.6219 GB, free: 31.98 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.707e-05/0.8432, allocations: 7.562 kB / 0.6219 GB, free: 31.98 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.8434, allocations: 81.59 kB / 0.622 GB, free: 31.96 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002431/0.8437, allocations: 254.2 kB / 0.6222 GB, free: 31.74 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004254/0.848, allocations: 3.108 MB / 0.6252 GB, free: 29.67 MB / 478.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.01413/0.8621, allocations: 13.78 MB / 0.6387 GB, free: 17.58 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003593/0.8657, allocations: 2.219 MB / 0.6409 GB, free: 15.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.8675, allocations: 1.352 MB / 0.6422 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006315/0.8738, allocations: 5.861 MB / 0.6479 GB, free: 8.113 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.8738, allocations: 52.56 kB / 0.648 GB, free: 8.055 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000496/0.8743, allocations: 173.9 kB / 0.6481 GB, free: 7.883 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.076e-06/0.8744, allocations: 0 / 0.6481 GB, free: 7.883 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01995/0.8943, allocations: 9.155 MB / 0.6571 GB, free: 14.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.8944, allocations: 73.41 kB / 0.6571 GB, free: 14.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.8967, allocations: 1.841 MB / 0.6589 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001938/0.8969, allocations: 68.8 kB / 0.659 GB, free: 12.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007335/0.8977, allocations: 1.059 MB / 0.66 GB, free: 11.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005484/0.8982, allocations: 0.6747 MB / 0.6607 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000751/0.899, allocations: 464.3 kB / 0.6611 GB, free: 10.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.8991, allocations: 301.1 kB / 0.6614 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.9012, allocations: 1.233 MB / 0.6626 GB, free: 8.895 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/0.9036, allocations: 1.802 MB / 0.6644 GB, free: 6.852 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004606/0.9083, allocations: 3.161 MB / 0.6675 GB, free: 3.523 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.9083, allocations: 4 kB / 0.6675 GB, free: 3.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007312/0.9156, allocations: 4.293 MB / 0.6717 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.9156, allocations: 16 kB / 0.6717 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.9157, allocations: 16 kB / 0.6717 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.9298, allocations: 3.631 MB / 0.6753 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.9311, allocations: 326.1 kB / 0.6756 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00645/0.9375, allocations: 3.952 MB / 0.6794 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.9395, allocations: 102.8 kB / 0.6795 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/0.9397, allocations: 116 kB / 0.6796 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002811/0.9425, allocations: 1.676 MB / 0.6813 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002292/0.9448, allocations: 1.749 MB / 0.683 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00432/0.9491, allocations: 3.049 MB / 0.686 GB, free: 320 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.237e-05/0.9492, allocations: 8 kB / 0.686 GB, free: 312 kB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006761/0.9559, allocations: 4.03 MB / 0.6899 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.956, allocations: 12 kB / 0.6899 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/0.956, allocations: 16 kB / 0.6899 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009974/0.966, allocations: 2.752 MB / 0.6926 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.9677, allocations: 373.3 kB / 0.693 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005588/0.9733, allocations: 3.467 MB / 0.6964 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/0.9757, allocations: 95.94 kB / 0.6964 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/0.9759, allocations: 108 kB / 0.6965 GB, free: 5.594 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0006301/0.9766, allocations: 321 kB / 0.6969 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/0.977, allocations: 229.3 kB / 0.6971 GB, free: 5.07 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007673/0.9847, allocations: 3.944 MB / 0.7009 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005849/0.9905, allocations: 3.372 MB / 0.7042 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.9906, allocations: 4 kB / 0.7042 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.9917, allocations: 0.5914 MB / 0.7048 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000352/0.9921, allocations: 56.55 kB / 0.7049 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/0.9934, allocations: 71.94 kB / 0.7049 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003664/0.9938, allocations: 169.8 kB / 0.7051 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008583/1.002, allocations: 3.766 MB / 0.7088 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007234/1.01, allocations: 4.718 MB / 0.7134 GB, free: 4.293 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002019/1.012, allocations: 1.397 MB / 0.7147 GB, free: 2.898 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001745/1.013, allocations: 1.224 MB / 0.7159 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of Backend: time 6.01e-07/1.013, allocations: 0 / 0.7159 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01212/1.026, allocations: 5.01 MB / 0.7208 GB, free: 12.82 MB / 0.545 GB Notification: Performance of SimCode: time 0.008351/1.034, allocations: 5.999 MB / 0.7267 GB, free: 6.789 MB / 0.545 GB Notification: Performance of Templates: time 0.2568/1.291, allocations: 74.02 MB / 0.799 GB, free: 249.4 MB / 0.5762 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)