Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008391/0.0008435, allocations: 90.53 kB / 16.65 MB, free: 6.59 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.0009326/0.0009329, allocations: 181.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002809, allocations: 4 kB / 301.4 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09674, allocations: 50.42 MB / 351.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2698/0.3666, allocations: 93.76 MB / 445.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03082/0.3975, allocations: 22.3 MB / 467.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.4007, allocations: 107.1 kB / 468 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.4029, allocations: 0.8238 MB / 468.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009392/0.4123, allocations: 3.505 MB / 472.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01178/0.4241, allocations: 4.938 MB / 477.3 MB, free: 7.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.4354, allocations: 10.71 MB / 488 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002931/0.4384, allocations: 1.577 MB / 489.5 MB, free: 11.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.368/0.8064, allocations: 73.39 MB / 0.5497 GB, free: 33.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05259/0.859, allocations: 31.95 MB / 0.5809 GB, free: 18.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008663/0.8599, allocations: 127.8 kB / 0.5811 GB, free: 18.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01258/0.8725, allocations: 5.955 MB / 0.5869 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001925/0.8745, allocations: 0.9655 MB / 0.5878 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.8764, allocations: 1.39 MB / 0.5892 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008149/0.8846, allocations: 5.314 MB / 0.5944 GB, free: 8.211 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.8846, allocations: 4 kB / 0.5944 GB, free: 8.207 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.8846, allocations: 0 / 0.5944 GB, free: 8.207 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.141e-05/0.8847, allocations: 4 kB / 0.5944 GB, free: 8.203 MB / 430.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.006915/0.8916, allocations: 2.989 MB / 0.5973 GB, free: 5.426 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.8917, allocations: 12.03 kB / 0.5973 GB, free: 5.414 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.8931, allocations: 306.9 kB / 0.5976 GB, free: 5.113 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/0.8962, allocations: 1.58 MB / 0.5991 GB, free: 3.871 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.8964, allocations: 224.1 kB / 0.5993 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003169/0.8968, allocations: 198.4 kB / 0.5995 GB, free: 3.582 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004534/0.9013, allocations: 3.297 MB / 0.6028 GB, free: 1.148 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.937e-05/0.9014, allocations: 7.75 kB / 0.6028 GB, free: 1.145 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.9016, allocations: 83.53 kB / 0.6028 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002583/0.9019, allocations: 259.3 kB / 0.6031 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004657/0.9065, allocations: 3.11 MB / 0.6061 GB, free: 14.83 MB / 446.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.0189/0.9255, allocations: 13.81 MB / 0.6196 GB, free: 2.734 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004004/0.9295, allocations: 2.228 MB / 0.6218 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002058/0.9316, allocations: 1.36 MB / 0.6231 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008231/0.9398, allocations: 5.874 MB / 0.6289 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.9399, allocations: 52.56 kB / 0.6289 GB, free: 8.922 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008611/0.9407, allocations: 188.7 kB / 0.6291 GB, free: 8.738 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.959e-06/0.9408, allocations: 0 / 0.6291 GB, free: 8.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02176/0.9625, allocations: 9.218 MB / 0.6381 GB, free: 15.45 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.9626, allocations: 73.41 kB / 0.6382 GB, free: 15.37 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00257/0.9652, allocations: 1.841 MB / 0.64 GB, free: 13.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002129/0.9654, allocations: 61.7 kB / 0.64 GB, free: 13.42 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000789/0.9662, allocations: 1.055 MB / 0.641 GB, free: 12.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006061/0.9668, allocations: 0.6859 MB / 0.6417 GB, free: 11.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.9671, allocations: 198.4 kB / 0.6419 GB, free: 11.48 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.911e-05/0.9672, allocations: 301.1 kB / 0.6422 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002022/0.9692, allocations: 1.226 MB / 0.6434 GB, free: 9.949 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.9716, allocations: 1.808 MB / 0.6452 GB, free: 7.906 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004413/0.976, allocations: 3.169 MB / 0.6482 GB, free: 4.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/0.976, allocations: 4 kB / 0.6482 GB, free: 4.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007419/0.9835, allocations: 4.302 MB / 0.6525 GB, free: 364 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004758/0.984, allocations: 0.6048 MB / 0.653 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.469e-05/0.984, allocations: 16 kB / 0.6531 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/0.9979, allocations: 3.654 MB / 0.6566 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.9994, allocations: 331.9 kB / 0.6569 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007256/1.007, allocations: 3.956 MB / 0.6608 GB, free: 7.613 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/1.01, allocations: 179.9 kB / 0.661 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/1.01, allocations: 112 kB / 0.6611 GB, free: 7.328 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/1.01, allocations: 4 kB / 0.6611 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006917/1.017, allocations: 3.813 MB / 0.6648 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.834e-05/1.017, allocations: 20 kB / 0.6648 GB, free: 3.598 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01012/1.027, allocations: 2.879 MB / 0.6676 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/1.029, allocations: 377.6 kB / 0.668 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006046/1.035, allocations: 3.482 MB / 0.6714 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/1.037, allocations: 186.6 kB / 0.6716 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003969/1.038, allocations: 116 kB / 0.6717 GB, free: 12.62 MB / 0.4981 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.001775/1.039, allocations: 0.6989 MB / 0.6724 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006481/1.04, allocations: 229.1 kB / 0.6726 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008633/1.049, allocations: 3.975 MB / 0.6765 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/1.049, allocations: 24 kB / 0.6765 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/1.049, allocations: 0 / 0.6765 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006116/1.055, allocations: 3.391 MB / 0.6798 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/1.067, allocations: 6.315 MB / 0.686 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/1.067, allocations: 0 / 0.686 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.068, allocations: 325.5 kB / 0.6863 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004734/1.073, allocations: 1.232 MB / 0.6875 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000238/1.073, allocations: 75.94 kB / 0.6876 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/1.083, allocations: 10.46 MB / 0.6978 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.083, allocations: 0 / 0.6978 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.177/1.26, allocations: 5.199 MB / 0.7029 GB, free: 231.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.262, allocations: 0.6028 MB / 0.7034 GB, free: 231.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/1.262, allocations: 53.44 kB / 0.7035 GB, free: 231.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/1.264, allocations: 145.8 kB / 0.7036 GB, free: 231.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004219/1.264, allocations: 174 kB / 0.7038 GB, free: 231.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001858/1.264, allocations: 82.94 kB / 0.7039 GB, free: 231.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001878/1.266, allocations: 1.26 MB / 0.7051 GB, free: 231.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/1.266, allocations: 0 / 0.7051 GB, free: 231.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004752/1.271, allocations: 1.741 MB / 0.7068 GB, free: 230.9 MB / 0.5137 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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00244/1.273, allocations: 1.002 MB / 0.7078 GB, free: 230.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01099/1.284, allocations: 5.046 MB / 0.7127 GB, free: 229.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.284, allocations: 1.312 kB / 0.7127 GB, free: 229.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004122/1.288, allocations: 2.249 MB / 0.7149 GB, free: 228 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005046/1.294, allocations: 0.992 MB / 0.7159 GB, free: 227.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008562/1.302, allocations: 6.86 MB / 0.7226 GB, free: 224.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/1.303, allocations: 1.876 MB / 0.7244 GB, free: 223.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002964/1.306, allocations: 0.9561 MB / 0.7253 GB, free: 223.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005287/1.307, allocations: 189.9 kB / 0.7255 GB, free: 223.5 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/1.307, allocations: 0 / 0.7255 GB, free: 223.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.08777/1.395, allocations: 71.83 MB / 0.7957 GB, free: 155.2 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)