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.001523/0.001523, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.00158/0.00158, allocations: 192 kB / 18.63 MB, free: 4.375 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.389/1.389, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009646/0.0009646, allocations: 51.39 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09898/0.09997, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2498/0.3498, allocations: 90.09 MB / 441.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0319/0.3818, allocations: 21.31 MB / 462.9 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004455/0.3863, allocations: 87.44 kB / 463 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003211/0.3895, allocations: 0.9473 MB / 463.9 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00909/0.3987, allocations: 3.721 MB / 467.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.012/0.4107, allocations: 5.677 MB / 473.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008866/0.4196, allocations: 7.034 MB / 480.4 MB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002656/0.4222, allocations: 1.839 MB / 482.2 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3774/0.7997, allocations: 74.88 MB / 0.544 GB, free: 60.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06544/0.8652, allocations: 31.92 MB / 0.5752 GB, free: 51.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.8662, allocations: 248.9 kB / 0.5754 GB, free: 51.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0134/0.8796, allocations: 6.096 MB / 0.5814 GB, free: 49.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00177/0.8814, allocations: 1.092 MB / 0.5825 GB, free: 48.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002202/0.8837, allocations: 1.497 MB / 0.5839 GB, free: 47.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009249/0.8929, allocations: 5.523 MB / 0.5893 GB, free: 43.72 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.893, allocations: 0 / 0.5893 GB, free: 43.72 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.893, allocations: 0 / 0.5893 GB, free: 43.72 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.977e-05/0.8931, allocations: 0 / 0.5893 GB, free: 43.72 MB / 446.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.008205/0.9013, allocations: 3.503 MB / 0.5927 GB, free: 40.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.9013, allocations: 12.03 kB / 0.5927 GB, free: 40.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008998/0.9022, allocations: 308.1 kB / 0.593 GB, free: 40.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.9053, allocations: 1.674 MB / 0.5947 GB, free: 39.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.9054, allocations: 213.2 kB / 0.5949 GB, free: 38.86 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/0.9058, allocations: 204.6 kB / 0.5951 GB, free: 38.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004509/0.9103, allocations: 3.294 MB / 0.5983 GB, free: 36.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.737e-05/0.9104, allocations: 7.281 kB / 0.5983 GB, free: 36.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/0.9106, allocations: 77.09 kB / 0.5984 GB, free: 36.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002327/0.9108, allocations: 258.3 kB / 0.5986 GB, free: 36.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00435/0.9152, allocations: 3.108 MB / 0.6016 GB, free: 34 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.01666/0.9318, allocations: 13.77 MB / 0.6151 GB, free: 21.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003388/0.9353, allocations: 2.217 MB / 0.6173 GB, free: 19.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.937, allocations: 1.355 MB / 0.6186 GB, free: 18.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007376/0.9444, allocations: 5.859 MB / 0.6243 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.9444, allocations: 56.56 kB / 0.6244 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006039/0.9451, allocations: 173.9 kB / 0.6245 GB, free: 11.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.867e-06/0.9451, allocations: 0 / 0.6245 GB, free: 11.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.01929/0.9644, allocations: 9.143 MB / 0.6335 GB, free: 2.324 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.9644, allocations: 73.41 kB / 0.6335 GB, free: 2.238 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.9666, allocations: 1.845 MB / 0.6353 GB, free: 360 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.9668, allocations: 61.7 kB / 0.6354 GB, free: 292 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007471/0.9675, allocations: 1.062 MB / 0.6364 GB, free: 15.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006071/0.9682, allocations: 0.6801 MB / 0.6371 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007478/0.9689, allocations: 460.3 kB / 0.6375 GB, free: 14.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.806e-05/0.969, allocations: 301.1 kB / 0.6378 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/0.971, allocations: 1.232 MB / 0.639 GB, free: 12.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.9736, allocations: 1.806 MB / 0.6408 GB, free: 10.51 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004704/0.9783, allocations: 3.161 MB / 0.6439 GB, free: 7.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/0.9784, allocations: 8 kB / 0.6439 GB, free: 7.172 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007486/0.9859, allocations: 4.294 MB / 0.6481 GB, free: 2.969 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.9859, allocations: 12 kB / 0.6481 GB, free: 2.957 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.986, allocations: 18.06 kB / 0.6481 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/1, allocations: 3.634 MB / 0.6516 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/1.002, allocations: 337.4 kB / 0.652 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006427/1.008, allocations: 3.949 MB / 0.6558 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/1.01, allocations: 99.88 kB / 0.6559 GB, free: 10.97 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002647/1.01, allocations: 116 kB / 0.656 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002733/1.013, allocations: 1.672 MB / 0.6577 GB, free: 9.18 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002273/1.015, allocations: 1.749 MB / 0.6594 GB, free: 7.184 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004604/1.02, allocations: 3.047 MB / 0.6623 GB, free: 3.961 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.138e-06/1.02, allocations: 4 kB / 0.6624 GB, free: 3.957 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006655/1.027, allocations: 4.03 MB / 0.6663 GB, free: 24 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/1.027, allocations: 12 kB / 0.6663 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.539e-05/1.027, allocations: 20.05 kB / 0.6663 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00921/1.036, allocations: 2.742 MB / 0.669 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/1.038, allocations: 382.8 kB / 0.6694 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005091/1.043, allocations: 3.462 MB / 0.6727 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/1.044, allocations: 91.95 kB / 0.6728 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002202/1.045, allocations: 116 kB / 0.6729 GB, free: 9.246 MB / 494.1 MB 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.0006059/1.045, allocations: 324 kB / 0.6732 GB, free: 8.945 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004705/1.046, allocations: 229.3 kB / 0.6735 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007135/1.053, allocations: 3.943 MB / 0.6773 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.859e-05/1.053, allocations: 27.98 kB / 0.6773 GB, free: 4.758 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/1.053, allocations: 4 kB / 0.6773 GB, free: 4.754 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005477/1.059, allocations: 3.372 MB / 0.6806 GB, free: 1.305 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/1.069, allocations: 6.292 MB / 0.6868 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/1.069, allocations: 0 / 0.6868 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/1.071, allocations: 319.8 kB / 0.6871 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003855/1.075, allocations: 1.16 MB / 0.6882 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001926/1.075, allocations: 75.89 kB / 0.6883 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009438/1.084, allocations: 11.06 MB / 0.6991 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.084, allocations: 8.047 kB / 0.6991 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008566/1.093, allocations: 5.185 MB / 0.7042 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.094, allocations: 0.5995 MB / 0.7047 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00035/1.095, allocations: 51.98 kB / 0.7048 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/1.096, allocations: 75.95 kB / 0.7049 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003744/1.096, allocations: 169.7 kB / 0.705 GB, free: 7.535 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001856/1.097, allocations: 83.89 kB / 0.7051 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001611/1.098, allocations: 1.263 MB / 0.7063 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/1.098, allocations: 0 / 0.7063 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003787/1.102, allocations: 1.726 MB / 0.708 GB, free: 4.445 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), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002105/1.104, allocations: 0.9951 MB / 0.709 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01011/1.114, allocations: 5.121 MB / 0.714 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.114, allocations: 0 / 0.714 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004179/1.118, allocations: 2.242 MB / 0.7162 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004649/1.123, allocations: 1.046 MB / 0.7172 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00994/1.133, allocations: 5.658 MB / 0.7227 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001454/1.135, allocations: 1.868 MB / 0.7246 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002933/1.138, allocations: 0.9517 MB / 0.7255 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/1.138, allocations: 195.4 kB / 0.7257 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of SimCode: time 5.31e-07/1.138, allocations: 0 / 0.7257 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of Templates: time 0.2516/1.39, allocations: 75.11 MB / 0.799 GB, free: 193.3 MB / 0.5294 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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)