Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001479/0.001479, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.001799, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.81 kB / 306.9 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.11, allocations: 50.53 MB / 357.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2669/0.3769, allocations: 90.43 MB / 447.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03175/0.4087, allocations: 21.34 MB / 469.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002774/0.4116, allocations: 87.5 kB / 469.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.414, allocations: 0.9434 MB / 470.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009213/0.4232, allocations: 3.744 MB / 474 MB, free: 6.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.435, allocations: 5.66 MB / 479.7 MB, free: 1.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008261/0.4433, allocations: 7.073 MB / 486.7 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002758/0.4461, allocations: 1.853 MB / 488.6 MB, free: 8.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4005/0.8466, allocations: 74.94 MB / 0.5503 GB, free: 49.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06247/0.9091, allocations: 31.95 MB / 0.5815 GB, free: 39.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008447/0.91, allocations: 248 kB / 0.5818 GB, free: 38.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01255/0.9226, allocations: 6.103 MB / 0.5877 GB, free: 34.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.9238, allocations: 1.1 MB / 0.5888 GB, free: 33.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.9256, allocations: 1.492 MB / 0.5902 GB, free: 32.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005785/0.9314, allocations: 5.471 MB / 0.5956 GB, free: 28.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.9314, allocations: 0 / 0.5956 GB, free: 28.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.9315, allocations: 0 / 0.5956 GB, free: 28.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.9315, allocations: 4 kB / 0.5956 GB, free: 28.67 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.006844/0.9383, allocations: 3.499 MB / 0.599 GB, free: 25.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.9384, allocations: 11.22 kB / 0.599 GB, free: 25.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000813/0.9392, allocations: 312.3 kB / 0.5993 GB, free: 25.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.9413, allocations: 1.573 MB / 0.6009 GB, free: 24.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.9414, allocations: 220.3 kB / 0.6011 GB, free: 23.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000284/0.9417, allocations: 195.7 kB / 0.6012 GB, free: 23.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004097/0.9458, allocations: 3.293 MB / 0.6045 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.9459, allocations: 7.469 kB / 0.6045 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.9461, allocations: 88.02 kB / 0.6046 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/0.9464, allocations: 256.8 kB / 0.6048 GB, free: 21.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00406/0.9504, allocations: 3.103 MB / 0.6078 GB, free: 19.02 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.01417/0.9646, allocations: 13.83 MB / 0.6213 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003403/0.968, allocations: 2.218 MB / 0.6235 GB, free: 3.574 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/0.9697, allocations: 1.352 MB / 0.6248 GB, free: 2.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007686/0.9774, allocations: 5.858 MB / 0.6305 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.9775, allocations: 48.56 kB / 0.6306 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007815/0.9783, allocations: 180.2 kB / 0.6308 GB, free: 11.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.419e-06/0.9783, allocations: 3.188 kB / 0.6308 GB, free: 11.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02277/1.001, allocations: 9.15 MB / 0.6397 GB, free: 2.441 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/1.001, allocations: 74.16 kB / 0.6398 GB, free: 2.355 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003374/1.005, allocations: 1.852 MB / 0.6416 GB, free: 476 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003067/1.005, allocations: 61.7 kB / 0.6416 GB, free: 408 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009017/1.006, allocations: 1.059 MB / 0.6427 GB, free: 15.33 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007255/1.007, allocations: 0.6834 MB / 0.6433 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008017/1.007, allocations: 456.4 kB / 0.6438 GB, free: 14.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/1.007, allocations: 301.1 kB / 0.6441 GB, free: 13.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/1.01, allocations: 1.233 MB / 0.6453 GB, free: 12.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00245/1.012, allocations: 1.807 MB / 0.647 GB, free: 10.62 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004569/1.017, allocations: 3.159 MB / 0.6501 GB, free: 7.297 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/1.017, allocations: 8.688 kB / 0.6501 GB, free: 7.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007251/1.024, allocations: 4.299 MB / 0.6543 GB, free: 3.082 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.661e-05/1.024, allocations: 14.97 kB / 0.6543 GB, free: 3.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/1.024, allocations: 16 kB / 0.6544 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/1.038, allocations: 3.646 MB / 0.6579 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/1.039, allocations: 326.3 kB / 0.6582 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00643/1.046, allocations: 3.946 MB / 0.6621 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/1.048, allocations: 100.8 kB / 0.6622 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002817/1.048, allocations: 116 kB / 0.6623 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002861/1.051, allocations: 1.672 MB / 0.6639 GB, free: 9.285 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002321/1.053, allocations: 1.758 MB / 0.6656 GB, free: 7.285 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004314/1.057, allocations: 3.042 MB / 0.6686 GB, free: 4.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.167e-05/1.057, allocations: 4 kB / 0.6686 GB, free: 4.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006702/1.064, allocations: 4.029 MB / 0.6725 GB, free: 136 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/1.064, allocations: 19.98 kB / 0.6726 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/1.064, allocations: 16 kB / 0.6726 GB, free: 100 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009536/1.074, allocations: 2.758 MB / 0.6753 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/1.075, allocations: 375.1 kB / 0.6756 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005166/1.08, allocations: 3.466 MB / 0.679 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/1.082, allocations: 99.12 kB / 0.6791 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/1.083, allocations: 110.7 kB / 0.6792 GB, free: 9.348 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.0005621/1.083, allocations: 322.7 kB / 0.6795 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005259/1.084, allocations: 229.3 kB / 0.6797 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007573/1.091, allocations: 3.949 MB / 0.6836 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/1.091, allocations: 23.98 kB / 0.6836 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/1.091, allocations: 8 kB / 0.6836 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005659/1.097, allocations: 3.38 MB / 0.6869 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/1.108, allocations: 6.299 MB / 0.6931 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/1.108, allocations: 0 / 0.6931 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/1.11, allocations: 314.9 kB / 0.6934 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006234/1.116, allocations: 1.164 MB / 0.6945 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003859/1.117, allocations: 75.94 kB / 0.6946 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/1.131, allocations: 11.07 MB / 0.7054 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.131, allocations: 0 / 0.7054 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/1.146, allocations: 5.182 MB / 0.7105 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.148, allocations: 0.5993 MB / 0.711 GB, free: 7.906 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008542/1.149, allocations: 55.98 kB / 0.7111 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/1.151, allocations: 71.94 kB / 0.7112 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006225/1.152, allocations: 165.8 kB / 0.7113 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003397/1.152, allocations: 79.89 kB / 0.7114 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003425/1.156, allocations: 1.264 MB / 0.7126 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.21e-07/1.156, allocations: 4 kB / 0.7126 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007448/1.163, allocations: 1.73 MB / 0.7143 GB, free: 4.52 MB / 0.5294 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.003793/1.167, allocations: 1.007 MB / 0.7153 GB, free: 3.586 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1959/1.363, allocations: 6.848 MB / 0.722 GB, free: 242.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.363, allocations: 1.375 kB / 0.722 GB, free: 242.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004189/1.367, allocations: 2.238 MB / 0.7242 GB, free: 241.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004997/1.372, allocations: 1.063 MB / 0.7252 GB, free: 241.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.383, allocations: 5.718 MB / 0.7308 GB, free: 239.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002152/1.386, allocations: 1.872 MB / 0.7326 GB, free: 238.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004263/1.39, allocations: 0.9566 MB / 0.7336 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006722/1.391, allocations: 194.8 kB / 0.7338 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.391, allocations: 0 / 0.7338 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.09802/1.489, allocations: 75.13 MB / 0.8071 GB, free: 174.5 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)