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.001214/0.001214, allocations: 100.9 kB / 15.05 MB, free: 1.105 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.001502/0.001502, allocations: 177.3 kB / 15.94 MB, free: 228 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.407/1.407, allocations: 223.2 MB / 239.9 MB, free: 5.348 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.368/2.368, allocations: 390.2 MB / 0.6653 GB, free: 2.93 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003556, allocations: 12 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7557/0.756, allocations: 142.3 MB / 0.9535 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.04629/0.8024, allocations: 44.79 MB / 0.9972 GB, free: 3.441 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02356/0.826, allocations: 13.26 MB / 1.01 GB, free: 6.156 MB / 0.7638 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003923/0.83, allocations: 71.5 kB / 1.01 GB, free: 6.086 MB / 0.7638 GB Notification: Performance of NFTyping.typeComponents: time 0.004091/0.8341, allocations: 0.9184 MB / 1.011 GB, free: 5.168 MB / 0.7638 GB Notification: Performance of NFTyping.typeBindings: time 0.009241/0.8433, allocations: 2.374 MB / 1.013 GB, free: 2.793 MB / 0.7638 GB Notification: Performance of NFTyping.typeClassSections: time 0.006878/0.8502, allocations: 2.082 MB / 1.016 GB, free: 0.7344 MB / 0.7638 GB Notification: Performance of NFFlatten.flatten: time 0.006299/0.8565, allocations: 2.745 MB / 1.018 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.8589, allocations: 1.238 MB / 1.019 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003231/0.8621, allocations: 1.362 MB / 1.021 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002115/0.8643, allocations: 0.9138 MB / 1.022 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0003118/0.8646, allocations: 68 kB / 1.022 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00353/0.8681, allocations: 1.272 MB / 1.023 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0006145/0.8688, allocations: 394.5 kB / 1.023 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0008054/0.8696, allocations: 400.6 kB / 1.024 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004178/0.8738, allocations: 2.35 MB / 1.026 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.8738, allocations: 0 / 1.026 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.156e-06/0.8738, allocations: 0 / 1.026 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.309e-05/0.8739, allocations: 0 / 1.026 GB, free: 5.953 MB / 0.7794 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.00479/0.8787, allocations: 2.187 MB / 1.028 GB, free: 3.699 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.8787, allocations: 8.031 kB / 1.028 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002949/0.8817, allocations: 0.5634 MB / 1.029 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004021/0.8857, allocations: 1.598 MB / 1.03 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003928/0.8862, allocations: 158.4 kB / 1.03 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002316/0.8864, allocations: 124 kB / 1.031 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.8894, allocations: 1.385 MB / 1.032 GB, free: 15.72 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.8895, allocations: 0 / 1.032 GB, free: 15.72 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.8896, allocations: 48 kB / 1.032 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-05/0.8897, allocations: 42.02 kB / 1.032 GB, free: 15.63 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.8929, allocations: 1.23 MB / 1.033 GB, free: 14.39 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.01003/0.9029, allocations: 7.234 MB / 1.04 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002792/0.9058, allocations: 1.45 MB / 1.042 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005408/0.9112, allocations: 3.17 MB / 1.045 GB, free: 1.52 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.9124, allocations: 490.9 kB / 1.045 GB, free: 1.031 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000539/0.913, allocations: 95.19 kB / 1.045 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of pre-optimization done (n=62): time 2.866e-06/0.913, allocations: 0 / 1.045 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of matching and sorting (n=62): time 0.003711/0.9167, allocations: 1.374 MB / 1.047 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.9168, allocations: 59.97 kB / 1.047 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.919, allocations: 1.58 MB / 1.048 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.9191, allocations: 41.7 kB / 1.048 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007983/0.9199, allocations: 0.8802 MB / 1.049 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.9202, allocations: 220.9 kB / 1.049 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.9202, allocations: 20 kB / 1.049 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.9204, allocations: 345.9 kB / 1.05 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.9215, allocations: 401.8 kB / 1.05 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.9229, allocations: 0.7866 MB / 1.051 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.9241, allocations: 0.4967 MB / 1.051 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.9242, allocations: 4 kB / 1.051 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003182/0.9274, allocations: 1.356 MB / 1.053 GB, free: 9.129 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.001785/0.9292, allocations: 4.363 MB / 1.057 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.9292, allocations: 15.98 kB / 1.057 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.71e-05/0.9292, allocations: 16 kB / 1.057 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.9304, allocations: 287.5 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.583e-05/0.9305, allocations: 23.92 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.9322, allocations: 152.4 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.9324, allocations: 51.98 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.9324, allocations: 5.875 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003063/0.9355, allocations: 1.184 MB / 1.059 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.9355, allocations: 12 kB / 1.059 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.9356, allocations: 16.59 kB / 1.059 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.9368, allocations: 287.6 kB / 1.059 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.629e-05/0.9369, allocations: 31.8 kB / 1.059 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.9385, allocations: 136.5 kB / 1.059 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.9386, allocations: 55.97 kB / 1.059 GB, free: 2.133 MB / 0.8106 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 (121): * Single equations (assignments): 119 * 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.0009693/0.9396, allocations: 484.6 kB / 1.06 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/0.9399, allocations: 165.9 kB / 1.06 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003122/0.943, allocations: 1.217 MB / 1.061 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.9431, allocations: 8 kB / 1.061 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.9431, allocations: 0 / 1.061 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002296/0.9454, allocations: 1.068 MB / 1.062 GB, free: 15.13 MB / 0.8263 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.005236/0.9506, allocations: 2.576 MB / 1.064 GB, free: 12.47 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.9507, allocations: 3.938 kB / 1.064 GB, free: 12.47 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009691/0.9516, allocations: 163.9 kB / 1.065 GB, free: 12.31 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002447/0.9519, allocations: 40.83 kB / 1.065 GB, free: 12.27 MB / 0.8263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.827e-05/0.952, allocations: 19.98 kB / 1.065 GB, free: 12.25 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.9534, allocations: 1.382 MB / 1.066 GB, free: 10.72 MB / 0.8263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9534, allocations: 0 / 1.066 GB, free: 10.72 MB / 0.8263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.9576, allocations: 1.736 MB / 1.068 GB, free: 8.949 MB / 0.8263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009112/0.9585, allocations: 362.7 kB / 1.068 GB, free: 8.574 MB / 0.8263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004324/0.9589, allocations: 12 kB / 1.068 GB, free: 8.562 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.9603, allocations: 139.7 kB / 1.068 GB, free: 8.426 MB / 0.8263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.9605, allocations: 60.41 kB / 1.068 GB, free: 8.367 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/0.9606, allocations: 35.97 kB / 1.068 GB, free: 8.332 MB / 0.8263 GB Notification: Performance of sorting global known variables: time 0.00228/0.9629, allocations: 1.117 MB / 1.069 GB, free: 7.191 MB / 0.8263 GB Notification: Performance of sort global known variables: time 4.01e-07/0.9629, allocations: 0 / 1.069 GB, free: 7.191 MB / 0.8263 GB Notification: Performance of remove unused functions: time 0.003927/0.9668, allocations: 0.9045 MB / 1.07 GB, free: 6.285 MB / 0.8263 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.001907/0.9687, allocations: 0.7289 MB / 1.071 GB, free: 5.691 MB / 0.8263 GB Notification: Performance of simCode: created initialization part: time 0.004201/0.973, allocations: 1.714 MB / 1.073 GB, free: 3.953 MB / 0.8263 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.973, allocations: 0 / 1.073 GB, free: 3.953 MB / 0.8263 GB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.9744, allocations: 0.6001 MB / 1.073 GB, free: 3.34 MB / 0.8263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003846/0.9783, allocations: 0.7282 MB / 1.074 GB, free: 2.613 MB / 0.8263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006925/0.9852, allocations: 3.759 MB / 1.078 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.9865, allocations: 1.399 MB / 1.079 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0021/0.9886, allocations: 434 kB / 1.079 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004721/0.9891, allocations: 143.4 kB / 1.08 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.9891, allocations: 4 kB / 1.08 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of Templates: time 0.05641/1.046, allocations: 30.55 MB / 1.109 GB, free: 14.66 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","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches