Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_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.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009657, allocations: 99.03 kB / 16.02 MB, free: 76 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.001229/0.001229, allocations: 181.6 kB / 16.92 MB, free: 6.891 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.871/2.871, allocations: 462.6 MB / 0.737 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006272/0.0006272, allocations: 13.8 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3878, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.05751/0.4454, allocations: 52.35 MB / 1.11 GB, free: 436 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02746/0.4729, allocations: 16.95 MB / 1.127 GB, free: 15.44 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003923/0.4768, allocations: 79.5 kB / 1.127 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.009755/0.4866, allocations: 4.123 MB / 1.131 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007821/0.4945, allocations: 2.216 MB / 1.133 GB, free: 9.012 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.006512/0.501, allocations: 2.047 MB / 1.135 GB, free: 6.977 MB / 0.8887 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.05423941276795777}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.01335/0.5144, allocations: 8.985 MB / 1.144 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00344/0.5178, allocations: 1.377 MB / 1.145 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004575/0.5224, allocations: 1.59 MB / 1.147 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002987/0.5255, allocations: 1.368 MB / 1.148 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0006546/0.5261, allocations: 68 kB / 1.148 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005099/0.5313, allocations: 1.922 MB / 1.15 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.5324, allocations: 0.5525 MB / 1.151 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.5349, allocations: 1.101 MB / 1.152 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004851/0.5397, allocations: 2.884 MB / 1.155 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.5398, allocations: 0 / 1.155 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.344e-06/0.5398, allocations: 0 / 1.155 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001316/0.5399, allocations: 0 / 1.155 GB, free: 3.039 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.005883/0.5458, allocations: 2.524 MB / 1.157 GB, free: 448 kB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.5459, allocations: 16.03 kB / 1.157 GB, free: 432 kB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003147/0.549, allocations: 0.5863 MB / 1.158 GB, free: 15.83 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006068/0.5551, allocations: 2.664 MB / 1.16 GB, free: 13.09 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004738/0.5556, allocations: 174 kB / 1.16 GB, free: 12.92 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004076/0.5561, allocations: 116 kB / 1.161 GB, free: 12.81 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003526/0.5596, allocations: 1.39 MB / 1.162 GB, free: 11.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.5597, allocations: 0 / 1.162 GB, free: 11.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/0.5598, allocations: 48 kB / 1.162 GB, free: 11.28 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.636e-05/0.5599, allocations: 50.08 kB / 1.162 GB, free: 11.23 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/0.5632, allocations: 1.163 MB / 1.163 GB, free: 10.05 MB / 0.92 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.01261/0.5758, allocations: 7.386 MB / 1.17 GB, free: 2.121 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00283/0.5787, allocations: 1.413 MB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.5798, allocations: 448.4 kB / 1.172 GB, free: 160 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006513/0.5863, allocations: 3.195 MB / 1.175 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.5876, allocations: 450.9 kB / 1.176 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008223/0.5884, allocations: 95.19 kB / 1.176 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=60): time 4.278e-06/0.5884, allocations: 0 / 1.176 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=60): time 0.003795/0.5922, allocations: 1.326 MB / 1.177 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.5923, allocations: 59.97 kB / 1.177 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00393/0.5963, allocations: 2.09 MB / 1.179 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.5965, allocations: 45.7 kB / 1.179 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.5976, allocations: 1.022 MB / 1.18 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/0.5979, allocations: 220.9 kB / 1.18 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002625/0.5982, allocations: 145.6 kB / 1.181 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5983, allocations: 305.1 kB / 1.181 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.5997, allocations: 0.5732 MB / 1.181 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.6014, allocations: 1.02 MB / 1.182 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002764/0.6042, allocations: 1.496 MB / 1.184 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.6042, allocations: 4 kB / 1.184 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004079/0.6083, allocations: 1.811 MB / 1.186 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003704/0.6087, allocations: 480.5 kB / 1.186 GB, free: 0.8711 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/0.6087, allocations: 12 kB / 1.186 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.506e-05/0.6088, allocations: 20 kB / 1.186 GB, free: 0.8398 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.61, allocations: 327.5 kB / 1.186 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-05/0.61, allocations: 27.88 kB / 1.186 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.6118, allocations: 153.6 kB / 1.187 GB, free: 352 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.612, allocations: 59.98 kB / 1.187 GB, free: 292 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.612, allocations: 4 kB / 1.187 GB, free: 288 kB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003304/0.6153, allocations: 1.619 MB / 1.188 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.6153, allocations: 12 kB / 1.188 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.6154, allocations: 16.66 kB / 1.188 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.6165, allocations: 327.5 kB / 1.189 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.621e-05/0.6166, allocations: 31.86 kB / 1.189 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.6182, allocations: 145.5 kB / 1.189 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.6184, allocations: 59.98 kB / 1.189 GB, free: 14.07 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (155): * Single equations (assignments): 152 * 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.001117/0.6195, allocations: 0.5864 MB / 1.189 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004157/0.6199, allocations: 201.4 kB / 1.19 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002967/0.6229, allocations: 1.186 MB / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.6229, allocations: 8 kB / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.6229, allocations: 0 / 1.191 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002092/0.625, allocations: 1.006 MB / 1.192 GB, free: 11.01 MB / 0.9512 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.006004/0.6311, allocations: 2.652 MB / 1.194 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.6311, allocations: 4 kB / 1.194 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007714/0.6319, allocations: 155.9 kB / 1.195 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.6321, allocations: 28.84 kB / 1.195 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.6321, allocations: 23.98 kB / 1.195 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.6333, allocations: 1.311 MB / 1.196 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6333, allocations: 3.938 kB / 1.196 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.6371, allocations: 1.657 MB / 1.197 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009672/0.6381, allocations: 390.1 kB / 1.198 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/0.6384, allocations: 19.98 kB / 1.198 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.6395, allocations: 123.8 kB / 1.198 GB, free: 4.398 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6396, allocations: 56.48 kB / 1.198 GB, free: 4.344 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.6397, allocations: 27.97 kB / 1.198 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002204/0.6419, allocations: 1.45 MB / 1.199 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6419, allocations: 0 / 1.199 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003063/0.645, allocations: 1.037 MB / 1.2 GB, free: 1.816 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,coo.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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002065/0.6471, allocations: 0.8576 MB / 1.201 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004605/0.6517, allocations: 2.181 MB / 1.203 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6517, allocations: 0 / 1.203 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.653, allocations: 0.557 MB / 1.204 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/0.6577, allocations: 0.912 MB / 1.205 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007612/0.6653, allocations: 4.558 MB / 1.209 GB, free: 8.82 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.6665, allocations: 1.539 MB / 1.211 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007099/0.6672, allocations: 179.4 kB / 1.211 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of SimCode: time 1.042e-06/0.6673, allocations: 0 / 1.211 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of Templates: time 0.6575/1.325, allocations: 39.59 MB / 1.25 GB, free: 178 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches