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.001358/0.001358, allocations: 110.7 kB / 18.35 MB, free: 4.84 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.001296/0.001296, 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.356/1.356, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001187/0.001187, allocations: 47.94 kB / 329.1 MB, free: 3.352 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.08933, allocations: 46.61 MB / 375.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2799/0.3693, allocations: 90.13 MB / 465.9 MB, free: 5.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03123/0.4006, allocations: 21.31 MB / 487.2 MB, free: 100 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003587/0.4042, allocations: 83.5 kB / 487.3 MB, free: 16 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.4075, allocations: 0.9434 MB / 488.2 MB, free: 15.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.4184, allocations: 3.717 MB / 491.9 MB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01414/0.4325, allocations: 5.615 MB / 497.5 MB, free: 5.707 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.4428, allocations: 7.038 MB / 0.4927 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003555/0.4464, allocations: 1.845 MB / 0.4945 GB, free: 12.78 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4435/0.89, allocations: 74.84 MB / 0.5676 GB, free: 55.62 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07036/0.9604, allocations: 31.91 MB / 0.5988 GB, free: 45.91 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001085/0.9616, allocations: 248.9 kB / 0.599 GB, free: 45.91 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01462/0.9762, allocations: 6.089 MB / 0.605 GB, free: 44.42 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002322/0.9786, allocations: 1.088 MB / 0.606 GB, free: 44.06 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00277/0.9814, allocations: 1.493 MB / 0.6075 GB, free: 43.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009615/0.991, allocations: 5.524 MB / 0.6129 GB, free: 39.37 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.9911, allocations: 0 / 0.6129 GB, free: 39.37 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.9911, allocations: 0 / 0.6129 GB, free: 39.37 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001105/0.9912, allocations: 0 / 0.6129 GB, free: 39.37 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.009315/1.001, allocations: 3.504 MB / 0.6163 GB, free: 36.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/1.001, allocations: 12.03 kB / 0.6163 GB, free: 36.29 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/1.002, allocations: 304.6 kB / 0.6166 GB, free: 35.98 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/1.005, allocations: 1.671 MB / 0.6183 GB, free: 34.64 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/1.005, allocations: 217.7 kB / 0.6185 GB, free: 34.49 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003756/1.005, allocations: 203.8 kB / 0.6187 GB, free: 34.35 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00532/1.011, allocations: 3.289 MB / 0.6219 GB, free: 31.93 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.196e-05/1.011, allocations: 15.5 kB / 0.6219 GB, free: 31.92 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002396/1.011, allocations: 84.28 kB / 0.622 GB, free: 31.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002571/1.011, allocations: 250.3 kB / 0.6222 GB, free: 31.69 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005338/1.017, allocations: 3.112 MB / 0.6252 GB, free: 29.62 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.01802/1.035, allocations: 13.78 MB / 0.6387 GB, free: 17.54 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003518/1.038, allocations: 2.221 MB / 0.6409 GB, free: 15.81 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/1.04, allocations: 1.357 MB / 0.6422 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007722/1.048, allocations: 5.861 MB / 0.6479 GB, free: 8.117 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/1.048, allocations: 48.56 kB / 0.648 GB, free: 8.062 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008516/1.049, allocations: 177.9 kB / 0.6481 GB, free: 7.887 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 8.135e-06/1.049, allocations: 0 / 0.6481 GB, free: 7.887 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.02268/1.072, allocations: 9.153 MB / 0.6571 GB, free: 14.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.072, allocations: 73.41 kB / 0.6571 GB, free: 14.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/1.075, allocations: 1.837 MB / 0.6589 GB, free: 12.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002933/1.075, allocations: 65.7 kB / 0.659 GB, free: 12.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008957/1.076, allocations: 1.059 MB / 0.66 GB, free: 11.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008288/1.077, allocations: 0.6791 MB / 0.6607 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009731/1.078, allocations: 464.3 kB / 0.6611 GB, free: 10.44 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.078, allocations: 305.1 kB / 0.6614 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002396/1.08, allocations: 1.229 MB / 0.6626 GB, free: 8.898 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003026/1.083, allocations: 1.812 MB / 0.6644 GB, free: 6.852 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005549/1.089, allocations: 3.155 MB / 0.6675 GB, free: 3.527 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/1.089, allocations: 4 kB / 0.6675 GB, free: 3.523 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008612/1.098, allocations: 4.288 MB / 0.6717 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/1.098, allocations: 16 kB / 0.6717 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.962e-05/1.098, allocations: 20.09 kB / 0.6717 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/1.112, allocations: 3.63 MB / 0.6752 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/1.114, allocations: 329.8 kB / 0.6756 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008158/1.122, allocations: 3.946 MB / 0.6794 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002565/1.125, allocations: 100.1 kB / 0.6795 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005026/1.125, allocations: 121.8 kB / 0.6796 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003531/1.129, allocations: 1.668 MB / 0.6813 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002854/1.132, allocations: 1.757 MB / 0.683 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005036/1.137, allocations: 3.046 MB / 0.6859 GB, free: 324 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.47e-05/1.137, allocations: 8 kB / 0.686 GB, free: 316 kB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007985/1.145, allocations: 4.025 MB / 0.6899 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/1.145, allocations: 12.97 kB / 0.6899 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.251e-05/1.145, allocations: 16 kB / 0.6899 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009973/1.155, allocations: 2.756 MB / 0.6926 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/1.157, allocations: 377.2 kB / 0.693 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006832/1.164, allocations: 3.466 MB / 0.6963 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/1.166, allocations: 91.95 kB / 0.6964 GB, free: 5.707 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004523/1.166, allocations: 112 kB / 0.6965 GB, free: 5.598 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.0009278/1.167, allocations: 322.2 kB / 0.6969 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008202/1.168, allocations: 225.3 kB / 0.6971 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008483/1.177, allocations: 3.95 MB / 0.7009 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.34e-05/1.177, allocations: 24 kB / 0.7009 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/1.177, allocations: 0 / 0.7009 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006207/1.183, allocations: 3.374 MB / 0.7042 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/1.196, allocations: 6.292 MB / 0.7104 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.196, allocations: 4 kB / 0.7104 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/1.197, allocations: 323.3 kB / 0.7107 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004217/1.201, allocations: 1.156 MB / 0.7118 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00054/1.202, allocations: 75.89 kB / 0.7119 GB, free: 5.789 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/1.213, allocations: 11.06 MB / 0.7227 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.213, allocations: 0 / 0.7227 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/1.224, allocations: 5.186 MB / 0.7278 GB, free: 4.805 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.225, allocations: 0.5914 MB / 0.7283 GB, free: 4.195 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007538/1.226, allocations: 59.97 kB / 0.7284 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/1.228, allocations: 67.95 kB / 0.7285 GB, free: 4.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004194/1.228, allocations: 173.7 kB / 0.7286 GB, free: 3.898 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002031/1.228, allocations: 83.95 kB / 0.7287 GB, free: 3.816 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001927/1.23, allocations: 1.26 MB / 0.7299 GB, free: 2.535 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.23, allocations: 0 / 0.7299 GB, free: 2.535 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005596/1.236, allocations: 1.73 MB / 0.7316 GB, free: 0.8047 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00268/1.239, allocations: 1 MB / 0.7326 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01311/1.252, allocations: 5.121 MB / 0.7376 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/1.252, allocations: 0 / 0.7376 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004488/1.256, allocations: 2.238 MB / 0.7398 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/1.262, allocations: 1.051 MB / 0.7408 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/1.274, allocations: 5.722 MB / 0.7464 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/1.276, allocations: 1.846 MB / 0.7482 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.277, allocations: 210.7 kB / 0.7484 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/1.277, allocations: 4 kB / 0.7484 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of Templates: time 0.3298/1.606, allocations: 88.69 MB / 0.835 GB, free: 210.6 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)