Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_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.0014/0.0014, allocations: 104.2 kB / 16.41 MB, free: 6.516 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.001564/0.001565, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 67.84 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.109/1.11, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.2929/1.403, allocations: 236.4 MB / 1.398 GB, free: 6.504 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.03326/1.437, allocations: 17.55 MB / 1.415 GB, free: 4.906 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00463/1.441, allocations: 91.5 kB / 1.415 GB, free: 4.816 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.007826/1.449, allocations: 2.156 MB / 1.418 GB, free: 2.66 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.01226/1.461, allocations: 3.705 MB / 1.421 GB, free: 14.94 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.008282/1.47, allocations: 2.588 MB / 1.424 GB, free: 12.36 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.01422/1.484, allocations: 7.892 MB / 1.431 GB, free: 4.453 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004445/1.488, allocations: 1.938 MB / 1.433 GB, free: 2.469 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008029/1.496, allocations: 2.779 MB / 1.436 GB, free: 15.68 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004487/1.501, allocations: 1.637 MB / 1.438 GB, free: 14.04 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.001146/1.502, allocations: 212 kB / 1.438 GB, free: 13.84 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009246/1.511, allocations: 3.61 MB / 1.441 GB, free: 10.22 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.001962/1.513, allocations: 0.8958 MB / 1.442 GB, free: 9.32 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.003501/1.517, allocations: 1.38 MB / 1.444 GB, free: 7.934 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.01091/1.528, allocations: 4.912 MB / 1.448 GB, free: 3.008 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.528, allocations: 3.938 kB / 1.448 GB, free: 3.004 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.764e-06/1.528, allocations: 0 / 1.448 GB, free: 3.004 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.697e-05/1.528, allocations: 0 / 1.448 GB, free: 3.004 MB / 1.17 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.007205/1.535, allocations: 3.246 MB / 1.452 GB, free: 15.68 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/1.535, allocations: 11.98 kB / 1.452 GB, free: 15.66 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005705/1.541, allocations: 0.8863 MB / 1.452 GB, free: 14.78 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00582/1.547, allocations: 2.79 MB / 1.455 GB, free: 11.91 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.616e-05/1.547, allocations: 102.6 kB / 1.455 GB, free: 11.81 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/1.547, allocations: 148 kB / 1.455 GB, free: 11.66 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003379/1.551, allocations: 1.668 MB / 1.457 GB, free: 9.918 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/1.551, allocations: 4 kB / 1.457 GB, free: 9.914 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/1.551, allocations: 56 kB / 1.457 GB, free: 9.859 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.766e-05/1.551, allocations: 54.5 kB / 1.457 GB, free: 9.805 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003374/1.554, allocations: 1.446 MB / 1.459 GB, free: 8.352 MB / 1.186 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.01342/1.568, allocations: 8.112 MB / 1.466 GB, free: 15.65 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002793/1.571, allocations: 1.556 MB / 1.468 GB, free: 13.96 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/1.572, allocations: 0.5102 MB / 1.468 GB, free: 13.45 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001383/1.573, allocations: 0.7785 MB / 1.469 GB, free: 12.52 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/1.574, allocations: 0.5352 MB / 1.47 GB, free: 11.98 MB / 1.201 GB Notification: Performance of pre-optimization done (n=82): time 3.797e-06/1.574, allocations: 0 / 1.47 GB, free: 11.98 MB / 1.201 GB Notification: Performance of matching and sorting (n=82): time 0.004499/1.579, allocations: 1.606 MB / 1.471 GB, free: 10.34 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/1.579, allocations: 64.06 kB / 1.471 GB, free: 10.27 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/1.582, allocations: 2.152 MB / 1.473 GB, free: 8.09 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.000164/1.582, allocations: 45.7 kB / 1.474 GB, free: 8.039 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.00107/1.584, allocations: 1.066 MB / 1.475 GB, free: 6.957 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/1.584, allocations: 299.7 kB / 1.475 GB, free: 6.66 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004943/1.584, allocations: 318.6 kB / 1.475 GB, free: 6.344 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.585, allocations: 305.1 kB / 1.475 GB, free: 6.043 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/1.586, allocations: 0.6118 MB / 1.476 GB, free: 5.43 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/1.587, allocations: 1.014 MB / 1.477 GB, free: 4.262 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/1.59, allocations: 1.555 MB / 1.479 GB, free: 2.582 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/1.59, allocations: 4 kB / 1.479 GB, free: 2.578 MB / 1.201 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00432/1.594, allocations: 1.905 MB / 1.48 GB, free: 0.6523 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/1.595, allocations: 34.64 kB / 1.48 GB, free: 0.6133 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/1.595, allocations: 8 kB / 1.48 GB, free: 0.6055 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.112e-05/1.595, allocations: 20 kB / 1.48 GB, free: 0.5859 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/1.596, allocations: 327.5 kB / 1.481 GB, free: 272 kB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.763e-05/1.596, allocations: 19.94 kB / 1.481 GB, free: 252 kB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/1.598, allocations: 182.6 kB / 1.481 GB, free: 68 kB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/1.598, allocations: 64.02 kB / 1.481 GB, free: 4 kB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002682/1.601, allocations: 1.116 MB / 1.482 GB, free: 14.88 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001654/1.603, allocations: 1.007 MB / 1.483 GB, free: 13.72 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002669/1.605, allocations: 1.55 MB / 1.485 GB, free: 12.03 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.975e-06/1.605, allocations: 4 kB / 1.485 GB, free: 12.03 MB / 1.217 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.00384/1.609, allocations: 1.909 MB / 1.486 GB, free: 10.11 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 5.234e-05/1.609, allocations: 39.73 kB / 1.487 GB, free: 10.07 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/1.609, allocations: 12 kB / 1.487 GB, free: 10.05 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/1.609, allocations: 16 kB / 1.487 GB, free: 10.04 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/1.611, allocations: 323.7 kB / 1.487 GB, free: 9.723 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.596e-05/1.611, allocations: 23.94 kB / 1.487 GB, free: 9.699 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/1.612, allocations: 170.9 kB / 1.487 GB, free: 9.531 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/1.613, allocations: 55.98 kB / 1.487 GB, free: 9.477 MB / 1.217 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.0004135/1.613, allocations: 259.8 kB / 1.487 GB, free: 9.215 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003314/1.613, allocations: 213.3 kB / 1.488 GB, free: 9.004 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/1.616, allocations: 1.181 MB / 1.489 GB, free: 7.809 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/1.616, allocations: 8 kB / 1.489 GB, free: 7.801 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.616, allocations: 0 / 1.489 GB, free: 7.801 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002249/1.619, allocations: 1.235 MB / 1.49 GB, free: 6.477 MB / 1.217 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.006343/1.625, allocations: 3.101 MB / 1.493 GB, free: 3.273 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/1.625, allocations: 0 / 1.493 GB, free: 3.273 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00097/1.626, allocations: 191.9 kB / 1.493 GB, free: 3.086 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002343/1.626, allocations: 40.83 kB / 1.493 GB, free: 3.043 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/1.626, allocations: 23.98 kB / 1.493 GB, free: 3.02 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/1.628, allocations: 1.531 MB / 1.495 GB, free: 1.348 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/1.628, allocations: 7.938 kB / 1.495 GB, free: 1.34 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003831/1.632, allocations: 1.759 MB / 1.496 GB, free: 15.55 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.633, allocations: 406 kB / 1.497 GB, free: 15.13 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/1.633, allocations: 16 kB / 1.497 GB, free: 15.11 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/1.634, allocations: 81.55 kB / 1.497 GB, free: 15.04 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/1.634, allocations: 52.58 kB / 1.497 GB, free: 14.98 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.776e-05/1.634, allocations: 35.97 kB / 1.497 GB, free: 14.95 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.0023/1.636, allocations: 1.437 MB / 1.498 GB, free: 13.5 MB / 1.232 GB Notification: Performance of sort global known variables: time 2.1e-07/1.636, allocations: 4 kB / 1.498 GB, free: 13.49 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.003062/1.639, allocations: 1.103 MB / 1.499 GB, free: 12.39 MB / 1.232 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.001863/1.641, allocations: 0.7267 MB / 1.5 GB, free: 11.8 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.004778/1.646, allocations: 2.309 MB / 1.502 GB, free: 9.469 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.646, allocations: 0 / 1.502 GB, free: 9.469 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/1.648, allocations: 0.5961 MB / 1.503 GB, free: 8.863 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004442/1.652, allocations: 1.023 MB / 1.504 GB, free: 7.855 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009262/1.661, allocations: 4.311 MB / 1.508 GB, free: 3.492 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/1.663, allocations: 1.656 MB / 1.51 GB, free: 1.797 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007772/1.663, allocations: 175.4 kB / 1.51 GB, free: 1.625 MB / 1.232 GB Notification: Performance of SimCode: time 8.61e-07/1.663, allocations: 0 / 1.51 GB, free: 1.625 MB / 1.232 GB Notification: Performance of Templates: time 0.07052/1.734, allocations: 41.09 MB / 1.55 GB, free: 8.707 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches