Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(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_latest_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_latest_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.00108/0.00108, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 173 kB / 16.92 MB, free: 6.652 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.962/2.962, allocations: 443.2 MB / 0.7181 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003877/0.0003878, allocations: 15.17 kB / 0.8801 GB, free: 42.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3705, allocations: 155.2 MB / 1.032 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 1.111/1.482, allocations: 231 MB / 1.257 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02895/1.511, allocations: 17.55 MB / 1.274 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00451/1.515, allocations: 77.19 kB / 1.274 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01276/1.528, allocations: 4.364 MB / 1.279 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01256/1.541, allocations: 3.206 MB / 1.282 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007822/1.548, allocations: 2.255 MB / 1.284 GB, free: 1.922 MB / 0.9981 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.3240000000000001}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.01676/1.565, allocations: 9.532 MB / 1.293 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004496/1.57, allocations: 1.608 MB / 1.295 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008269/1.578, allocations: 2.318 MB / 1.297 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005009/1.583, allocations: 1.594 MB / 1.299 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009984/1.584, allocations: 81.28 kB / 1.299 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01028/1.594, allocations: 3.952 MB / 1.303 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001757/1.596, allocations: 0.7553 MB / 1.303 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003941/1.6, allocations: 1.254 MB / 1.305 GB, free: 17.52 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.007586/1.608, allocations: 3.585 MB / 1.308 GB, free: 17.24 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/1.608, allocations: 4.438 kB / 1.308 GB, free: 17.24 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.264e-06/1.608, allocations: 0 / 1.308 GB, free: 17.24 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001808/1.608, allocations: 4 kB / 1.308 GB, free: 17.24 MB / 1.014 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.007888/1.616, allocations: 2.766 MB / 1.311 GB, free: 15.69 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/1.616, allocations: 11.98 kB / 1.311 GB, free: 15.69 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006259/1.622, allocations: 0.9273 MB / 1.312 GB, free: 15.5 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006824/1.629, allocations: 2.678 MB / 1.314 GB, free: 14.92 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005149/1.629, allocations: 180.4 kB / 1.315 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005876/1.63, allocations: 148.3 kB / 1.315 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005083/1.635, allocations: 1.701 MB / 1.316 GB, free: 14.68 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-05/1.635, allocations: 8.5 kB / 1.316 GB, free: 14.68 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002573/1.636, allocations: 57.31 kB / 1.316 GB, free: 14.68 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-05/1.636, allocations: 48.28 kB / 1.316 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004333/1.64, allocations: 1.527 MB / 1.318 GB, free: 14.63 MB / 1.014 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.01591/1.656, allocations: 7.973 MB / 1.326 GB, free: 10.6 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00329/1.659, allocations: 1.65 MB / 1.327 GB, free: 9.883 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/1.661, allocations: 0.5445 MB / 1.328 GB, free: 9.863 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001514/1.662, allocations: 0.8079 MB / 1.329 GB, free: 9.105 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001397/1.663, allocations: 0.5779 MB / 1.329 GB, free: 9.047 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001373/1.665, allocations: 132.5 kB / 1.329 GB, free: 8.996 MB / 1.014 GB Notification: Performance of pre-optimization done (n=84): time 6.532e-06/1.665, allocations: 0 / 1.329 GB, free: 8.996 MB / 1.014 GB Notification: Performance of matching and sorting (n=84): time 0.004675/1.67, allocations: 1.696 MB / 1.331 GB, free: 8.715 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/1.67, allocations: 69.7 kB / 1.331 GB, free: 8.648 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/1.674, allocations: 2.141 MB / 1.333 GB, free: 8.395 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000162/1.674, allocations: 47.36 kB / 1.333 GB, free: 8.363 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.00117/1.676, allocations: 1.058 MB / 1.334 GB, free: 8.02 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003567/1.676, allocations: 297.9 kB / 1.335 GB, free: 7.836 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002713/1.676, allocations: 161.7 kB / 1.335 GB, free: 7.816 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001229/1.676, allocations: 307.2 kB / 1.335 GB, free: 7.52 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/1.678, allocations: 0.6371 MB / 1.336 GB, free: 7.508 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/1.68, allocations: 1.038 MB / 1.337 GB, free: 7.074 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/1.682, allocations: 1.605 MB / 1.338 GB, free: 6.66 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/1.682, allocations: 2.906 kB / 1.338 GB, free: 6.66 MB / 1.014 GB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004165/1.687, allocations: 1.962 MB / 1.34 GB, free: 6.422 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004065/1.687, allocations: 412.6 kB / 1.34 GB, free: 5.941 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/1.687, allocations: 13.14 kB / 1.34 GB, free: 5.938 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.09e-05/1.687, allocations: 16.88 kB / 1.341 GB, free: 5.938 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/1.688, allocations: 338.1 kB / 1.341 GB, free: 5.887 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.75e-05/1.689, allocations: 23.78 kB / 1.341 GB, free: 5.883 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002418/1.691, allocations: 196 kB / 1.341 GB, free: 5.82 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/1.691, allocations: 61.89 kB / 1.341 GB, free: 5.816 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/1.691, allocations: 3.375 kB / 1.341 GB, free: 5.816 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003526/1.695, allocations: 1.749 MB / 1.343 GB, free: 5.539 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/1.695, allocations: 8.719 kB / 1.343 GB, free: 5.539 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/1.695, allocations: 14.56 kB / 1.343 GB, free: 5.539 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.696, allocations: 341.9 kB / 1.343 GB, free: 5.488 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.104e-05/1.696, allocations: 22.41 kB / 1.343 GB, free: 5.488 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/1.698, allocations: 203.1 kB / 1.343 GB, free: 5.414 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/1.698, allocations: 61.81 kB / 1.343 GB, free: 5.41 MB / 1.014 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 (167): * Single equations (assignments): 164 * 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.001482/1.7, allocations: 0.6476 MB / 1.344 GB, free: 5.164 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/1.701, allocations: 220.9 kB / 1.344 GB, free: 5.043 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00339/1.704, allocations: 1.234 MB / 1.345 GB, free: 4.73 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/1.704, allocations: 7.969 kB / 1.345 GB, free: 4.73 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/1.704, allocations: 4.938 kB / 1.345 GB, free: 4.727 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002467/1.706, allocations: 1.285 MB / 1.347 GB, free: 4.121 MB / 1.014 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.007792/1.714, allocations: 3.179 MB / 1.35 GB, free: 2.934 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/1.714, allocations: 3.375 kB / 1.35 GB, free: 2.934 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009728/1.715, allocations: 199.7 kB / 1.35 GB, free: 2.898 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002539/1.716, allocations: 48.56 kB / 1.35 GB, free: 2.879 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.472e-05/1.716, allocations: 29.02 kB / 1.35 GB, free: 2.871 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/1.717, allocations: 1.427 MB / 1.352 GB, free: 1.562 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.717, allocations: 2.297 kB / 1.352 GB, free: 1.562 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/1.722, allocations: 1.861 MB / 1.353 GB, free: 1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/1.723, allocations: 389 kB / 1.354 GB, free: 0.7539 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005765/1.723, allocations: 24.78 kB / 1.354 GB, free: 0.75 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/1.725, allocations: 160.5 kB / 1.354 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/1.726, allocations: 63 kB / 1.354 GB, free: 0.6641 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/1.726, allocations: 32.08 kB / 1.354 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003042/1.729, allocations: 1.425 MB / 1.355 GB, free: 292 kB / 1.014 GB Notification: Performance of sort global known variables: time 3.41e-07/1.729, allocations: 0 / 1.355 GB, free: 292 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.004595/1.733, allocations: 1.122 MB / 1.356 GB, free: 132 kB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (84): * Single equations (assignments): 81 * 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.002335/1.736, allocations: 0.7413 MB / 1.357 GB, free: 15.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005154/1.741, allocations: 2.387 MB / 1.36 GB, free: 15.39 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.741, allocations: 128 / 1.36 GB, free: 15.39 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001488/1.742, allocations: 0.6427 MB / 1.36 GB, free: 15.19 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00605/1.748, allocations: 0.964 MB / 1.361 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/1.76, allocations: 5.301 MB / 1.366 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/1.762, allocations: 1.661 MB / 1.368 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009084/1.763, allocations: 175.4 kB / 1.368 GB, free: 10.76 MB / 1.029 GB Notification: Performance of SimCode: time 1.392e-06/1.763, allocations: 0 / 1.368 GB, free: 10.76 MB / 1.029 GB Notification: Performance of Templates: time 0.07227/1.835, allocations: 40.46 MB / 1.408 GB, free: 4.652 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches