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.0008727/0.0008727, allocations: 94.66 kB / 16.95 MB, free: 6.113 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.00106/0.00106, allocations: 171.3 kB / 17.83 MB, free: 5.734 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.44/1.44, allocations: 205.4 MB / 224 MB, free: 13.07 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.0006197/0.0006198, allocations: 12 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09607, allocations: 47.59 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3075/0.4036, allocations: 86.51 MB / 414.9 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03195/0.4356, allocations: 20.56 MB / 435.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005167/0.4408, allocations: 105.2 kB / 435.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003551/0.4444, allocations: 0.777 MB / 436.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.4554, allocations: 3.423 MB / 439.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01298/0.4684, allocations: 4.446 MB / 444.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01224/0.4806, allocations: 8.702 MB / 452.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004381/0.4851, allocations: 1.522 MB / 454.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4613/0.9464, allocations: 125.8 MB / 0.5666 GB, free: 74.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07471/1.021, allocations: 55.01 MB / 0.6203 GB, free: 27.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001562/1.023, allocations: 128 kB / 0.6205 GB, free: 27.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01589/1.039, allocations: 7.954 MB / 0.6282 GB, free: 20.9 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002567/1.041, allocations: 0.961 MB / 0.6292 GB, free: 20.24 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00235/1.044, allocations: 0.5288 MB / 0.6297 GB, free: 19.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00815/1.052, allocations: 3.843 MB / 0.6334 GB, free: 16.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/1.052, allocations: 0 / 0.6334 GB, free: 16.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.146e-06/1.052, allocations: 0 / 0.6334 GB, free: 16.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002282/1.052, allocations: 0 / 0.6334 GB, free: 16.79 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.00985/1.062, allocations: 3.022 MB / 0.6364 GB, free: 13.99 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.062, allocations: 12.03 kB / 0.6364 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/1.064, allocations: 307.1 kB / 0.6367 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/1.067, allocations: 1.52 MB / 0.6382 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/1.067, allocations: 214.9 kB / 0.6384 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003488/1.068, allocations: 198.2 kB / 0.6386 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004758/1.073, allocations: 3.284 MB / 0.6418 GB, free: 9.797 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.925e-05/1.073, allocations: 11.38 kB / 0.6418 GB, free: 9.793 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/1.073, allocations: 83.59 kB / 0.6419 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002431/1.073, allocations: 251 kB / 0.6421 GB, free: 9.559 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/1.078, allocations: 3.102 MB / 0.6451 GB, free: 7.496 MB / 430.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.02187/1.1, allocations: 13.8 MB / 0.6586 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004524/1.104, allocations: 2.227 MB / 0.6608 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/1.107, allocations: 1.347 MB / 0.6621 GB, free: 9.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01069/1.117, allocations: 5.869 MB / 0.6678 GB, free: 3.859 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.061e-05/1.118, allocations: 53.12 kB / 0.6679 GB, free: 3.812 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00117/1.119, allocations: 188.3 kB / 0.6681 GB, free: 3.652 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 1.175e-05/1.119, allocations: 0 / 0.6681 GB, free: 3.652 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02606/1.145, allocations: 9.301 MB / 0.6771 GB, free: 12.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/1.145, allocations: 73.41 kB / 0.6772 GB, free: 12.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/1.148, allocations: 1.821 MB / 0.679 GB, free: 10.39 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004305/1.149, allocations: 61.7 kB / 0.679 GB, free: 10.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008971/1.15, allocations: 1.063 MB / 0.6801 GB, free: 9.25 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009772/1.151, allocations: 0.679 MB / 0.6807 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/1.151, allocations: 44 kB / 0.6808 GB, free: 8.531 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002228/1.151, allocations: 406.7 kB / 0.6812 GB, free: 8.129 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/1.154, allocations: 1.191 MB / 0.6823 GB, free: 6.934 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002956/1.157, allocations: 1.776 MB / 0.6841 GB, free: 4.922 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00304/1.16, allocations: 1.459 MB / 0.6855 GB, free: 3.484 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.048e-05/1.16, allocations: 8 kB / 0.6855 GB, free: 3.477 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008904/1.169, allocations: 4.208 MB / 0.6896 GB, free: 15.36 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006276/1.169, allocations: 0.6037 MB / 0.6902 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.565e-05/1.169, allocations: 20.03 kB / 0.6902 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01373/1.183, allocations: 3.669 MB / 0.6938 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/1.185, allocations: 335.1 kB / 0.6941 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007765/1.193, allocations: 3.936 MB / 0.698 GB, free: 6.609 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003078/1.196, allocations: 191.8 kB / 0.6982 GB, free: 6.422 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005999/1.196, allocations: 112 kB / 0.6983 GB, free: 6.312 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/1.196, allocations: 4 kB / 0.6983 GB, free: 6.309 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007938/1.204, allocations: 3.796 MB / 0.702 GB, free: 2.621 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.425e-05/1.204, allocations: 16 kB / 0.702 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2425/1.447, allocations: 2.835 MB / 0.7048 GB, free: 200.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/1.449, allocations: 373.1 kB / 0.7051 GB, free: 200.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006343/1.455, allocations: 3.465 MB / 0.7085 GB, free: 200.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/1.458, allocations: 182.5 kB / 0.7087 GB, free: 200.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003115/1.459, allocations: 113.7 kB / 0.7088 GB, free: 200.1 MB / 478.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.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 initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001755/1.46, allocations: 0.7071 MB / 0.7095 GB, free: 200 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007818/1.461, allocations: 226.7 kB / 0.7097 GB, free: 200 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008806/1.47, allocations: 3.974 MB / 0.7136 GB, free: 198.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.46e-05/1.47, allocations: 23.92 kB / 0.7136 GB, free: 198.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/1.47, allocations: 2.656 kB / 0.7136 GB, free: 198.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005672/1.476, allocations: 3.384 MB / 0.7169 GB, free: 197.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/1.486, allocations: 6.303 MB / 0.7231 GB, free: 195.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/1.486, allocations: 0 / 0.7231 GB, free: 195.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/1.487, allocations: 326.6 kB / 0.7234 GB, free: 195.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003922/1.491, allocations: 1.22 MB / 0.7246 GB, free: 194.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002826/1.492, allocations: 76.83 kB / 0.7246 GB, free: 194.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00815/1.5, allocations: 10.45 MB / 0.7348 GB, free: 185.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.5, allocations: 0 / 0.7348 GB, free: 185.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008633/1.508, allocations: 5.185 MB / 0.7399 GB, free: 182.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/1.51, allocations: 0.6004 MB / 0.7405 GB, free: 181.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007253/1.511, allocations: 55.98 kB / 0.7405 GB, free: 181.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/1.512, allocations: 148.4 kB / 0.7407 GB, free: 181.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/1.513, allocations: 169.7 kB / 0.7408 GB, free: 181.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000218/1.513, allocations: 80.33 kB / 0.7409 GB, free: 181.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00192/1.515, allocations: 1.245 MB / 0.7421 GB, free: 180.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.515, allocations: 0 / 0.7421 GB, free: 180.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006163/1.521, allocations: 1.737 MB / 0.7438 GB, free: 178.5 MB / 478.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.002901/1.524, allocations: 0.9719 MB / 0.7448 GB, free: 177.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00962/1.534, allocations: 4.975 MB / 0.7496 GB, free: 172.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.534, allocations: 0 / 0.7496 GB, free: 172.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004006/1.538, allocations: 2.239 MB / 0.7518 GB, free: 170.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005574/1.543, allocations: 0.9974 MB / 0.7528 GB, free: 169.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/1.554, allocations: 6.593 MB / 0.7592 GB, free: 163.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/1.556, allocations: 1.875 MB / 0.7611 GB, free: 161.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003591/1.56, allocations: 0.9565 MB / 0.762 GB, free: 160.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008491/1.561, allocations: 191.4 kB / 0.7622 GB, free: 160.2 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/1.561, allocations: 0 / 0.7622 GB, free: 160.2 MB / 478.1 MB Notification: Performance of Templates: time 0.09778/1.658, allocations: 70.15 MB / 0.8307 GB, free: 89.92 MB / 478.1 MB 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)