Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008196/0.0008196, allocations: 96.06 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002621, allocations: 4 kB / 356.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2004, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07086/0.2713, allocations: 86.81 MB / 494.8 MB, free: 4.695 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02731/0.2987, allocations: 20.59 MB / 0.5033 GB, free: 68 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2199/0.5187, allocations: 103.8 kB / 0.5034 GB, free: 5.488 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004683/0.5234, allocations: 0.7695 MB / 0.5042 GB, free: 5.484 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01428/0.5377, allocations: 3.637 MB / 0.5078 GB, free: 5.453 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01521/0.553, allocations: 4.472 MB / 0.5121 GB, free: 5.336 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01388/0.5669, allocations: 8.762 MB / 0.5207 GB, free: 5.332 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004009/0.571, allocations: 1.557 MB / 0.5222 GB, free: 5.188 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2452/0.8162, allocations: 125.9 MB / 0.6451 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3125/1.129, allocations: 55 MB / 0.6988 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0009072/1.13, allocations: 125.4 kB / 0.6989 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0156/1.145, allocations: 8.244 MB / 0.707 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002084/1.147, allocations: 0.9637 MB / 0.7079 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003071/1.151, allocations: 1.329 MB / 0.7092 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.006831/1.157, allocations: 3.95 MB / 0.7131 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.157, allocations: 0 / 0.7131 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.384e-06/1.157, allocations: 2.844 kB / 0.7131 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001342/1.158, allocations: 2.156 kB / 0.7131 GB, free: 147.9 MB / 0.5105 GB 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.008233/1.166, allocations: 3.001 MB / 0.716 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.166, allocations: 10.75 kB / 0.716 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/1.168, allocations: 304.5 kB / 0.7163 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/1.171, allocations: 1.571 MB / 0.7179 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/1.171, allocations: 220.7 kB / 0.7181 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005134/1.172, allocations: 201.6 kB / 0.7183 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004965/1.177, allocations: 3.284 MB / 0.7215 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.337e-05/1.177, allocations: 13.31 kB / 0.7215 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/1.177, allocations: 83.03 kB / 0.7216 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002781/1.178, allocations: 251 kB / 0.7218 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00496/1.182, allocations: 3.107 MB / 0.7248 GB, free: 144.2 MB / 0.5105 GB 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.0175/1.2, allocations: 13.8 MB / 0.7383 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003513/1.204, allocations: 2.221 MB / 0.7405 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/1.205, allocations: 1.359 MB / 0.7418 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007302/1.213, allocations: 5.873 MB / 0.7476 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/1.213, allocations: 53.12 kB / 0.7476 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008421/1.214, allocations: 179.3 kB / 0.7478 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 4.238e-06/1.214, allocations: 0 / 0.7478 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.01971/1.233, allocations: 9.193 MB / 0.7568 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/1.233, allocations: 73.41 kB / 0.7568 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/1.235, allocations: 1.838 MB / 0.7586 GB, free: 118 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002187/1.236, allocations: 59.77 kB / 0.7587 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005003/1.236, allocations: 1.057 MB / 0.7597 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/1.237, allocations: 0.6846 MB / 0.7604 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/1.237, allocations: 47.12 kB / 0.7604 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.977e-05/1.237, allocations: 396.9 kB / 0.7608 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/1.239, allocations: 1.196 MB / 0.762 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/1.24, allocations: 1.775 MB / 0.7637 GB, free: 114 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003578/1.244, allocations: 3.106 MB / 0.7667 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/1.244, allocations: 11.98 kB / 0.7667 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006082/1.25, allocations: 4.204 MB / 0.7709 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002801/1.25, allocations: 0.6055 MB / 0.7714 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/1.25, allocations: 16 kB / 0.7715 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0128/1.263, allocations: 3.66 MB / 0.775 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/1.265, allocations: 342.1 kB / 0.7754 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/1.271, allocations: 3.941 MB / 0.7792 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002606/1.273, allocations: 191.8 kB / 0.7794 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000412/1.274, allocations: 114.7 kB / 0.7795 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/1.274, allocations: 4 kB / 0.7795 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005748/1.28, allocations: 3.79 MB / 0.7832 GB, free: 99.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.551e-05/1.28, allocations: 21.45 kB / 0.7832 GB, free: 99.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008681/1.288, allocations: 2.835 MB / 0.786 GB, free: 96.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/1.29, allocations: 375.8 kB / 0.7864 GB, free: 96.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/1.296, allocations: 3.464 MB / 0.7897 GB, free: 93.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002691/1.299, allocations: 187.5 kB / 0.7899 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004729/1.299, allocations: 111.6 kB / 0.79 GB, free: 93.55 MB / 0.5105 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.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.001491/1.301, allocations: 0.7066 MB / 0.7907 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/1.301, allocations: 229.1 kB / 0.7909 GB, free: 92.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006711/1.308, allocations: 3.954 MB / 0.7948 GB, free: 90.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.593e-05/1.308, allocations: 27.98 kB / 0.7948 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/1.308, allocations: 0 / 0.7948 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005124/1.313, allocations: 3.386 MB / 0.7981 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/1.323, allocations: 6.303 MB / 0.8043 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.324, allocations: 0 / 0.8043 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/1.325, allocations: 320.6 kB / 0.8046 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00406/1.329, allocations: 1.232 MB / 0.8058 GB, free: 80.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004881/1.33, allocations: 71.95 kB / 0.8059 GB, free: 80.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007432/1.337, allocations: 10.45 MB / 0.8161 GB, free: 69 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.337, allocations: 0 / 0.8161 GB, free: 69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007984/1.345, allocations: 5.188 MB / 0.8211 GB, free: 63.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/1.347, allocations: 0.6032 MB / 0.8217 GB, free: 63.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/1.347, allocations: 63.98 kB / 0.8218 GB, free: 63.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/1.349, allocations: 143.6 kB / 0.8219 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003851/1.349, allocations: 169.7 kB / 0.8221 GB, free: 62.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/1.349, allocations: 79.95 kB / 0.8222 GB, free: 62.72 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001689/1.351, allocations: 1.245 MB / 0.8234 GB, free: 61.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.4e-07/1.351, allocations: 0 / 0.8234 GB, free: 61.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005219/1.356, allocations: 1.742 MB / 0.8251 GB, free: 59.71 MB / 0.5105 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 (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.002472/1.359, allocations: 1.012 MB / 0.8261 GB, free: 58.78 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009269/1.368, allocations: 4.954 MB / 0.8309 GB, free: 53.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.368, allocations: 4 kB / 0.8309 GB, free: 53.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.372, allocations: 2.229 MB / 0.8331 GB, free: 51.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005124/1.377, allocations: 0.9982 MB / 0.8341 GB, free: 50.68 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009479/1.386, allocations: 6.677 MB / 0.8406 GB, free: 44.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/1.388, allocations: 1.854 MB / 0.8424 GB, free: 42.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/1.389, allocations: 207.4 kB / 0.8426 GB, free: 41.92 MB / 0.5105 GB Notification: Performance of SimCode: time 1.232e-06/1.389, allocations: 0 / 0.8426 GB, free: 41.92 MB / 0.5105 GB Notification: Performance of Templates: time 0.2517/1.64, allocations: 88.69 MB / 0.9292 GB, free: 194.3 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)