Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.379/1.379, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 172.5 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 93.94 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004293, allocations: 12.5 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2374, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.8621/1.1, allocations: 194.2 MB / 1.09 GB, free: 3.371 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.02801/1.128, allocations: 17.25 MB / 1.107 GB, free: 3.125 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004421/1.132, allocations: 68.72 kB / 1.107 GB, free: 3.125 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.005559/1.138, allocations: 1.189 MB / 1.108 GB, free: 3.117 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.01499/1.153, allocations: 3.261 MB / 1.111 GB, free: 3.074 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.01341/1.166, allocations: 3.09 MB / 1.114 GB, free: 3.02 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.008211/1.174, allocations: 2.96 MB / 1.117 GB, free: 3.012 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003148/1.178, allocations: 1.415 MB / 1.118 GB, free: 2.836 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005707/1.183, allocations: 1.918 MB / 1.12 GB, free: 2.828 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00301/1.186, allocations: 1.091 MB / 1.121 GB, free: 2.82 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0004365/1.187, allocations: 80 kB / 1.121 GB, free: 2.82 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005793/1.193, allocations: 1.824 MB / 1.123 GB, free: 2.82 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0009993/1.194, allocations: 0.5859 MB / 1.124 GB, free: 2.82 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001403/1.195, allocations: 468.4 kB / 1.124 GB, free: 18.79 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0056/1.201, allocations: 2.91 MB / 1.127 GB, free: 18.45 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/1.201, allocations: 4 kB / 1.127 GB, free: 18.45 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.274e-06/1.201, allocations: 0 / 1.127 GB, free: 18.45 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.462e-05/1.201, allocations: 0 / 1.127 GB, free: 18.45 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.005982/1.207, allocations: 2.442 MB / 1.129 GB, free: 16.86 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/1.207, allocations: 13.47 kB / 1.129 GB, free: 16.86 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004557/1.207, allocations: 199.8 kB / 1.13 GB, free: 16.78 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004937/1.212, allocations: 0.8083 MB / 1.13 GB, free: 16.45 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004406/1.217, allocations: 1.612 MB / 1.132 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004494/1.217, allocations: 170.8 kB / 1.132 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005476/1.218, allocations: 152.4 kB / 1.132 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004345/1.222, allocations: 1.691 MB / 1.134 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/1.222, allocations: 1.094 kB / 1.134 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/1.222, allocations: 58.44 kB / 1.134 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/1.222, allocations: 49.11 kB / 1.134 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003945/1.226, allocations: 1.483 MB / 1.135 GB, free: 14.86 MB / 0.7136 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.01269/1.239, allocations: 7.704 MB / 1.143 GB, free: 9.707 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/1.242, allocations: 1.644 MB / 1.145 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001176/1.243, allocations: 0.64 MB / 1.145 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/1.244, allocations: 0.5689 MB / 1.146 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001178/1.246, allocations: 118.5 kB / 1.146 GB, free: 7.969 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=84): time 4.538e-06/1.246, allocations: 6.844 kB / 1.146 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of matching and sorting (n=84): time 0.004167/1.25, allocations: 1.645 MB / 1.148 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/1.25, allocations: 143.5 kB / 1.148 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/1.252, allocations: 1.615 MB / 1.149 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001488/1.252, allocations: 48.58 kB / 1.149 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008106/1.253, allocations: 0.9348 MB / 1.15 GB, free: 6.402 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003287/1.254, allocations: 296.4 kB / 1.15 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/1.254, allocations: 23.56 kB / 1.15 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001652/1.254, allocations: 353.1 kB / 1.151 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/1.255, allocations: 464.3 kB / 1.151 GB, free: 5.785 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/1.256, allocations: 0.8131 MB / 1.152 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/1.257, allocations: 0.564 MB / 1.153 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/1.257, allocations: 2.75 kB / 1.153 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003148/1.26, allocations: 1.474 MB / 1.154 GB, free: 4.824 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001289/1.262, allocations: 3.309 MB / 1.157 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/1.262, allocations: 8 kB / 1.157 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.691e-05/1.262, allocations: 13.78 kB / 1.157 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/1.263, allocations: 283.6 kB / 1.158 GB, free: 1.289 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.24e-05/1.263, allocations: 20.89 kB / 1.158 GB, free: 1.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/1.265, allocations: 167.9 kB / 1.158 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/1.265, allocations: 55.11 kB / 1.158 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.265, allocations: 2.906 kB / 1.158 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002611/1.268, allocations: 1.282 MB / 1.159 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/1.268, allocations: 13.77 kB / 1.159 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/1.268, allocations: 15.03 kB / 1.159 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.269, allocations: 284.5 kB / 1.159 GB, free: 0.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/1.269, allocations: 17.81 kB / 1.159 GB, free: 0.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/1.271, allocations: 167.9 kB / 1.16 GB, free: 0.8984 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.747e-05/1.271, allocations: 56.41 kB / 1.16 GB, free: 0.8945 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001129/1.272, allocations: 0.5445 MB / 1.16 GB, free: 0.668 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/1.272, allocations: 180 kB / 1.16 GB, free: 0.5742 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/1.275, allocations: 1.206 MB / 1.161 GB, free: 276 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/1.275, allocations: 10.06 kB / 1.161 GB, free: 276 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.275, allocations: 4 kB / 1.162 GB, free: 272 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002311/1.278, allocations: 1.271 MB / 1.163 GB, free: 15.65 MB / 0.7292 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.006378/1.284, allocations: 3.011 MB / 1.166 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.284, allocations: 0 / 1.166 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009533/1.285, allocations: 199.7 kB / 1.166 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/1.285, allocations: 45.02 kB / 1.166 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.257e-05/1.285, allocations: 27.86 kB / 1.166 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/1.287, allocations: 1.44 MB / 1.167 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.287, allocations: 3.984 kB / 1.167 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0043/1.291, allocations: 1.898 MB / 1.169 GB, free: 12.42 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.293, allocations: 347.2 kB / 1.17 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/1.293, allocations: 17.69 kB / 1.17 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/1.294, allocations: 160.1 kB / 1.17 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/1.294, allocations: 64.25 kB / 1.17 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/1.294, allocations: 38.73 kB / 1.17 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.001712/1.296, allocations: 1.083 MB / 1.171 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.01e-07/1.296, allocations: 0 / 1.171 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.003716/1.3, allocations: 1.008 MB / 1.172 GB, free: 10.64 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[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 (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006248/1.306, allocations: 3.241 MB / 1.175 GB, free: 7.988 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00424/1.31, allocations: 1.908 MB / 1.177 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.31, allocations: 1.375 kB / 1.177 GB, free: 6.551 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001374/1.312, allocations: 0.626 MB / 1.177 GB, free: 6.062 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004712/1.316, allocations: 0.8125 MB / 1.178 GB, free: 5.391 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01709/1.334, allocations: 11.21 MB / 1.189 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/1.336, allocations: 1.541 MB / 1.191 GB, free: 8.824 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002997/1.339, allocations: 450.7 kB / 1.191 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/1.34, allocations: 0.7912 MB / 1.192 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of SimCode: time 1.843e-06/1.34, allocations: 0 / 1.192 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1007/1.441, allocations: 47.74 MB / 1.239 GB, free: 8.984 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/1.441, allocations: 253.3 kB / 1.239 GB, free: 8.652 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.051/5.492, allocations: 4 kB / 1.239 GB, free: 8.648 MB / 0.7917 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)