Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001006/0.001006, allocations: 86.88 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.3 MB / 240 MB, free: 5.426 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.36/2.36, allocations: 390.9 MB / 0.666 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003949, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6807/0.6811, allocations: 142.4 MB / 0.9544 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.04688/0.728, allocations: 49.1 MB / 1.002 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0205/0.7486, allocations: 14.24 MB / 1.016 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002759/0.7514, allocations: 75.55 kB / 1.016 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.7538, allocations: 0.7553 MB / 1.017 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005013/0.7589, allocations: 1.888 MB / 1.019 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004436/0.7633, allocations: 1.74 MB / 1.021 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006106/0.7694, allocations: 5.137 MB / 1.026 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/0.7714, allocations: 1.226 MB / 1.027 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003128/0.7745, allocations: 1.532 MB / 1.028 GB, free: 3.652 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.7765, allocations: 1.268 MB / 1.03 GB, free: 2.379 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002281/0.7767, allocations: 68 kB / 1.03 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002915/0.7797, allocations: 1.4 MB / 1.031 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0004661/0.7802, allocations: 406.3 kB / 1.031 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005586/0.7807, allocations: 404.6 kB / 1.032 GB, free: 112 kB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002768/0.7835, allocations: 2.412 MB / 1.034 GB, free: 13.69 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.7835, allocations: 0 / 1.034 GB, free: 13.69 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7835, allocations: 0 / 1.034 GB, free: 13.69 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.101e-05/0.7836, allocations: 0 / 1.034 GB, free: 13.69 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003726/0.7873, allocations: 2.198 MB / 1.036 GB, free: 11.43 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.7873, allocations: 11.97 kB / 1.036 GB, free: 11.41 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002523/0.7899, allocations: 0.5634 MB / 1.037 GB, free: 10.85 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.7934, allocations: 1.649 MB / 1.038 GB, free: 9.148 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/0.7938, allocations: 158.4 kB / 1.039 GB, free: 8.992 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/0.794, allocations: 120 kB / 1.039 GB, free: 8.875 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.7966, allocations: 1.404 MB / 1.04 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.831e-05/0.7967, allocations: 4 kB / 1.04 GB, free: 7.375 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.7968, allocations: 48 kB / 1.04 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-05/0.7969, allocations: 46.08 kB / 1.04 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/0.7998, allocations: 1.241 MB / 1.041 GB, free: 6.031 MB / 0.795 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.009008/0.8088, allocations: 7.073 MB / 1.048 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.8114, allocations: 1.466 MB / 1.05 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.8125, allocations: 467.3 kB / 1.05 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004753/0.8172, allocations: 3.193 MB / 1.053 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.8184, allocations: 0.4988 MB / 1.054 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003916/0.8188, allocations: 83.34 kB / 1.054 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.334e-06/0.8188, allocations: 0 / 1.054 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.003399/0.8222, allocations: 1.385 MB / 1.055 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.8223, allocations: 63.97 kB / 1.055 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/0.8243, allocations: 1.545 MB / 1.057 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.615e-05/0.8244, allocations: 41.7 kB / 1.057 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007564/0.8251, allocations: 0.8724 MB / 1.058 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.8253, allocations: 216.9 kB / 1.058 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.8254, allocations: 23.98 kB / 1.058 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.8255, allocations: 349.9 kB / 1.058 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.8266, allocations: 409.7 kB / 1.059 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.8279, allocations: 0.7944 MB / 1.059 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.829, allocations: 0.5123 MB / 1.06 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.829, allocations: 4 kB / 1.06 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002849/0.8319, allocations: 1.352 MB / 1.061 GB, free: 456 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002945/0.8322, allocations: 444.9 kB / 1.062 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.8322, allocations: 11.94 kB / 1.062 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.8323, allocations: 20 kB / 1.062 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.8334, allocations: 279.6 kB / 1.062 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.626e-05/0.8334, allocations: 27.88 kB / 1.062 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.8347, allocations: 152.5 kB / 1.062 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.814e-05/0.8348, allocations: 55.92 kB / 1.062 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.338e-06/0.8348, allocations: 4 kB / 1.062 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.8374, allocations: 1.193 MB / 1.063 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.8374, allocations: 16.03 kB / 1.063 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.8374, allocations: 16 kB / 1.063 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.8385, allocations: 279.6 kB / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.8386, allocations: 23.92 kB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.8401, allocations: 140.4 kB / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.8402, allocations: 55.98 kB / 1.064 GB, free: 13.59 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001411/0.8417, allocations: 483 kB / 1.064 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004293/0.8421, allocations: 165.9 kB / 1.064 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003192/0.8453, allocations: 1.237 MB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.159e-05/0.8453, allocations: 7.938 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.8453, allocations: 4 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002141/0.8475, allocations: 1.068 MB / 1.067 GB, free: 10.57 MB / 0.8262 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.005065/0.8526, allocations: 2.562 MB / 1.069 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.8526, allocations: 4.062 kB / 1.069 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008062/0.8534, allocations: 163.8 kB / 1.069 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.8536, allocations: 32.83 kB / 1.069 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.8537, allocations: 23.98 kB / 1.069 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.8549, allocations: 1.371 MB / 1.071 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8549, allocations: 0 / 1.071 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/0.8585, allocations: 1.717 MB / 1.072 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.8591, allocations: 358.6 kB / 1.073 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.8594, allocations: 20 kB / 1.073 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.8604, allocations: 131.8 kB / 1.073 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.8605, allocations: 56.44 kB / 1.073 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-05/0.8606, allocations: 27.98 kB / 1.073 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001554/0.8622, allocations: 1.101 MB / 1.074 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8622, allocations: 0 / 1.074 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002504/0.8647, allocations: 0.8927 MB / 1.075 GB, free: 1.848 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.8663, allocations: 0.703 MB / 1.076 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003742/0.87, allocations: 1.723 MB / 1.077 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.87, allocations: 0 / 1.077 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.8713, allocations: 0.6035 MB / 1.078 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002962/0.8743, allocations: 0.7301 MB / 1.079 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005709/0.88, allocations: 3.77 MB / 1.082 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009234/0.881, allocations: 1.36 MB / 1.084 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001769/0.8827, allocations: 426 kB / 1.084 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.8831, allocations: 151.3 kB / 1.084 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of SimCode: time 6.71e-07/0.8831, allocations: 0 / 1.084 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of Templates: time 0.05318/0.9363, allocations: 30.18 MB / 1.114 GB, free: 10.64 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches