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.001463/0.001463, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001628/0.001628, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 40.56 kB / 299.9 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09023, allocations: 49.45 MB / 349.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2415/0.3318, allocations: 95.46 MB / 444.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0322/0.364, allocations: 22.6 MB / 467.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003227/0.3673, allocations: 111.1 kB / 467.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002452/0.3697, allocations: 0.8199 MB / 468.4 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008738/0.3785, allocations: 3.513 MB / 471.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01203/0.3906, allocations: 4.943 MB / 476.8 MB, free: 5.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.4031, allocations: 10.71 MB / 487.5 MB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00353/0.4066, allocations: 1.597 MB / 489.1 MB, free: 9.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3867/0.7934, allocations: 73.41 MB / 0.5494 GB, free: 51.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06336/0.8568, allocations: 31.97 MB / 0.5806 GB, free: 41.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001089/0.8579, allocations: 130.4 kB / 0.5807 GB, free: 41.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01509/0.873, allocations: 5.966 MB / 0.5865 GB, free: 39.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002297/0.8753, allocations: 0.9768 MB / 0.5875 GB, free: 38.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.8775, allocations: 1.383 MB / 0.5888 GB, free: 37.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008145/0.8857, allocations: 5.371 MB / 0.5941 GB, free: 33.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.8857, allocations: 0 / 0.5941 GB, free: 33.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.8857, allocations: 0 / 0.5941 GB, free: 33.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.747e-05/0.8858, allocations: 4 kB / 0.5941 GB, free: 33.71 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.00863/0.8945, allocations: 3.491 MB / 0.5975 GB, free: 30.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.8945, allocations: 8.031 kB / 0.5975 GB, free: 30.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009212/0.8954, allocations: 308.5 kB / 0.5978 GB, free: 30.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.8976, allocations: 1.587 MB / 0.5993 GB, free: 29.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.8978, allocations: 216.3 kB / 0.5995 GB, free: 28.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.8981, allocations: 199.9 kB / 0.5997 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004366/0.9024, allocations: 3.294 MB / 0.603 GB, free: 26.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.9025, allocations: 3.188 kB / 0.603 GB, free: 26.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/0.9027, allocations: 83.48 kB / 0.603 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002395/0.903, allocations: 257.1 kB / 0.6033 GB, free: 26.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004364/0.9073, allocations: 3.109 MB / 0.6063 GB, free: 24.09 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.01568/0.923, allocations: 13.78 MB / 0.6198 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003572/0.9266, allocations: 2.207 MB / 0.6219 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/0.9285, allocations: 1.35 MB / 0.6232 GB, free: 9.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007301/0.9358, allocations: 5.862 MB / 0.629 GB, free: 3.453 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.9358, allocations: 48.56 kB / 0.629 GB, free: 3.398 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000749/0.9366, allocations: 190.9 kB / 0.6292 GB, free: 3.215 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.276e-06/0.9366, allocations: 0 / 0.6292 GB, free: 3.215 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02162/0.9582, allocations: 9.15 MB / 0.6381 GB, free: 9.996 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/0.9583, allocations: 73.41 kB / 0.6382 GB, free: 9.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/0.9609, allocations: 1.845 MB / 0.64 GB, free: 8.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.9611, allocations: 61.7 kB / 0.6401 GB, free: 7.957 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.9618, allocations: 1.059 MB / 0.6411 GB, free: 6.891 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005737/0.9624, allocations: 0.6772 MB / 0.6418 GB, free: 6.219 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007177/0.9631, allocations: 460.4 kB / 0.6422 GB, free: 5.762 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.887e-05/0.9632, allocations: 301.1 kB / 0.6425 GB, free: 5.465 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001966/0.9652, allocations: 1.229 MB / 0.6437 GB, free: 4.227 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.9676, allocations: 1.808 MB / 0.6455 GB, free: 2.184 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004409/0.972, allocations: 3.159 MB / 0.6485 GB, free: 14.86 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.972, allocations: 4 kB / 0.6485 GB, free: 14.86 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.00709/0.9791, allocations: 4.297 MB / 0.6527 GB, free: 10.65 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.9791, allocations: 16 kB / 0.6528 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.9792, allocations: 17.41 kB / 0.6528 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01402/0.9932, allocations: 3.641 MB / 0.6563 GB, free: 7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.9946, allocations: 325.8 kB / 0.6566 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/1.001, allocations: 3.948 MB / 0.6605 GB, free: 2.754 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/1.004, allocations: 191.7 kB / 0.6607 GB, free: 2.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003488/1.004, allocations: 120 kB / 0.6608 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002925/1.007, allocations: 1.668 MB / 0.6624 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002243/1.009, allocations: 1.755 MB / 0.6641 GB, free: 14.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004113/1.013, allocations: 3.046 MB / 0.6671 GB, free: 11.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.097e-06/1.014, allocations: 4 kB / 0.6671 GB, free: 11.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006771/1.02, allocations: 4.028 MB / 0.671 GB, free: 7.617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/1.02, allocations: 16 kB / 0.6711 GB, free: 7.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/1.02, allocations: 19.5 kB / 0.6711 GB, free: 7.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009567/1.03, allocations: 2.751 MB / 0.6738 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/1.031, allocations: 374.3 kB / 0.6741 GB, free: 4.508 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005288/1.037, allocations: 3.465 MB / 0.6775 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/1.039, allocations: 187.7 kB / 0.6777 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000327/1.039, allocations: 112 kB / 0.6778 GB, free: 0.75 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.0006446/1.04, allocations: 312.8 kB / 0.6781 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006249/1.041, allocations: 229.2 kB / 0.6783 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007893/1.049, allocations: 3.953 MB / 0.6822 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/1.049, allocations: 24 kB / 0.6822 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/1.049, allocations: 11.94 kB / 0.6822 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005941/1.055, allocations: 3.366 MB / 0.6855 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/1.066, allocations: 6.293 MB / 0.6916 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/1.066, allocations: 4 kB / 0.6916 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/1.068, allocations: 315.6 kB / 0.6919 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/1.072, allocations: 1.207 MB / 0.6931 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/1.073, allocations: 71.95 kB / 0.6932 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009318/1.082, allocations: 10.43 MB / 0.7034 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.082, allocations: 0 / 0.7034 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009408/1.091, allocations: 5.184 MB / 0.7084 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.093, allocations: 0.5954 MB / 0.709 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005505/1.093, allocations: 51.98 kB / 0.7091 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/1.095, allocations: 147.6 kB / 0.7092 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004436/1.096, allocations: 169.7 kB / 0.7094 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002272/1.096, allocations: 83.95 kB / 0.7094 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002061/1.098, allocations: 1.257 MB / 0.7107 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.098, allocations: 3.562 kB / 0.7107 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004861/1.103, allocations: 1.746 MB / 0.7124 GB, free: 12.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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002615/1.105, allocations: 1.004 MB / 0.7134 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.117, allocations: 5.066 MB / 0.7183 GB, free: 6.629 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.117, allocations: 3.938 kB / 0.7183 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004683/1.122, allocations: 2.24 MB / 0.7205 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00505/1.127, allocations: 1.004 MB / 0.7215 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1609/1.288, allocations: 6.63 MB / 0.728 GB, free: 244.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/1.29, allocations: 1.881 MB / 0.7298 GB, free: 243.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003444/1.293, allocations: 0.9577 MB / 0.7307 GB, free: 243.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006039/1.294, allocations: 189.3 kB / 0.7309 GB, free: 243.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.72e-07/1.294, allocations: 0 / 0.7309 GB, free: 243.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.09341/1.387, allocations: 72.11 MB / 0.8013 GB, free: 190.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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)