Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001085/0.001085, 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.001254/0.001254, allocations: 179.3 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.443/1.443, 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.786/2.786, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003899, allocations: 9.281 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3264, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u): time 1.012/1.339, allocations: 250.2 MB / 1.304 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01724/1.356, allocations: 9.616 MB / 1.313 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004165/1.36, allocations: 66.62 kB / 1.313 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003244/1.364, allocations: 0.8179 MB / 1.314 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008934/1.373, allocations: 2.482 MB / 1.316 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006666/1.379, allocations: 1.93 MB / 1.318 GB, free: 1.883 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009027/1.388, allocations: 5.438 MB / 1.324 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003082/1.391, allocations: 1.277 MB / 1.325 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005109/1.397, allocations: 1.679 MB / 1.326 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003713/1.4, allocations: 1.223 MB / 1.328 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000516/1.401, allocations: 62.69 kB / 1.328 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009266/1.41, allocations: 3.497 MB / 1.331 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001328/1.411, allocations: 483.7 kB / 1.332 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002506/1.414, allocations: 0.9096 MB / 1.332 GB, free: 17.55 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005287/1.419, allocations: 2.668 MB / 1.335 GB, free: 17.35 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/1.419, allocations: 0 / 1.335 GB, free: 17.35 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.886e-06/1.419, allocations: 0 / 1.335 GB, free: 17.35 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.4e-05/1.419, allocations: 1.812 kB / 1.335 GB, free: 17.35 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.00467/1.424, allocations: 2.128 MB / 1.337 GB, free: 16.11 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.424, allocations: 14.67 kB / 1.337 GB, free: 16.11 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004082/1.428, allocations: 0.6535 MB / 1.338 GB, free: 15.98 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/1.432, allocations: 1.367 MB / 1.339 GB, free: 15.54 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000392/1.432, allocations: 158.3 kB / 1.339 GB, free: 15.52 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002968/1.433, allocations: 128.2 kB / 1.339 GB, free: 15.52 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/1.435, allocations: 1.437 MB / 1.341 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/1.435, allocations: 4 kB / 1.341 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/1.435, allocations: 52.03 kB / 1.341 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-05/1.436, allocations: 46.92 kB / 1.341 GB, free: 15.31 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002688/1.438, allocations: 1.218 MB / 1.342 GB, free: 15.29 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.009073/1.447, allocations: 5.706 MB / 1.348 GB, free: 12.85 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002129/1.449, allocations: 1.058 MB / 1.349 GB, free: 12.61 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009967/1.45, allocations: 0.5444 MB / 1.349 GB, free: 12.6 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006346/1.451, allocations: 329.8 kB / 1.35 GB, free: 12.31 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/1.452, allocations: 0.5769 MB / 1.35 GB, free: 12.21 MB / 1.014 GB Notification: Performance of pre-optimization done (n=85): time 3.617e-06/1.452, allocations: 0 / 1.35 GB, free: 12.21 MB / 1.014 GB Notification: Performance of matching and sorting (n=92): time 0.009084/1.461, allocations: 3.594 MB / 1.354 GB, free: 11.23 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/1.462, allocations: 94.83 kB / 1.354 GB, free: 11.13 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/1.463, allocations: 1.341 MB / 1.355 GB, free: 10.96 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001496/1.464, allocations: 49.09 kB / 1.355 GB, free: 10.93 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006378/1.464, allocations: 0.7209 MB / 1.356 GB, free: 10.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003451/1.465, allocations: 327.6 kB / 1.356 GB, free: 10.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/1.465, allocations: 86.27 kB / 1.356 GB, free: 10.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001527/1.465, allocations: 344.7 kB / 1.357 GB, free: 10.18 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009982/1.466, allocations: 463.8 kB / 1.357 GB, free: 10.16 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/1.467, allocations: 0.664 MB / 1.358 GB, free: 9.957 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/1.481, allocations: 3.633 MB / 1.361 GB, free: 9.113 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/1.481, allocations: 3.938 kB / 1.361 GB, free: 9.109 MB / 1.014 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003544/1.485, allocations: 1.538 MB / 1.363 GB, free: 8.73 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002025/1.485, allocations: 245.3 kB / 1.363 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/1.485, allocations: 2.906 kB / 1.363 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007335/1.486, allocations: 238.6 kB / 1.363 GB, free: 8.383 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/1.487, allocations: 206.2 kB / 1.363 GB, free: 8.348 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004142/1.491, allocations: 4.284 MB / 1.367 GB, free: 5.012 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/1.493, allocations: 140.7 kB / 1.368 GB, free: 4.965 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/1.493, allocations: 40.95 kB / 1.368 GB, free: 4.961 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/1.493, allocations: 11.75 kB / 1.368 GB, free: 4.957 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002776/1.496, allocations: 1.366 MB / 1.369 GB, free: 4.703 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.496, allocations: 2.938 kB / 1.369 GB, free: 4.703 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004967/1.496, allocations: 210.8 kB / 1.369 GB, free: 4.637 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000877/1.497, allocations: 203.3 kB / 1.369 GB, free: 4.605 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004762/1.502, allocations: 5.306 MB / 1.375 GB, free: 324 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/1.504, allocations: 139.3 kB / 1.375 GB, free: 276 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.455e-05/1.504, allocations: 43.11 kB / 1.375 GB, free: 264 kB / 1.014 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.001021/1.505, allocations: 0.497 MB / 1.375 GB, free: 15.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/1.505, allocations: 167.6 kB / 1.375 GB, free: 15.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002895/1.508, allocations: 1.313 MB / 1.377 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/1.508, allocations: 9.562 kB / 1.377 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/1.508, allocations: 0 / 1.377 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002188/1.51, allocations: 1.176 MB / 1.378 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005555/1.516, allocations: 3.084 MB / 1.381 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.516, allocations: 2.344 kB / 1.381 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009644/1.517, allocations: 190.6 kB / 1.381 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/1.517, allocations: 51.12 kB / 1.381 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.37e-05/1.517, allocations: 30.11 kB / 1.381 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004217/1.517, allocations: 0.5926 MB / 1.382 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/1.517, allocations: 4.656 kB / 1.382 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003871/1.521, allocations: 2.017 MB / 1.384 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008438/1.522, allocations: 351.4 kB / 1.384 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003806/1.523, allocations: 24.75 kB / 1.384 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/1.524, allocations: 121 kB / 1.384 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/1.524, allocations: 63.39 kB / 1.384 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.15e-05/1.524, allocations: 44.53 kB / 1.384 GB, free: 10.14 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001742/1.526, allocations: 0.9119 MB / 1.385 GB, free: 9.648 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.71e-07/1.526, allocations: 0 / 1.385 GB, free: 9.648 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003087/1.529, allocations: 0.6951 MB / 1.386 GB, free: 9.582 MB / 1.029 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.0009136/1.53, allocations: 303.2 kB / 1.386 GB, free: 9.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005131/1.535, allocations: 2.559 MB / 1.389 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.535, allocations: 4.531 kB / 1.389 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/1.537, allocations: 0.6274 MB / 1.389 GB, free: 7.547 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006918/1.543, allocations: 0.8252 MB / 1.39 GB, free: 7.141 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008996/1.553, allocations: 3.998 MB / 1.394 GB, free: 4.441 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/1.554, allocations: 1.347 MB / 1.395 GB, free: 3.441 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006364/1.555, allocations: 116.1 kB / 1.395 GB, free: 3.426 MB / 1.029 GB Notification: Performance of SimCode: time 1.122e-06/1.555, allocations: 0 / 1.395 GB, free: 3.426 MB / 1.029 GB Notification: Performance of Templates: time 0.05957/1.614, allocations: 39.99 MB / 1.434 GB, free: 12.75 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches