Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001285/0.001285, allocations: 103.2 kB / 15.06 MB, free: 1.098 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.001429/0.001429, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.000429, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.234, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07678/0.3108, allocations: 67.56 MB / 394 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03518/0.3461, allocations: 20.65 MB / 414.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003768/0.3499, allocations: 103.1 kB / 414.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.3535, allocations: 0.9174 MB / 415.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3637, allocations: 2.695 MB / 418.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01622/0.3799, allocations: 5.415 MB / 423.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007959/0.3879, allocations: 3.887 MB / 427.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003467/0.3914, allocations: 1.52 MB / 429.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4219/0.8133, allocations: 124 MB / 0.5402 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0829/0.8963, allocations: 53.31 MB / 0.5923 GB, free: 13.22 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.8977, allocations: 131.1 kB / 0.5924 GB, free: 13.09 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01613/0.9139, allocations: 8.002 MB / 0.6002 GB, free: 6.09 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002283/0.9162, allocations: 0.8773 MB / 0.6011 GB, free: 5.508 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001999/0.9182, allocations: 0.527 MB / 0.6016 GB, free: 5.199 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008235/0.9265, allocations: 3.828 MB / 0.6053 GB, free: 1.902 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.9265, allocations: 0 / 0.6053 GB, free: 1.902 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.9265, allocations: 0 / 0.6053 GB, free: 1.902 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.824e-05/0.9266, allocations: 0 / 0.6053 GB, free: 1.902 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.007978/0.9346, allocations: 3.004 MB / 0.6083 GB, free: 15.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.9346, allocations: 12.03 kB / 0.6083 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.9358, allocations: 309.8 kB / 0.6086 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003305/0.9391, allocations: 1.521 MB / 0.6101 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.9393, allocations: 214.6 kB / 0.6103 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003726/0.9397, allocations: 205.6 kB / 0.6105 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004805/0.9445, allocations: 3.264 MB / 0.6137 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.784e-05/0.9446, allocations: 10.34 kB / 0.6137 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002113/0.9448, allocations: 86.66 kB / 0.6137 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000285/0.9451, allocations: 250.8 kB / 0.614 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004575/0.9497, allocations: 3.104 MB / 0.617 GB, free: 8.605 MB / 494.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.2176/1.167, allocations: 13.93 MB / 0.6306 GB, free: 222.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/1.171, allocations: 2.208 MB / 0.6328 GB, free: 222.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00787/1.179, allocations: 5.937 MB / 0.6386 GB, free: 218.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/1.179, allocations: 56.11 kB / 0.6386 GB, free: 218.7 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007004/1.18, allocations: 185 kB / 0.6388 GB, free: 218.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=173): time 4.769e-06/1.18, allocations: 7.906 kB / 0.6388 GB, free: 218.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=199): time 0.01906/1.199, allocations: 9.302 MB / 0.6479 GB, free: 213.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/1.199, allocations: 74.09 kB / 0.648 GB, free: 213.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/1.201, allocations: 1.822 MB / 0.6497 GB, free: 212.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002101/1.202, allocations: 60.52 kB / 0.6498 GB, free: 212.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006907/1.202, allocations: 1.055 MB / 0.6508 GB, free: 211.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000534/1.203, allocations: 0.6903 MB / 0.6515 GB, free: 211 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/1.203, allocations: 50.62 kB / 0.6516 GB, free: 211 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/1.203, allocations: 395.6 kB / 0.6519 GB, free: 210.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/1.205, allocations: 1.205 MB / 0.6531 GB, free: 209.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/1.207, allocations: 1.781 MB / 0.6549 GB, free: 207.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00187/1.208, allocations: 1.466 MB / 0.6563 GB, free: 206.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/1.209, allocations: 4 kB / 0.6563 GB, free: 206.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.005897/1.214, allocations: 4.255 MB / 0.6604 GB, free: 202 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001339/1.216, allocations: 6.977 MB / 0.6673 GB, free: 194.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/1.216, allocations: 19.97 kB / 0.6673 GB, free: 194.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01248/1.228, allocations: 3.629 MB / 0.6708 GB, free: 191 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/1.23, allocations: 331.4 kB / 0.6711 GB, free: 190.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005663/1.235, allocations: 4.019 MB / 0.6751 GB, free: 186.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/1.238, allocations: 194.7 kB / 0.6752 GB, free: 186.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002204/1.238, allocations: 116 kB / 0.6754 GB, free: 186.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/1.238, allocations: 7.969 kB / 0.6754 GB, free: 186.3 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005093/1.243, allocations: 3.831 MB / 0.6791 GB, free: 182.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/1.243, allocations: 16.62 kB / 0.6791 GB, free: 182.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008635/1.252, allocations: 2.883 MB / 0.6819 GB, free: 179.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/1.253, allocations: 371.4 kB / 0.6823 GB, free: 179.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004371/1.258, allocations: 3.521 MB / 0.6857 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/1.26, allocations: 191.5 kB / 0.6859 GB, free: 175.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000238/1.26, allocations: 109.2 kB / 0.686 GB, free: 175.4 MB / 494.1 MB 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.001448/1.262, allocations: 0.7033 MB / 0.6867 GB, free: 174.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005667/1.262, allocations: 229.2 kB / 0.6869 GB, free: 174.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006367/1.269, allocations: 3.997 MB / 0.6908 GB, free: 170.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/1.269, allocations: 28 kB / 0.6909 GB, free: 170.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.269, allocations: 4 kB / 0.6909 GB, free: 170.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00458/1.273, allocations: 3.416 MB / 0.6942 GB, free: 167 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/1.283, allocations: 6.364 MB / 0.7004 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/1.283, allocations: 0 / 0.7004 GB, free: 160.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/1.285, allocations: 319.6 kB / 0.7007 GB, free: 160.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003997/1.289, allocations: 1.257 MB / 0.7019 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002201/1.289, allocations: 79.94 kB / 0.702 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007325/1.296, allocations: 10.58 MB / 0.7123 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.296, allocations: 0 / 0.7123 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007378/1.304, allocations: 5.245 MB / 0.7175 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/1.305, allocations: 0.6188 MB / 0.7181 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003607/1.306, allocations: 59.97 kB / 0.7181 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/1.307, allocations: 151.6 kB / 0.7183 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/1.307, allocations: 169.7 kB / 0.7184 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.308, allocations: 75.95 kB / 0.7185 GB, free: 141.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00144/1.309, allocations: 1.22 MB / 0.7197 GB, free: 140 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.309, allocations: 2.406 kB / 0.7197 GB, free: 140 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004192/1.313, allocations: 1.736 MB / 0.7214 GB, free: 138.3 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 (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.001941/1.315, allocations: 0.977 MB / 0.7224 GB, free: 137.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008413/1.324, allocations: 5.027 MB / 0.7273 GB, free: 132.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.324, allocations: 4.188 kB / 0.7273 GB, free: 132.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003464/1.327, allocations: 2.256 MB / 0.7295 GB, free: 130.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004096/1.331, allocations: 0.9257 MB / 0.7304 GB, free: 129.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009653/1.341, allocations: 6.643 MB / 0.7369 GB, free: 122.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/1.342, allocations: 1.926 MB / 0.7387 GB, free: 120.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003268/1.346, allocations: 0.956 MB / 0.7397 GB, free: 119.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/1.346, allocations: 195.3 kB / 0.7399 GB, free: 119.5 MB / 494.1 MB Notification: Performance of SimCode: time 2.705e-06/1.346, allocations: 0 / 0.7399 GB, free: 119.5 MB / 494.1 MB Notification: Performance of Templates: time 0.08729/1.434, allocations: 69.22 MB / 0.8075 GB, free: 50.15 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) Environment - environmentSimulation: