Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000722/0.0007221, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002783, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.198, allocations: 47.58 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.06925/0.2673, allocations: 86.53 MB / 461.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02765/0.295, allocations: 20.56 MB / 481.6 MB, free: 5.535 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00266/0.2977, allocations: 107.1 kB / 481.7 MB, free: 5.43 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.3002, allocations: 0.7725 MB / 482.5 MB, free: 4.652 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008355/0.3086, allocations: 3.429 MB / 485.9 MB, free: 1.207 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.319, allocations: 4.434 MB / 490.4 MB, free: 12.78 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009468/0.3285, allocations: 8.713 MB / 499.1 MB, free: 4.039 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002897/0.3314, allocations: 1.512 MB / 0.4889 GB, free: 2.504 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3234/0.6549, allocations: 126.4 MB / 0.6123 GB, free: 6.504 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06234/0.7172, allocations: 55.01 MB / 0.6661 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0006941/0.718, allocations: 128 kB / 0.6662 GB, free: 4.406 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2113/0.9293, allocations: 7.95 MB / 0.6739 GB, free: 139 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001494/0.9308, allocations: 0.9578 MB / 0.6749 GB, free: 139 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0009494/0.9318, allocations: 0.5298 MB / 0.6754 GB, free: 139 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.00471/0.9365, allocations: 3.841 MB / 0.6791 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.9365, allocations: 0.5 kB / 0.6791 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9366, allocations: 0.5312 kB / 0.6791 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.879e-05/0.9366, allocations: 0 / 0.6791 GB, free: 138.8 MB / 0.4948 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.007078/0.9437, allocations: 3.028 MB / 0.6821 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.9437, allocations: 9.406 kB / 0.6821 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008391/0.9446, allocations: 309 kB / 0.6824 GB, free: 137.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.9471, allocations: 1.512 MB / 0.6839 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.9473, allocations: 213.7 kB / 0.6841 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/0.9476, allocations: 209.9 kB / 0.6843 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005209/0.9529, allocations: 3.278 MB / 0.6875 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.058e-05/0.9529, allocations: 6.531 kB / 0.6875 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002317/0.9532, allocations: 86.25 kB / 0.6876 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000357/0.9535, allocations: 252.2 kB / 0.6878 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004421/0.958, allocations: 3.1 MB / 0.6908 GB, free: 136.5 MB / 0.4948 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.01552/0.9735, allocations: 13.8 MB / 0.7043 GB, free: 129.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003464/0.977, allocations: 2.229 MB / 0.7065 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.9788, allocations: 1.351 MB / 0.7078 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006955/0.9857, allocations: 5.876 MB / 0.7136 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.9858, allocations: 57.03 kB / 0.7136 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007705/0.9865, allocations: 184.8 kB / 0.7138 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 3.477e-06/0.9866, allocations: 0 / 0.7138 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.02058/1.007, allocations: 9.287 MB / 0.7229 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/1.007, allocations: 76.16 kB / 0.7229 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/1.009, allocations: 1.824 MB / 0.7247 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001866/1.01, allocations: 59.95 kB / 0.7248 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/1.01, allocations: 1.065 MB / 0.7258 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004381/1.01, allocations: 0.6795 MB / 0.7265 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/1.011, allocations: 48.69 kB / 0.7265 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.011, allocations: 397.8 kB / 0.7269 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/1.012, allocations: 1.198 MB / 0.7281 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/1.014, allocations: 1.773 MB / 0.7298 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001968/1.016, allocations: 1.451 MB / 0.7312 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/1.016, allocations: 8 kB / 0.7312 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006142/1.022, allocations: 4.215 MB / 0.7353 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003005/1.023, allocations: 0.6017 MB / 0.7359 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/1.023, allocations: 16 kB / 0.7359 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01298/1.036, allocations: 3.667 MB / 0.7395 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/1.037, allocations: 333.1 kB / 0.7398 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005419/1.042, allocations: 3.945 MB / 0.7437 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/1.045, allocations: 184 kB / 0.7439 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/1.045, allocations: 121.1 kB / 0.744 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/1.045, allocations: 4 kB / 0.744 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005269/1.05, allocations: 3.8 MB / 0.7477 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/1.05, allocations: 16 kB / 0.7477 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008787/1.059, allocations: 2.839 MB / 0.7505 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/1.061, allocations: 372.1 kB / 0.7508 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004322/1.065, allocations: 3.462 MB / 0.7542 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/1.067, allocations: 192.6 kB / 0.7544 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/1.067, allocations: 110.8 kB / 0.7545 GB, free: 102.2 MB / 0.4948 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.001214/1.068, allocations: 0.6985 MB / 0.7552 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003127/1.069, allocations: 229.2 kB / 0.7554 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006486/1.075, allocations: 3.969 MB / 0.7593 GB, free: 98.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/1.075, allocations: 20 kB / 0.7593 GB, free: 98.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.075, allocations: 4 kB / 0.7593 GB, free: 98.76 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004773/1.08, allocations: 3.38 MB / 0.7626 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00913/1.089, allocations: 6.31 MB / 0.7688 GB, free: 91.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/1.089, allocations: 0 / 0.7688 GB, free: 91.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/1.091, allocations: 319.9 kB / 0.7691 GB, free: 91.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004138/1.095, allocations: 1.229 MB / 0.7703 GB, free: 90.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/1.095, allocations: 72.39 kB / 0.7703 GB, free: 90.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007039/1.102, allocations: 10.46 MB / 0.7806 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.102, allocations: 0 / 0.7806 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007435/1.109, allocations: 5.182 MB / 0.7856 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/1.111, allocations: 0.6033 MB / 0.7862 GB, free: 76.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003211/1.111, allocations: 55.62 kB / 0.7863 GB, free: 76.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.112, allocations: 147.6 kB / 0.7864 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/1.113, allocations: 168.2 kB / 0.7866 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/1.113, allocations: 81.39 kB / 0.7866 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001378/1.114, allocations: 1.24 MB / 0.7878 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2e-07/1.114, allocations: 4 kB / 0.7879 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003756/1.118, allocations: 1.734 MB / 0.7895 GB, free: 73.23 MB / 0.4948 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.001768/1.12, allocations: 0.9847 MB / 0.7905 GB, free: 72.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008452/1.128, allocations: 4.962 MB / 0.7954 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.128, allocations: 4.062 kB / 0.7954 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003299/1.132, allocations: 2.235 MB / 0.7975 GB, free: 65.21 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004353/1.136, allocations: 1.001 MB / 0.7985 GB, free: 64.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008215/1.144, allocations: 6.668 MB / 0.805 GB, free: 57.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/1.145, allocations: 1.848 MB / 0.8068 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007134/1.146, allocations: 203.4 kB / 0.807 GB, free: 55.46 MB / 0.4948 GB Notification: Performance of SimCode: time 7.21e-07/1.146, allocations: 0 / 0.807 GB, free: 55.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.2249/1.371, allocations: 88.37 MB / 0.8933 GB, free: 211.3 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)