Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0009434/0.000943, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001041/0.001042, allocations: 168.7 kB / 15.95 MB, free: 204 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.566/1.566, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005068/0.0005069, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2673, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09491/0.3623, allocations: 86.54 MB / 413 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03134/0.3937, allocations: 20.53 MB / 433.5 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003048/0.3968, allocations: 107.1 kB / 433.6 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002989/0.3998, allocations: 0.7765 MB / 434.4 MB, free: 7.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.411, allocations: 3.436 MB / 437.9 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01264/0.4237, allocations: 4.439 MB / 442.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.4351, allocations: 8.702 MB / 451 MB, free: 6.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003951/0.4391, allocations: 1.515 MB / 452.5 MB, free: 5.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4965/0.9357, allocations: 126.4 MB / 0.5654 GB, free: 11.83 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.09174/1.027, allocations: 55 MB / 0.6191 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001183/1.029, allocations: 128 kB / 0.6192 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01627/1.045, allocations: 7.947 MB / 0.6269 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002479/1.047, allocations: 0.9595 MB / 0.6279 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001514/1.049, allocations: 0.5345 MB / 0.6284 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.2824/1.331, allocations: 3.837 MB / 0.6322 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/1.331, allocations: 0 / 0.6322 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.046e-06/1.331, allocations: 0.5625 kB / 0.6322 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001658/1.332, allocations: 0 / 0.6322 GB, free: 141.6 MB / 0.4981 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.009776/1.341, allocations: 3.026 MB / 0.6351 GB, free: 140.2 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/1.341, allocations: 9.75 kB / 0.6351 GB, free: 140.2 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/1.344, allocations: 306.4 kB / 0.6354 GB, free: 140.1 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004131/1.348, allocations: 1.52 MB / 0.6369 GB, free: 139.7 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/1.348, allocations: 223.4 kB / 0.6371 GB, free: 139.6 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004397/1.348, allocations: 197.1 kB / 0.6373 GB, free: 139.6 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005645/1.354, allocations: 3.28 MB / 0.6405 GB, free: 139.2 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.014e-05/1.354, allocations: 8.75 kB / 0.6405 GB, free: 139.2 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/1.354, allocations: 81.7 kB / 0.6406 GB, free: 139.2 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003158/1.355, allocations: 255 kB / 0.6408 GB, free: 139.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005126/1.36, allocations: 3.106 MB / 0.6439 GB, free: 139.2 MB / 0.4981 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.01832/1.378, allocations: 13.79 MB / 0.6573 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003823/1.382, allocations: 2.221 MB / 0.6595 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/1.384, allocations: 1.351 MB / 0.6608 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009214/1.393, allocations: 5.878 MB / 0.6666 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/1.393, allocations: 51.78 kB / 0.6666 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001276/1.395, allocations: 182.1 kB / 0.6668 GB, free: 129.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 5.881e-06/1.395, allocations: 1.156 kB / 0.6668 GB, free: 129.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.02322/1.418, allocations: 9.292 MB / 0.6759 GB, free: 128 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/1.418, allocations: 74.34 kB / 0.6759 GB, free: 127.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/1.421, allocations: 1.819 MB / 0.6777 GB, free: 127.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000288/1.421, allocations: 67.39 kB / 0.6778 GB, free: 127.6 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000732/1.422, allocations: 1.063 MB / 0.6788 GB, free: 127.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005973/1.423, allocations: 0.6798 MB / 0.6795 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/1.423, allocations: 44.5 kB / 0.6795 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.423, allocations: 400.1 kB / 0.6799 GB, free: 126.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/1.425, allocations: 1.192 MB / 0.6811 GB, free: 126.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/1.427, allocations: 1.787 MB / 0.6828 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002057/1.429, allocations: 1.446 MB / 0.6842 GB, free: 125.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-06/1.429, allocations: 7.531 kB / 0.6842 GB, free: 125.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007018/1.436, allocations: 4.216 MB / 0.6883 GB, free: 124.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003608/1.436, allocations: 0.6006 MB / 0.6889 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/1.436, allocations: 17.97 kB / 0.6889 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01223/1.449, allocations: 3.667 MB / 0.6925 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/1.45, allocations: 332.2 kB / 0.6928 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005506/1.455, allocations: 3.95 MB / 0.6967 GB, free: 118.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/1.458, allocations: 186.4 kB / 0.6969 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/1.458, allocations: 113 kB / 0.697 GB, free: 118 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/1.458, allocations: 4 kB / 0.697 GB, free: 118 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005558/1.464, allocations: 3.797 MB / 0.7007 GB, free: 115.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/1.464, allocations: 16 kB / 0.7007 GB, free: 115.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008234/1.472, allocations: 2.841 MB / 0.7035 GB, free: 113.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/1.474, allocations: 380.3 kB / 0.7039 GB, free: 112.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/1.478, allocations: 3.466 MB / 0.7072 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/1.481, allocations: 185.8 kB / 0.7074 GB, free: 110.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/1.481, allocations: 106.9 kB / 0.7075 GB, free: 110 MB / 0.4981 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.001533/1.483, allocations: 0.7054 MB / 0.7082 GB, free: 109.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004962/1.483, allocations: 225.3 kB / 0.7084 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006722/1.49, allocations: 3.959 MB / 0.7123 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/1.49, allocations: 24 kB / 0.7123 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/1.49, allocations: 0 / 0.7123 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004958/1.495, allocations: 3.381 MB / 0.7156 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/1.506, allocations: 6.307 MB / 0.7218 GB, free: 99.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.506, allocations: 4 kB / 0.7218 GB, free: 99.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/1.507, allocations: 317 kB / 0.7221 GB, free: 99.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003884/1.511, allocations: 1.225 MB / 0.7233 GB, free: 98.37 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002206/1.511, allocations: 77.33 kB / 0.7233 GB, free: 98.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007426/1.519, allocations: 10.46 MB / 0.7336 GB, free: 88.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.519, allocations: 0 / 0.7336 GB, free: 88.35 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008134/1.527, allocations: 5.189 MB / 0.7386 GB, free: 84.78 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.529, allocations: 0.6013 MB / 0.7392 GB, free: 84.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004517/1.529, allocations: 53.92 kB / 0.7393 GB, free: 84.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.531, allocations: 149.8 kB / 0.7394 GB, free: 84.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003861/1.531, allocations: 167.6 kB / 0.7396 GB, free: 84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/1.531, allocations: 82.2 kB / 0.7396 GB, free: 83.94 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001591/1.533, allocations: 1.244 MB / 0.7409 GB, free: 83.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/1.533, allocations: 0 / 0.7409 GB, free: 83.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004892/1.538, allocations: 1.736 MB / 0.7426 GB, free: 81.31 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 (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.002433/1.54, allocations: 0.9691 MB / 0.7435 GB, free: 80.42 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009095/1.549, allocations: 4.968 MB / 0.7484 GB, free: 75.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.549, allocations: 0 / 0.7484 GB, free: 75.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003533/1.553, allocations: 2.249 MB / 0.7505 GB, free: 73.29 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004642/1.558, allocations: 0.9937 MB / 0.7515 GB, free: 72.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009501/1.567, allocations: 6.596 MB / 0.758 GB, free: 65.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/1.568, allocations: 1.882 MB / 0.7598 GB, free: 63.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00354/1.572, allocations: 0.9487 MB / 0.7607 GB, free: 62.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005752/1.572, allocations: 194.9 kB / 0.7609 GB, free: 62.64 MB / 0.4981 GB Notification: Performance of SimCode: time 1.703e-06/1.573, allocations: 0 / 0.7609 GB, free: 62.64 MB / 0.4981 GB Notification: Performance of Templates: time 0.3223/1.895, allocations: 70.13 MB / 0.8294 GB, free: 228.8 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)