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.0009007/0.0009007, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009657/0.0009657, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000227/0.000227, allocations: 8 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 51.49 MB / 358 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2484/0.3544, allocations: 67.64 MB / 425.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0318/0.3862, allocations: 20.71 MB / 446.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.3893, allocations: 103.1 kB / 446.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003082/0.3924, allocations: 0.9174 MB / 447.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008856/0.4013, allocations: 2.707 MB / 450.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01371/0.415, allocations: 5.458 MB / 455.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006752/0.4218, allocations: 3.883 MB / 459.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00256/0.4244, allocations: 1.536 MB / 461 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.415/0.8394, allocations: 123.9 MB / 0.5712 GB, free: 67.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0693/0.9087, allocations: 53.33 MB / 0.6233 GB, free: 19.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008889/0.9097, allocations: 130.7 kB / 0.6234 GB, free: 19.65 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01532/0.925, allocations: 8.028 MB / 0.6312 GB, free: 12.63 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.927, allocations: 0.879 MB / 0.6321 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.9281, allocations: 0.5309 MB / 0.6326 GB, free: 11.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005609/0.9337, allocations: 3.824 MB / 0.6363 GB, free: 8.441 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.9337, allocations: 0 / 0.6363 GB, free: 8.441 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.9337, allocations: 0 / 0.6363 GB, free: 8.441 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.296e-05/0.9338, allocations: 0 / 0.6363 GB, free: 8.441 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.006727/0.9405, allocations: 3.019 MB / 0.6393 GB, free: 5.613 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.9406, allocations: 8.031 kB / 0.6393 GB, free: 5.605 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009215/0.9415, allocations: 308.6 kB / 0.6396 GB, free: 5.301 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.9441, allocations: 1.527 MB / 0.6411 GB, free: 4.117 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.9443, allocations: 212.5 kB / 0.6413 GB, free: 3.961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002934/0.9446, allocations: 202.8 kB / 0.6415 GB, free: 3.832 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/0.9489, allocations: 3.263 MB / 0.6447 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.533e-05/0.949, allocations: 7.844 kB / 0.6447 GB, free: 1.434 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.9492, allocations: 88.92 kB / 0.6448 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002526/0.9494, allocations: 251.2 kB / 0.645 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004517/0.954, allocations: 3.111 MB / 0.648 GB, free: 15.13 MB / 462.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.01975/0.9737, allocations: 13.93 MB / 0.6616 GB, free: 2.977 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003783/0.9775, allocations: 2.211 MB / 0.6638 GB, free: 1.562 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00921/0.9868, allocations: 5.925 MB / 0.6696 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.9869, allocations: 54.12 kB / 0.6696 GB, free: 12.27 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009758/0.9879, allocations: 184.2 kB / 0.6698 GB, free: 12.12 MB / 478.1 MB Notification: Performance of pre-optimization done (n=173): time 6.091e-06/0.9879, allocations: 0 / 0.6698 GB, free: 12.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=199): time 0.02234/1.01, allocations: 9.318 MB / 0.6789 GB, free: 5.121 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/1.01, allocations: 69.41 kB / 0.679 GB, free: 5.039 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003198/1.014, allocations: 1.826 MB / 0.6808 GB, free: 3.633 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004556/1.014, allocations: 67.02 kB / 0.6808 GB, free: 3.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008662/1.015, allocations: 1.049 MB / 0.6819 GB, free: 2.934 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000937/1.016, allocations: 0.6852 MB / 0.6825 GB, free: 2.352 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/1.016, allocations: 47.94 kB / 0.6826 GB, free: 2.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/1.016, allocations: 402.2 kB / 0.683 GB, free: 1.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/1.018, allocations: 1.212 MB / 0.6841 GB, free: 1.176 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00231/1.02, allocations: 1.776 MB / 0.6859 GB, free: 15.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/1.023, allocations: 1.466 MB / 0.6873 GB, free: 14.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/1.023, allocations: 4 kB / 0.6873 GB, free: 14.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.00787/1.03, allocations: 4.256 MB / 0.6915 GB, free: 11.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002733/1.033, allocations: 6.973 MB / 0.6983 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/1.033, allocations: 16 kB / 0.6983 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01414/1.047, allocations: 3.637 MB / 0.7018 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/1.049, allocations: 326.2 kB / 0.7022 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006688/1.056, allocations: 4.015 MB / 0.7061 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/1.058, allocations: 199.7 kB / 0.7063 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002818/1.059, allocations: 114.5 kB / 0.7064 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/1.059, allocations: 4 kB / 0.7064 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006615/1.065, allocations: 3.835 MB / 0.7101 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-05/1.065, allocations: 16.56 kB / 0.7101 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00971/1.075, allocations: 2.885 MB / 0.713 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/1.077, allocations: 371.5 kB / 0.7133 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/1.082, allocations: 3.517 MB / 0.7167 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/1.085, allocations: 195.7 kB / 0.7169 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/1.085, allocations: 115.2 kB / 0.717 GB, free: 3.715 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (174): * Single equations (assignments): 173 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001834/1.087, allocations: 0.7063 MB / 0.7177 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000714/1.088, allocations: 221.3 kB / 0.7179 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2382/1.326, allocations: 3.994 MB / 0.7218 GB, free: 211.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-05/1.326, allocations: 25.08 kB / 0.7219 GB, free: 211.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/1.326, allocations: 3.141 kB / 0.7219 GB, free: 211.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006388/1.333, allocations: 3.403 MB / 0.7252 GB, free: 211.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/1.344, allocations: 6.375 MB / 0.7314 GB, free: 209.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/1.344, allocations: 0 / 0.7314 GB, free: 209.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/1.346, allocations: 320.2 kB / 0.7317 GB, free: 209.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004564/1.351, allocations: 1.266 MB / 0.733 GB, free: 208.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002472/1.351, allocations: 79.7 kB / 0.733 GB, free: 208.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008074/1.359, allocations: 10.58 MB / 0.7434 GB, free: 199.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.359, allocations: 3.375 kB / 0.7434 GB, free: 199.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008315/1.367, allocations: 5.236 MB / 0.7485 GB, free: 197.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/1.369, allocations: 0.6245 MB / 0.7491 GB, free: 197.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/1.369, allocations: 55.58 kB / 0.7492 GB, free: 197.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.371, allocations: 153.4 kB / 0.7493 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000367/1.371, allocations: 167.2 kB / 0.7495 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/1.371, allocations: 82.64 kB / 0.7495 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001494/1.373, allocations: 1.213 MB / 0.7507 GB, free: 196.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/1.373, allocations: 0 / 0.7507 GB, free: 196.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003992/1.377, allocations: 1.749 MB / 0.7524 GB, free: 196.6 MB / 0.4981 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 (183): * Single equations (assignments): 169 * 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%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.00188/1.379, allocations: 0.9869 MB / 0.7534 GB, free: 196.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008721/1.387, allocations: 5.028 MB / 0.7583 GB, free: 194 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.387, allocations: 4 kB / 0.7583 GB, free: 194 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003643/1.391, allocations: 2.264 MB / 0.7605 GB, free: 191.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004172/1.395, allocations: 0.9315 MB / 0.7614 GB, free: 190.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008556/1.404, allocations: 6.656 MB / 0.7679 GB, free: 184.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/1.405, allocations: 1.919 MB / 0.7698 GB, free: 182.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002905/1.408, allocations: 0.9542 MB / 0.7707 GB, free: 181.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/1.408, allocations: 187.4 kB / 0.7709 GB, free: 181.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.202e-06/1.408, allocations: 0 / 0.7709 GB, free: 181.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.08301/1.491, allocations: 69.33 MB / 0.8386 GB, free: 112.5 MB / 0.4981 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)