Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.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_10_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_10_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.00106/0.00106, allocations: 98.88 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.001547/0.001547, allocations: 185.2 kB / 16.92 MB, free: 6.684 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.625/2.625, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004215/0.0004217, allocations: 11.98 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7279/0.7284, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.05914/0.7876, allocations: 52.34 MB / 1.075 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02932/0.8169, allocations: 16.94 MB / 1.091 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004143/0.8211, allocations: 79.5 kB / 1.091 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.8314, allocations: 4.122 MB / 1.095 GB, free: 6.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007849/0.8393, allocations: 2.22 MB / 1.098 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006397/0.8457, allocations: 2.046 MB / 1.1 GB, free: 1.91 MB / 0.8419 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.01336/0.8591, allocations: 8.992 MB / 1.108 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003726/0.8628, allocations: 1.366 MB / 1.11 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005052/0.8679, allocations: 1.594 MB / 1.111 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.8712, allocations: 1.372 MB / 1.113 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0007566/0.872, allocations: 72 kB / 1.113 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005335/0.8773, allocations: 1.918 MB / 1.115 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.8786, allocations: 0.5486 MB / 1.115 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002618/0.8813, allocations: 1.109 MB / 1.116 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005204/0.8865, allocations: 2.88 MB / 1.119 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.8865, allocations: 0 / 1.119 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.685e-06/0.8865, allocations: 0 / 1.119 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001405/0.8867, allocations: 0 / 1.119 GB, free: 13.96 MB / 0.8731 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.00638/0.8931, allocations: 2.53 MB / 1.121 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.8931, allocations: 15.98 kB / 1.121 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/0.8962, allocations: 0.5824 MB / 1.122 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/0.9019, allocations: 2.668 MB / 1.125 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004753/0.9024, allocations: 162.1 kB / 1.125 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004141/0.9029, allocations: 124 kB / 1.125 GB, free: 7.734 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003569/0.9065, allocations: 1.386 MB / 1.126 GB, free: 6.254 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.9065, allocations: 4 kB / 1.126 GB, free: 6.25 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.9067, allocations: 48 kB / 1.126 GB, free: 6.203 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-05/0.9067, allocations: 46.02 kB / 1.126 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.9099, allocations: 1.171 MB / 1.128 GB, free: 4.977 MB / 0.8731 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.01225/0.9222, allocations: 7.367 MB / 1.135 GB, free: 13.06 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.925, allocations: 1.415 MB / 1.136 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.9262, allocations: 447.4 kB / 1.137 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006414/0.9326, allocations: 3.207 MB / 1.14 GB, free: 7.547 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.9338, allocations: 454.9 kB / 1.14 GB, free: 7.094 MB / 0.8887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008671/0.9347, allocations: 95.19 kB / 1.14 GB, free: 7 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 4.368e-06/0.9347, allocations: 0 / 1.14 GB, free: 7 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.0038/0.9385, allocations: 1.322 MB / 1.141 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.9386, allocations: 63.97 kB / 1.142 GB, free: 5.574 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004035/0.9426, allocations: 2.09 MB / 1.144 GB, free: 3.457 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.9428, allocations: 45.69 kB / 1.144 GB, free: 3.406 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.9438, allocations: 1.014 MB / 1.145 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/0.9441, allocations: 224.9 kB / 1.145 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.9443, allocations: 145.6 kB / 1.145 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.9444, allocations: 301.1 kB / 1.145 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.9457, allocations: 0.5654 MB / 1.146 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.9473, allocations: 1.024 MB / 1.147 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002688/0.95, allocations: 1.5 MB / 1.148 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.95, allocations: 4 kB / 1.148 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003885/0.9539, allocations: 1.823 MB / 1.15 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003872/0.9543, allocations: 471.9 kB / 1.151 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.9543, allocations: 12 kB / 1.151 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/0.9544, allocations: 16 kB / 1.151 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.9556, allocations: 323.5 kB / 1.151 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.835e-05/0.9556, allocations: 35.86 kB / 1.151 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.9573, allocations: 157.4 kB / 1.151 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.9575, allocations: 59.98 kB / 1.151 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.9575, allocations: 4 kB / 1.151 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00323/0.9608, allocations: 1.615 MB / 1.153 GB, free: 9.578 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-05/0.9608, allocations: 15.98 kB / 1.153 GB, free: 9.562 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.9608, allocations: 20.66 kB / 1.153 GB, free: 9.543 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.962, allocations: 323.6 kB / 1.153 GB, free: 9.227 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.302e-05/0.9621, allocations: 31.8 kB / 1.153 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.9638, allocations: 149.5 kB / 1.153 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.9639, allocations: 59.98 kB / 1.153 GB, free: 8.988 MB / 0.9044 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.001224/0.9652, allocations: 0.5861 MB / 1.154 GB, free: 8.395 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/0.9657, allocations: 201.4 kB / 1.154 GB, free: 8.195 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/0.9688, allocations: 1.178 MB / 1.155 GB, free: 7 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.9689, allocations: 11.98 kB / 1.155 GB, free: 6.988 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.9689, allocations: 4 kB / 1.155 GB, free: 6.984 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002134/0.971, allocations: 1.006 MB / 1.156 GB, free: 5.926 MB / 0.9044 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.006522/0.9776, allocations: 2.644 MB / 1.159 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.9776, allocations: 0 / 1.159 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007936/0.9784, allocations: 163.9 kB / 1.159 GB, free: 3.055 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.9786, allocations: 28.84 kB / 1.159 GB, free: 3.023 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.9787, allocations: 27.97 kB / 1.159 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.9799, allocations: 1.319 MB / 1.16 GB, free: 1.547 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.98, allocations: 0 / 1.16 GB, free: 1.547 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/0.9838, allocations: 1.653 MB / 1.162 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.9848, allocations: 406 kB / 1.162 GB, free: 15.44 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005244/0.9853, allocations: 12 kB / 1.162 GB, free: 15.43 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.9868, allocations: 127.9 kB / 1.162 GB, free: 15.3 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.9869, allocations: 44.5 kB / 1.162 GB, free: 15.26 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-05/0.987, allocations: 35.97 kB / 1.162 GB, free: 15.22 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003299/0.9903, allocations: 1.45 MB / 1.164 GB, free: 13.76 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9903, allocations: 0 / 1.164 GB, free: 13.76 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004671/0.995, allocations: 1.041 MB / 1.165 GB, free: 12.72 MB / 0.92 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.002608/0.9976, allocations: 0.8454 MB / 1.166 GB, free: 12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.005178/1.003, allocations: 2.184 MB / 1.168 GB, free: 9.805 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.003, allocations: 0 / 1.168 GB, free: 9.805 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001459/1.004, allocations: 0.5568 MB / 1.168 GB, free: 9.238 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005644/1.01, allocations: 0.904 MB / 1.169 GB, free: 8.348 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008848/1.019, allocations: 4.558 MB / 1.174 GB, free: 3.738 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001708/1.021, allocations: 1.539 MB / 1.175 GB, free: 2.168 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007904/1.021, allocations: 183.4 kB / 1.175 GB, free: 1.992 MB / 0.92 GB Notification: Performance of SimCode: time 1.112e-06/1.021, allocations: 0 / 1.175 GB, free: 1.992 MB / 0.92 GB Notification: Performance of Templates: time 0.06805/1.089, allocations: 39.6 MB / 1.214 GB, free: 10.64 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches