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.0008186/0.0008185, allocations: 88.66 kB / 16.31 MB, free: 6.008 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.0008977/0.0008979, allocations: 181.8 kB / 17.21 MB, free: 5.902 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.408/1.408, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002617/0.0002618, allocations: 9.156 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1072, allocations: 50.42 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2937/0.401, allocations: 86.49 MB / 437.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03028/0.4313, allocations: 20.58 MB / 458.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00346/0.4348, allocations: 103.8 kB / 458.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00244/0.4373, allocations: 0.7758 MB / 459.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008698/0.446, allocations: 3.43 MB / 462.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0131/0.4591, allocations: 4.473 MB / 467.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009561/0.4687, allocations: 8.701 MB / 475.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003211/0.4719, allocations: 1.534 MB / 477.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1932/0.6652, allocations: 125.9 MB / 0.589 GB, free: 9.82 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2944/0.9596, allocations: 55.01 MB / 0.6428 GB, free: 102.6 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007478/0.9604, allocations: 129.9 kB / 0.6429 GB, free: 102.5 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01208/0.9725, allocations: 7.959 MB / 0.6507 GB, free: 96.61 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009426/0.9735, allocations: 0.9624 MB / 0.6516 GB, free: 95.95 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007878/0.9743, allocations: 0.5329 MB / 0.6521 GB, free: 95.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003707/0.978, allocations: 3.836 MB / 0.6559 GB, free: 92.5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.978, allocations: 4.5 kB / 0.6559 GB, free: 92.5 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.978, allocations: 0.875 kB / 0.6559 GB, free: 92.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.978, allocations: 4 kB / 0.6559 GB, free: 92.49 MB / 478.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.005537/0.9836, allocations: 3.026 MB / 0.6588 GB, free: 89.66 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.9836, allocations: 8.031 kB / 0.6588 GB, free: 89.66 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007606/0.9844, allocations: 308.1 kB / 0.6591 GB, free: 89.36 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.9864, allocations: 1.525 MB / 0.6606 GB, free: 88.17 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.9865, allocations: 213 kB / 0.6608 GB, free: 88.02 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.9868, allocations: 202.2 kB / 0.661 GB, free: 87.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003994/0.9908, allocations: 3.286 MB / 0.6642 GB, free: 85.47 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.9909, allocations: 4.047 kB / 0.6642 GB, free: 85.47 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.9911, allocations: 84.64 kB / 0.6643 GB, free: 85.45 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002322/0.9913, allocations: 253.7 kB / 0.6646 GB, free: 85.23 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003964/0.9953, allocations: 3.095 MB / 0.6676 GB, free: 83.18 MB / 478.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.01346/1.009, allocations: 13.81 MB / 0.6811 GB, free: 71.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003221/1.012, allocations: 2.214 MB / 0.6832 GB, free: 69.66 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/1.014, allocations: 1.353 MB / 0.6845 GB, free: 68.77 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006281/1.02, allocations: 5.874 MB / 0.6903 GB, free: 63.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/1.02, allocations: 53.25 kB / 0.6903 GB, free: 63.49 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000579/1.021, allocations: 188.2 kB / 0.6905 GB, free: 63.33 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.486e-06/1.021, allocations: 0 / 0.6905 GB, free: 63.33 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01777/1.038, allocations: 9.286 MB / 0.6996 GB, free: 56.35 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/1.038, allocations: 73.36 kB / 0.6996 GB, free: 56.26 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/1.04, allocations: 1.833 MB / 0.7014 GB, free: 54.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/1.04, allocations: 61.52 kB / 0.7015 GB, free: 54.81 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005102/1.041, allocations: 1.064 MB / 0.7025 GB, free: 53.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003722/1.041, allocations: 0.6778 MB / 0.7032 GB, free: 53.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/1.041, allocations: 48 kB / 0.7032 GB, free: 53.19 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.52e-05/1.042, allocations: 398.7 kB / 0.7036 GB, free: 52.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/1.043, allocations: 1.195 MB / 0.7048 GB, free: 51.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/1.045, allocations: 1.772 MB / 0.7065 GB, free: 49.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/1.047, allocations: 1.454 MB / 0.7079 GB, free: 48.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/1.047, allocations: 4 kB / 0.7079 GB, free: 48.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.005528/1.052, allocations: 4.215 MB / 0.7121 GB, free: 44.03 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002239/1.052, allocations: 0.6036 MB / 0.7126 GB, free: 43.19 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/1.052, allocations: 16.81 kB / 0.7127 GB, free: 43.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/1.064, allocations: 3.662 MB / 0.7162 GB, free: 39.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/1.065, allocations: 340.7 kB / 0.7166 GB, free: 39.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005119/1.07, allocations: 3.935 MB / 0.7204 GB, free: 35.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/1.073, allocations: 186.9 kB / 0.7206 GB, free: 35.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/1.073, allocations: 116 kB / 0.7207 GB, free: 34.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/1.073, allocations: 8 kB / 0.7207 GB, free: 34.98 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004961/1.078, allocations: 3.793 MB / 0.7244 GB, free: 31.29 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/1.078, allocations: 23.94 kB / 0.7244 GB, free: 31.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007913/1.086, allocations: 2.842 MB / 0.7272 GB, free: 28.44 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/1.087, allocations: 368.1 kB / 0.7276 GB, free: 28.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003994/1.091, allocations: 3.467 MB / 0.7309 GB, free: 24.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/1.093, allocations: 183.7 kB / 0.7311 GB, free: 24.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/1.093, allocations: 108 kB / 0.7312 GB, free: 24.34 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.001078/1.094, allocations: 0.7085 MB / 0.7319 GB, free: 23.64 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002831/1.094, allocations: 229.3 kB / 0.7321 GB, free: 23.42 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00618/1.1, allocations: 3.966 MB / 0.736 GB, free: 19.46 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/1.1, allocations: 27.98 kB / 0.736 GB, free: 19.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/1.101, allocations: 4 kB / 0.736 GB, free: 19.43 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004609/1.105, allocations: 3.368 MB / 0.7393 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009212/1.114, allocations: 6.313 MB / 0.7455 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/1.114, allocations: 0 / 0.7455 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/1.116, allocations: 322.1 kB / 0.7458 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003732/1.12, allocations: 1.23 MB / 0.747 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002528/1.12, allocations: 71.95 kB / 0.7471 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008273/1.128, allocations: 10.45 MB / 0.7573 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.128, allocations: 1.75 kB / 0.7573 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009101/1.137, allocations: 5.178 MB / 0.7623 GB, free: 7.688 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/1.139, allocations: 0.6034 MB / 0.7629 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00042/1.139, allocations: 59.94 kB / 0.763 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.141, allocations: 155.5 kB / 0.7631 GB, free: 6.852 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/1.141, allocations: 176.3 kB / 0.7633 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/1.141, allocations: 75.95 kB / 0.7634 GB, free: 6.605 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001754/1.143, allocations: 1.241 MB / 0.7646 GB, free: 5.344 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.143, allocations: 0 / 0.7646 GB, free: 5.344 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005343/1.148, allocations: 1.738 MB / 0.7663 GB, free: 3.605 MB / 494.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.002354/1.151, allocations: 0.993 MB / 0.7672 GB, free: 2.699 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01056/1.161, allocations: 4.959 MB / 0.7721 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/1.161, allocations: 0 / 0.7721 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004157/1.166, allocations: 2.241 MB / 0.7743 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004804/1.17, allocations: 1.003 MB / 0.7753 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/1.182, allocations: 6.587 MB / 0.7817 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/1.184, allocations: 1.875 MB / 0.7835 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003777/1.188, allocations: 0.9553 MB / 0.7845 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005892/1.188, allocations: 195.4 kB / 0.7846 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of SimCode: time 1.243e-06/1.188, allocations: 0 / 0.7846 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of Templates: time 0.2749/1.463, allocations: 70.21 MB / 0.8532 GB, free: 161.7 MB / 0.4981 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)