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.001415/0.001415, allocations: 114.4 kB / 17.28 MB, free: 6.219 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.001549/0.00155, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.418/1.418, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 51.06 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1156, allocations: 49.45 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3114/0.4271, allocations: 93.18 MB / 443.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03493/0.4621, allocations: 21.78 MB / 465.2 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.4666, allocations: 115.1 kB / 465.3 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.47, allocations: 0.8316 MB / 466.1 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.4824, allocations: 3.481 MB / 469.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01422/0.4966, allocations: 5.222 MB / 474.8 MB, free: 8.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009939/0.5066, allocations: 7.081 MB / 481.9 MB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00388/0.5105, allocations: 1.833 MB / 483.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4132/0.9237, allocations: 74.44 MB / 0.5451 GB, free: 58.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05593/0.9796, allocations: 32.12 MB / 0.5765 GB, free: 48.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.9807, allocations: 247.6 kB / 0.5767 GB, free: 48.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01195/0.9927, allocations: 6.121 MB / 0.5827 GB, free: 46.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.9945, allocations: 1.085 MB / 0.5837 GB, free: 45.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.9969, allocations: 1.508 MB / 0.5852 GB, free: 44.58 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006168/1.003, allocations: 4.026 MB / 0.5892 GB, free: 41.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.003, allocations: 0 / 0.5892 GB, free: 41.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/1.003, allocations: 4 kB / 0.5892 GB, free: 41.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.143e-05/1.003, allocations: 4 kB / 0.5892 GB, free: 41.5 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.008176/1.011, allocations: 3.491 MB / 0.5926 GB, free: 38.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/1.011, allocations: 8.031 kB / 0.5926 GB, free: 38.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009771/1.012, allocations: 311.8 kB / 0.5929 GB, free: 38.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002386/1.015, allocations: 1.58 MB / 0.5944 GB, free: 36.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/1.015, allocations: 215.6 kB / 0.5946 GB, free: 36.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/1.015, allocations: 199.3 kB / 0.5948 GB, free: 36.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004511/1.02, allocations: 3.303 MB / 0.598 GB, free: 34.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/1.02, allocations: 8.391 kB / 0.598 GB, free: 34.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/1.02, allocations: 84.84 kB / 0.5981 GB, free: 34.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002302/1.02, allocations: 256.5 kB / 0.5984 GB, free: 33.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004292/1.025, allocations: 3.103 MB / 0.6014 GB, free: 31.86 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.01645/1.041, allocations: 13.77 MB / 0.6148 GB, free: 19.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003718/1.045, allocations: 2.218 MB / 0.617 GB, free: 18.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/1.047, allocations: 1.361 MB / 0.6183 GB, free: 16.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009426/1.056, allocations: 5.856 MB / 0.6241 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/1.056, allocations: 52.55 kB / 0.6241 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001067/1.057, allocations: 177.9 kB / 0.6243 GB, free: 10.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 6.712e-06/1.057, allocations: 4 kB / 0.6243 GB, free: 10.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.0222/1.079, allocations: 9.151 MB / 0.6332 GB, free: 1.078 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/1.08, allocations: 73.41 kB / 0.6333 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/1.082, allocations: 1.842 MB / 0.6351 GB, free: 15.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003367/1.083, allocations: 65.69 kB / 0.6352 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009059/1.084, allocations: 1.057 MB / 0.6362 GB, free: 13.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/1.085, allocations: 0.6784 MB / 0.6368 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/1.086, allocations: 459 kB / 0.6373 GB, free: 12.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/1.086, allocations: 305.1 kB / 0.6376 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/1.088, allocations: 1.229 MB / 0.6388 GB, free: 11.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002769/1.091, allocations: 1.807 MB / 0.6405 GB, free: 9.262 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005299/1.096, allocations: 3.156 MB / 0.6436 GB, free: 5.941 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.989e-05/1.097, allocations: 8 kB / 0.6436 GB, free: 5.934 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008479/1.105, allocations: 4.293 MB / 0.6478 GB, free: 1.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/1.105, allocations: 14.91 kB / 0.6478 GB, free: 1.719 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-05/1.105, allocations: 16.91 kB / 0.6479 GB, free: 1.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01479/1.12, allocations: 3.661 MB / 0.6514 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/1.121, allocations: 326.2 kB / 0.6517 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008067/1.13, allocations: 3.946 MB / 0.6556 GB, free: 9.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/1.132, allocations: 189 kB / 0.6558 GB, free: 9.629 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004335/1.133, allocations: 116 kB / 0.6559 GB, free: 9.516 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003381/1.136, allocations: 1.676 MB / 0.6575 GB, free: 7.832 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002683/1.139, allocations: 1.758 MB / 0.6592 GB, free: 5.828 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005002/1.144, allocations: 3.044 MB / 0.6622 GB, free: 2.609 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.614e-05/1.144, allocations: 11.94 kB / 0.6622 GB, free: 2.598 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007845/1.152, allocations: 4.025 MB / 0.6661 GB, free: 14.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/1.152, allocations: 12 kB / 0.6662 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.795e-05/1.152, allocations: 24.14 kB / 0.6662 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01002/1.162, allocations: 2.752 MB / 0.6689 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/1.164, allocations: 381.1 kB / 0.6692 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006351/1.17, allocations: 3.464 MB / 0.6726 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/1.173, allocations: 183.7 kB / 0.6728 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004486/1.173, allocations: 116 kB / 0.6729 GB, free: 7.785 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.0008542/1.174, allocations: 315.5 kB / 0.6732 GB, free: 7.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007441/1.175, allocations: 225.2 kB / 0.6734 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008693/1.184, allocations: 3.945 MB / 0.6773 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-05/1.184, allocations: 20 kB / 0.6773 GB, free: 3.305 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.748e-05/1.184, allocations: 4 kB / 0.6773 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006687/1.19, allocations: 3.377 MB / 0.6806 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.204, allocations: 6.297 MB / 0.6867 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/1.204, allocations: 3.984 kB / 0.6867 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/1.205, allocations: 311.6 kB / 0.687 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00454/1.21, allocations: 1.171 MB / 0.6882 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004667/1.21, allocations: 71.95 kB / 0.6883 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/1.221, allocations: 11.07 MB / 0.6991 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.222, allocations: 3.984 kB / 0.6991 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.234, allocations: 5.181 MB / 0.7041 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/1.236, allocations: 0.5993 MB / 0.7047 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007975/1.236, allocations: 51.98 kB / 0.7048 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/1.239, allocations: 143.6 kB / 0.7049 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/1.24, allocations: 165.8 kB / 0.7051 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003106/1.24, allocations: 83.89 kB / 0.7051 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00266/1.243, allocations: 1.26 MB / 0.7064 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/1.243, allocations: 0 / 0.7064 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007621/1.25, allocations: 1.741 MB / 0.7081 GB, free: 2.906 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.003259/1.253, allocations: 1.013 MB / 0.7091 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01753/1.271, allocations: 6.844 MB / 0.7157 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.271, allocations: 0 / 0.7157 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004987/1.276, allocations: 2.24 MB / 0.7179 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005656/1.282, allocations: 1.049 MB / 0.7189 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/1.294, allocations: 6.733 MB / 0.7255 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.166/1.46, allocations: 1.849 MB / 0.7273 GB, free: 245.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/1.461, allocations: 205.7 kB / 0.7275 GB, free: 245.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.92e-07/1.461, allocations: 1.406 kB / 0.7275 GB, free: 245.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.08901/1.55, allocations: 88.77 MB / 0.8142 GB, free: 177.9 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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)