Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001615, allocations: 112.8 kB / 16.38 MB, free: 6.422 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.001888/0.001888, allocations: 190.2 kB / 17.32 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 278.4 kB / 291.5 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9506/0.9506, allocations: 169.3 MB / 0.4989 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 95.84 kB / 0.6821 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4596/0.4614, allocations: 86.98 MB / 0.767 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.672/1.133, allocations: 236.4 MB / 0.9979 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.02237/1.156, allocations: 17.53 MB / 1.015 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004138/1.16, allocations: 89.91 kB / 1.015 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005634/1.166, allocations: 2.126 MB / 1.017 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00903/1.175, allocations: 3.585 MB / 1.021 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.006513/1.181, allocations: 2.58 MB / 1.023 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01098/1.192, allocations: 7.884 MB / 1.031 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003214/1.196, allocations: 1.941 MB / 1.033 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006044/1.202, allocations: 2.686 MB / 1.035 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/1.205, allocations: 1.639 MB / 1.037 GB, free: 420 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0004929/1.206, allocations: 210.3 kB / 1.037 GB, free: 420 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007209/1.213, allocations: 3.6 MB / 1.041 GB, free: 380 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001252/1.214, allocations: 0.8945 MB / 1.042 GB, free: 264 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00202/1.216, allocations: 1.383 MB / 1.043 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.008599/1.225, allocations: 4.91 MB / 1.048 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.225, allocations: 0 / 1.048 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.753e-06/1.225, allocations: 0 / 1.048 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.739e-05/1.225, allocations: 0 / 1.048 GB, free: 13.41 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.005607/1.231, allocations: 3.253 MB / 1.051 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/1.231, allocations: 8.344 kB / 1.051 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005279/1.236, allocations: 0.8804 MB / 1.052 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/1.241, allocations: 2.794 MB / 1.054 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-05/1.241, allocations: 106.9 kB / 1.055 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/1.241, allocations: 145.7 kB / 1.055 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003077/1.244, allocations: 1.661 MB / 1.056 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/1.244, allocations: 0 / 1.056 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/1.244, allocations: 57.8 kB / 1.056 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.042e-05/1.244, allocations: 60.95 kB / 1.056 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003252/1.248, allocations: 1.445 MB / 1.058 GB, free: 6.672 MB / 0.7325 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.01108/1.259, allocations: 8.115 MB / 1.066 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002653/1.261, allocations: 1.56 MB / 1.067 GB, free: 12.42 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/1.263, allocations: 0.5103 MB / 1.068 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001233/1.264, allocations: 0.77 MB / 1.069 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/1.265, allocations: 0.5479 MB / 1.069 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=82): time 3.317e-06/1.265, allocations: 0 / 1.069 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of matching and sorting (n=82): time 0.004259/1.269, allocations: 1.601 MB / 1.071 GB, free: 8.809 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/1.269, allocations: 68.06 kB / 1.071 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002856/1.272, allocations: 2.156 MB / 1.073 GB, free: 6.547 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/1.272, allocations: 45.7 kB / 1.073 GB, free: 6.496 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008888/1.273, allocations: 1.059 MB / 1.074 GB, free: 5.43 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/1.273, allocations: 290.2 kB / 1.074 GB, free: 5.148 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004199/1.274, allocations: 325 kB / 1.074 GB, free: 4.828 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001005/1.274, allocations: 305.1 kB / 1.075 GB, free: 4.527 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/1.275, allocations: 0.6196 MB / 1.075 GB, free: 3.906 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/1.277, allocations: 1.015 MB / 1.076 GB, free: 2.742 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/1.279, allocations: 1.54 MB / 1.078 GB, free: 1.117 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.279, allocations: 8 kB / 1.078 GB, free: 1.109 MB / 0.7481 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00351/1.283, allocations: 1.904 MB / 1.08 GB, free: 15.24 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/1.283, allocations: 40.89 kB / 1.08 GB, free: 15.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/1.283, allocations: 11.98 kB / 1.08 GB, free: 15.19 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/1.283, allocations: 16 kB / 1.08 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/1.284, allocations: 326 kB / 1.08 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/1.284, allocations: 21.16 kB / 1.08 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/1.286, allocations: 186.5 kB / 1.08 GB, free: 14.67 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/1.286, allocations: 59.92 kB / 1.08 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002051/1.288, allocations: 1.103 MB / 1.081 GB, free: 13.51 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001482/1.289, allocations: 1.015 MB / 1.082 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002516/1.292, allocations: 1.554 MB / 1.084 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.312e-06/1.292, allocations: 4 kB / 1.084 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.00346/1.295, allocations: 1.901 MB / 1.086 GB, free: 8.832 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/1.296, allocations: 33.7 kB / 1.086 GB, free: 8.793 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/1.296, allocations: 8.844 kB / 1.086 GB, free: 8.785 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/1.296, allocations: 16 kB / 1.086 GB, free: 8.77 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.297, allocations: 329.6 kB / 1.086 GB, free: 8.465 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/1.297, allocations: 21.16 kB / 1.086 GB, free: 8.449 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/1.298, allocations: 163 kB / 1.086 GB, free: 8.289 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/1.298, allocations: 59.98 kB / 1.086 GB, free: 8.23 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000326/1.299, allocations: 268.4 kB / 1.087 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/1.299, allocations: 209.3 kB / 1.087 GB, free: 7.773 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/1.302, allocations: 1.176 MB / 1.088 GB, free: 6.59 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/1.302, allocations: 11.94 kB / 1.088 GB, free: 6.578 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.302, allocations: 0 / 1.088 GB, free: 6.578 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002177/1.304, allocations: 1.233 MB / 1.089 GB, free: 5.262 MB / 0.7637 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 postOpt removeSimpleEquations (simulation): time 0.005613/1.31, allocations: 3.107 MB / 1.092 GB, free: 2.078 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/1.31, allocations: 0 / 1.092 GB, free: 2.078 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009536/1.311, allocations: 195.6 kB / 1.092 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002249/1.311, allocations: 44.81 kB / 1.093 GB, free: 1.848 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.324e-05/1.311, allocations: 27.98 kB / 1.093 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/1.312, allocations: 1.523 MB / 1.094 GB, free: 172 kB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.312, allocations: 7.922 kB / 1.094 GB, free: 164 kB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00362/1.316, allocations: 1.749 MB / 1.096 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007455/1.317, allocations: 413.9 kB / 1.096 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/1.317, allocations: 20 kB / 1.096 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.318, allocations: 73.8 kB / 1.096 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/1.318, allocations: 63.11 kB / 1.096 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.142e-05/1.318, allocations: 35.97 kB / 1.096 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.002033/1.32, allocations: 1.433 MB / 1.098 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/1.32, allocations: 0 / 1.098 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00257/1.323, allocations: 1.099 MB / 1.099 GB, free: 11.22 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001655/1.324, allocations: 0.7369 MB / 1.1 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.004279/1.329, allocations: 2.288 MB / 1.102 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/1.329, allocations: 0.625 kB / 1.102 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001227/1.33, allocations: 0.6098 MB / 1.102 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/1.334, allocations: 1.027 MB / 1.103 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008119/1.342, allocations: 4.311 MB / 1.108 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/1.343, allocations: 1.664 MB / 1.109 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006257/1.344, allocations: 175.4 kB / 1.109 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of SimCode: time 1.042e-06/1.344, allocations: 0 / 1.109 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of Templates: time 0.05384/1.398, allocations: 40.85 MB / 1.149 GB, free: 8.031 MB / 0.8262 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)