Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 91.92 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.001964/0.001964, allocations: 181.4 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.632/1.632, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.462/2.462, allocations: 390.9 MB / 0.667 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004095/0.00041, allocations: 16 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7529/0.7534, allocations: 142.4 MB / 0.9557 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u): time 0.2896/1.043, allocations: 250.2 MB / 1.2 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01703/1.06, allocations: 9.622 MB / 1.209 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003249/1.063, allocations: 67.56 kB / 1.21 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002952/1.066, allocations: 0.816 MB / 1.21 GB, free: 9.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007797/1.074, allocations: 2.486 MB / 1.213 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.006008/1.08, allocations: 1.925 MB / 1.215 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.007537/1.088, allocations: 5.438 MB / 1.22 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002873/1.091, allocations: 1.279 MB / 1.221 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004705/1.095, allocations: 1.676 MB / 1.223 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003346/1.099, allocations: 1.224 MB / 1.224 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0006205/1.099, allocations: 60 kB / 1.224 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007137/1.107, allocations: 3.491 MB / 1.227 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009807/1.108, allocations: 482.1 kB / 1.228 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002082/1.11, allocations: 0.9146 MB / 1.229 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004763/1.115, allocations: 2.673 MB / 1.231 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/1.115, allocations: 0 / 1.231 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.304e-06/1.115, allocations: 0 / 1.231 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001134/1.115, allocations: 0 / 1.231 GB, free: 4.031 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.00528/1.12, allocations: 2.121 MB / 1.234 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.12, allocations: 12.03 kB / 1.234 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004307/1.124, allocations: 0.6493 MB / 1.234 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003463/1.128, allocations: 1.371 MB / 1.236 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004333/1.128, allocations: 154.2 kB / 1.236 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004008/1.129, allocations: 131.8 kB / 1.236 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/1.132, allocations: 1.435 MB / 1.237 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.873e-05/1.132, allocations: 4 kB / 1.237 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/1.132, allocations: 48 kB / 1.237 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.678e-05/1.133, allocations: 42.22 kB / 1.237 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/1.136, allocations: 1.227 MB / 1.238 GB, free: 12.63 MB / 0.9981 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.009843/1.145, allocations: 5.712 MB / 1.244 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/1.148, allocations: 1.062 MB / 1.245 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/1.149, allocations: 0.5447 MB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007193/1.15, allocations: 323.9 kB / 1.246 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/1.151, allocations: 0.5851 MB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=85): time 3.848e-06/1.151, allocations: 3.938 kB / 1.247 GB, free: 3.961 MB / 0.9981 GB Notification: Performance of matching and sorting (n=92): time 0.009422/1.16, allocations: 3.589 MB / 1.25 GB, free: 272 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/1.161, allocations: 94.05 kB / 1.25 GB, free: 160 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6055/1.766, allocations: 1.341 MB / 1.251 GB, free: 285.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002587/1.766, allocations: 44.12 kB / 1.251 GB, free: 285.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006992/1.767, allocations: 0.7205 MB / 1.252 GB, free: 285.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004003/1.767, allocations: 320 kB / 1.252 GB, free: 285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/1.768, allocations: 91.75 kB / 1.253 GB, free: 285 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.721e-05/1.768, allocations: 346.7 kB / 1.253 GB, free: 284.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/1.769, allocations: 456.8 kB / 1.253 GB, free: 284.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/1.77, allocations: 0.6727 MB / 1.254 GB, free: 284.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01525/1.785, allocations: 3.624 MB / 1.258 GB, free: 283.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/1.786, allocations: 0.8438 kB / 1.258 GB, free: 283.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003865/1.789, allocations: 1.55 MB / 1.259 GB, free: 282.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/1.79, allocations: 246.1 kB / 1.259 GB, free: 282.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/1.79, allocations: 8.188 kB / 1.259 GB, free: 282.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007807/1.79, allocations: 223.2 kB / 1.259 GB, free: 282.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009802/1.791, allocations: 207.5 kB / 1.26 GB, free: 282.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/1.795, allocations: 4.288 MB / 1.264 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/1.797, allocations: 146 kB / 1.264 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/1.797, allocations: 39.84 kB / 1.264 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/1.797, allocations: 3.406 kB / 1.264 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003081/1.801, allocations: 1.368 MB / 1.265 GB, free: 277.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.801, allocations: 8.203 kB / 1.265 GB, free: 277.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005061/1.801, allocations: 201.2 kB / 1.266 GB, free: 277.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008851/1.802, allocations: 204 kB / 1.266 GB, free: 277.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/1.806, allocations: 5.303 MB / 1.271 GB, free: 272.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/1.808, allocations: 145.3 kB / 1.271 GB, free: 272.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.862e-05/1.808, allocations: 42.02 kB / 1.271 GB, free: 272.8 MB / 0.9981 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 (TSet.nextEventScaled,TSet.nextEvent,$PRE.TSet.nextEvent,TSet.last,TSet.b,TSet.a,$whenCondition1,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 99 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,8), (1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0009825/1.809, allocations: 0.5045 MB / 1.272 GB, free: 272.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/1.809, allocations: 162.2 kB / 1.272 GB, free: 272.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/1.812, allocations: 1.319 MB / 1.273 GB, free: 271.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/1.812, allocations: 12.72 kB / 1.273 GB, free: 271.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/1.812, allocations: 0 / 1.273 GB, free: 271.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002232/1.814, allocations: 1.168 MB / 1.274 GB, free: 271 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006071/1.82, allocations: 3.077 MB / 1.277 GB, free: 268.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/1.821, allocations: 3.406 kB / 1.277 GB, free: 268.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009739/1.822, allocations: 197.6 kB / 1.277 GB, free: 268.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001556/1.822, allocations: 50.38 kB / 1.277 GB, free: 268.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-05/1.822, allocations: 32.48 kB / 1.278 GB, free: 268.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003138/1.822, allocations: 0.5913 MB / 1.278 GB, free: 268.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/1.822, allocations: 5.531 kB / 1.278 GB, free: 268.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/1.826, allocations: 2.014 MB / 1.28 GB, free: 267.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007873/1.827, allocations: 340.3 kB / 1.28 GB, free: 266.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/1.827, allocations: 30.89 kB / 1.28 GB, free: 266.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/1.828, allocations: 120.5 kB / 1.281 GB, free: 266.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/1.828, allocations: 61.97 kB / 1.281 GB, free: 266.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.219e-05/1.828, allocations: 33.55 kB / 1.281 GB, free: 266.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00148/1.83, allocations: 0.921 MB / 1.282 GB, free: 266.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/1.83, allocations: 0 / 1.282 GB, free: 266.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002566/1.832, allocations: 0.6973 MB / 1.282 GB, free: 266.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.Xi[1],heaDyn.vol.dynBal.medium.T,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007824/1.833, allocations: 311.7 kB / 1.282 GB, free: 266 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004479/1.838, allocations: 2.566 MB / 1.285 GB, free: 264.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.838, allocations: 3.969 kB / 1.285 GB, free: 264.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001048/1.839, allocations: 0.6153 MB / 1.286 GB, free: 264 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004763/1.844, allocations: 0.8229 MB / 1.286 GB, free: 263.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006257/1.85, allocations: 3.999 MB / 1.29 GB, free: 260.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007093/1.851, allocations: 1.35 MB / 1.292 GB, free: 259.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004204/1.851, allocations: 117.7 kB / 1.292 GB, free: 259.9 MB / 0.9981 GB Notification: Performance of SimCode: time 9.32e-07/1.851, allocations: 0 / 1.292 GB, free: 259.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.04327/1.894, allocations: 39.99 MB / 1.331 GB, free: 221.4 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches