Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.00159/0.00159, allocations: 107.1 kB / 16.36 MB, free: 6.352 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.001682/0.001681, allocations: 194.3 kB / 17.3 MB, free: 5.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.873/1.873, allocations: 292.3 MB / 0.5496 GB, free: 17.49 MB / 462.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.001413/0.001413, allocations: 71.89 kB / 0.6729 GB, free: 5.785 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2702, allocations: 114.6 MB / 0.7848 GB, free: 3.117 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.715/0.9853, allocations: 236.1 MB / 1.015 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02889/1.014, allocations: 18.21 MB / 1.033 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003947/1.018, allocations: 87.5 kB / 1.033 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004141/1.022, allocations: 1.355 MB / 1.035 GB, free: 10.03 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01004/1.032, allocations: 3.403 MB / 1.038 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01104/1.043, allocations: 3.874 MB / 1.042 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00836/1.052, allocations: 4.986 MB / 1.046 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003792/1.056, allocations: 1.909 MB / 1.048 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006876/1.063, allocations: 2.693 MB / 1.051 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003695/1.066, allocations: 1.566 MB / 1.053 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0007834/1.067, allocations: 200 kB / 1.053 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008097/1.075, allocations: 3.555 MB / 1.056 GB, free: 3.793 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001871/1.077, allocations: 0.7517 MB / 1.057 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004322/1.081, allocations: 1.205 MB / 1.058 GB, free: 1.828 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01341/1.095, allocations: 4.44 MB / 1.062 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/1.095, allocations: 8 kB / 1.062 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.034e-06/1.095, allocations: 0 / 1.062 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000142/1.095, allocations: 0 / 1.062 GB, free: 13.37 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 334 * Number of variables: 334 Notification: Performance of Generate backend data structure: time 0.007574/1.103, allocations: 2.868 MB / 1.065 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.103, allocations: 8.75 kB / 1.065 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004907/1.108, allocations: 0.7737 MB / 1.066 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/1.111, allocations: 1.727 MB / 1.068 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.775e-05/1.111, allocations: 103.6 kB / 1.068 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/1.111, allocations: 155.9 kB / 1.068 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003131/1.114, allocations: 1.664 MB / 1.07 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.866e-05/1.115, allocations: 11.97 kB / 1.07 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/1.115, allocations: 56 kB / 1.07 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.676e-05/1.115, allocations: 50.45 kB / 1.07 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003108/1.118, allocations: 1.415 MB / 1.071 GB, free: 4.332 MB / 0.8575 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.01012/1.128, allocations: 7.696 MB / 1.079 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/1.131, allocations: 1.584 MB / 1.08 GB, free: 10.35 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/1.132, allocations: 0.4992 MB / 1.081 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/1.133, allocations: 0.7747 MB / 1.081 GB, free: 8.926 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/1.134, allocations: 0.5434 MB / 1.082 GB, free: 8.367 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 3.446e-06/1.134, allocations: 0 / 1.082 GB, free: 8.367 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.004106/1.138, allocations: 1.56 MB / 1.083 GB, free: 6.781 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/1.138, allocations: 123.4 kB / 1.084 GB, free: 6.637 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/1.141, allocations: 1.588 MB / 1.085 GB, free: 5 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001101/1.141, allocations: 45.7 kB / 1.085 GB, free: 4.949 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008177/1.141, allocations: 0.9358 MB / 1.086 GB, free: 4.004 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/1.142, allocations: 295.7 kB / 1.086 GB, free: 3.711 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/1.142, allocations: 218.8 kB / 1.087 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000134/1.142, allocations: 345.9 kB / 1.087 GB, free: 3.148 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/1.143, allocations: 473.8 kB / 1.087 GB, free: 2.684 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/1.145, allocations: 0.8118 MB / 1.088 GB, free: 1.715 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/1.147, allocations: 1.244 MB / 1.089 GB, free: 352 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/1.147, allocations: 4 kB / 1.089 GB, free: 348 kB / 0.8731 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002911/1.15, allocations: 1.461 MB / 1.091 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/1.15, allocations: 37.69 kB / 1.091 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/1.15, allocations: 12 kB / 1.091 GB, free: 14.81 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.363e-05/1.15, allocations: 12.75 kB / 1.091 GB, free: 14.8 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/1.151, allocations: 272.2 kB / 1.091 GB, free: 14.53 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/1.151, allocations: 23.92 kB / 1.091 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/1.152, allocations: 139.6 kB / 1.091 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.152, allocations: 51.98 kB / 1.091 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001766/1.154, allocations: 0.8265 MB / 1.092 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001331/1.155, allocations: 0.804 MB / 1.093 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002238/1.158, allocations: 1.206 MB / 1.094 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.117e-06/1.158, allocations: 4 kB / 1.094 GB, free: 11.19 MB / 0.8887 GB Notification: Performance of matching and sorting (n=137) (initialization_lambda0): time 0.002985/1.161, allocations: 1.434 MB / 1.095 GB, free: 9.742 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/1.161, allocations: 43.89 kB / 1.095 GB, free: 9.695 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/1.161, allocations: 8 kB / 1.095 GB, free: 9.688 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/1.161, allocations: 19.94 kB / 1.096 GB, free: 9.668 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/1.162, allocations: 263.7 kB / 1.096 GB, free: 9.41 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.7e-05/1.162, allocations: 27.86 kB / 1.096 GB, free: 9.383 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/1.163, allocations: 123.8 kB / 1.096 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/1.163, allocations: 51.98 kB / 1.096 GB, free: 9.211 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (133): * Single equations (assignments): 129 * Array equations: 2 * 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.0003539/1.164, allocations: 249.8 kB / 1.096 GB, free: 8.961 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003482/1.164, allocations: 189.6 kB / 1.096 GB, free: 8.773 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/1.167, allocations: 1.163 MB / 1.098 GB, free: 7.602 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/1.167, allocations: 8 kB / 1.098 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/1.167, allocations: 0 / 1.098 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002192/1.169, allocations: 1.223 MB / 1.099 GB, free: 6.281 MB / 0.8887 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.005679/1.175, allocations: 2.867 MB / 1.102 GB, free: 3.305 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.175, allocations: 0 / 1.102 GB, free: 3.305 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009318/1.176, allocations: 183.9 kB / 1.102 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002455/1.176, allocations: 44.83 kB / 1.102 GB, free: 3.078 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-05/1.176, allocations: 27.98 kB / 1.102 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/1.177, allocations: 1.537 MB / 1.103 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.177, allocations: 0 / 1.103 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003642/1.181, allocations: 1.769 MB / 1.105 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006978/1.182, allocations: 342.5 kB / 1.105 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000323/1.182, allocations: 23.98 kB / 1.105 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/1.183, allocations: 65.88 kB / 1.105 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/1.183, allocations: 60.52 kB / 1.105 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.555e-05/1.183, allocations: 27.98 kB / 1.105 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001835/1.185, allocations: 1.081 MB / 1.107 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/1.185, allocations: 0 / 1.107 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003237/1.189, allocations: 0.9702 MB / 1.107 GB, free: 12.96 MB / 0.9044 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 (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.002038/1.191, allocations: 0.6375 MB / 1.108 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004425/1.195, allocations: 1.88 MB / 1.11 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/1.195, allocations: 0.625 kB / 1.11 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001517/1.197, allocations: 0.606 MB / 1.111 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005072/1.202, allocations: 0.8399 MB / 1.111 GB, free: 9.188 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.212, allocations: 3.729 MB / 1.115 GB, free: 5.414 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001803/1.214, allocations: 1.495 MB / 1.116 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000641/1.215, allocations: 143.4 kB / 1.117 GB, free: 3.742 MB / 0.9044 GB Notification: Performance of SimCode: time 9.52e-07/1.215, allocations: 0 / 1.117 GB, free: 3.742 MB / 0.9044 GB Notification: Performance of Templates: time 0.4995/1.714, allocations: 35.01 MB / 1.151 GB, free: 292.7 MB / 0.92 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)