Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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_latest_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_latest_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.008104/0.008104, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001852/0.001852, allocations: 197.3 kB / 16.68 MB, free: 5.977 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.766/2.766, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.91 kB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3005, allocations: 159.9 MB / 1.226 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.6835/0.984, allocations: 53.76 MB / 1.278 GB, free: 15.03 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02785/1.012, allocations: 17 MB / 1.295 GB, free: 3.789 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003898/1.016, allocations: 89.78 kB / 1.295 GB, free: 3.758 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.005906/1.022, allocations: 1.918 MB / 1.297 GB, free: 2.879 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.007474/1.029, allocations: 2.506 MB / 1.299 GB, free: 1.43 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.006371/1.036, allocations: 2.357 MB / 1.301 GB, free: 224 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01202/1.048, allocations: 7.538 MB / 1.309 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003246/1.051, allocations: 1.665 MB / 1.31 GB, free: 12.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004913/1.056, allocations: 1.918 MB / 1.312 GB, free: 11.61 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/1.059, allocations: 1.426 MB / 1.314 GB, free: 10.94 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0006932/1.06, allocations: 177.9 kB / 1.314 GB, free: 10.94 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006094/1.066, allocations: 2.027 MB / 1.316 GB, free: 10.27 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.001596/1.067, allocations: 0.6614 MB / 1.317 GB, free: 9.941 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.003292/1.071, allocations: 1.221 MB / 1.318 GB, free: 9.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0117/1.082, allocations: 3.947 MB / 1.322 GB, free: 7.645 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/1.082, allocations: 0 / 1.322 GB, free: 7.645 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/1.082, allocations: 0 / 1.322 GB, free: 7.645 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.000128/1.083, allocations: 1.812 kB / 1.322 GB, free: 7.645 MB / 1.029 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.009188/1.092, allocations: 3.04 MB / 1.325 GB, free: 5.621 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/1.092, allocations: 12.55 kB / 1.325 GB, free: 5.617 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00332/1.095, allocations: 0.5636 MB / 1.325 GB, free: 5.449 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007037/1.102, allocations: 2.754 MB / 1.328 GB, free: 4.035 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/1.102, allocations: 96.14 kB / 1.328 GB, free: 3.988 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003837/1.103, allocations: 125.3 kB / 1.328 GB, free: 3.949 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003592/1.106, allocations: 1.359 MB / 1.329 GB, free: 3.285 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/1.106, allocations: 1.062 kB / 1.329 GB, free: 3.285 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/1.107, allocations: 48.16 kB / 1.329 GB, free: 3.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.357e-05/1.107, allocations: 41.81 kB / 1.329 GB, free: 3.246 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003529/1.11, allocations: 1.108 MB / 1.33 GB, free: 2.871 MB / 1.029 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.01227/1.122, allocations: 7.485 MB / 1.338 GB, free: 12.97 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/1.125, allocations: 1.337 MB / 1.339 GB, free: 11.96 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/1.126, allocations: 420.7 kB / 1.339 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006193/1.132, allocations: 3.166 MB / 1.343 GB, free: 8.824 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/1.133, allocations: 436.8 kB / 1.343 GB, free: 8.566 MB / 1.045 GB Notification: Performance of pre-optimization done (n=59): time 2.866e-06/1.133, allocations: 0 / 1.343 GB, free: 8.566 MB / 1.045 GB Notification: Performance of matching and sorting (n=59): time 0.003469/1.137, allocations: 1.25 MB / 1.344 GB, free: 7.891 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/1.137, allocations: 63 kB / 1.344 GB, free: 7.824 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/1.141, allocations: 2.121 MB / 1.346 GB, free: 6.676 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 9.409e-05/1.141, allocations: 42.92 kB / 1.346 GB, free: 6.633 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000991/1.142, allocations: 1.039 MB / 1.347 GB, free: 5.719 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/1.142, allocations: 231.1 kB / 1.348 GB, free: 5.52 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004915/1.143, allocations: 316.2 kB / 1.348 GB, free: 5.336 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 9.093e-05/1.143, allocations: 305.1 kB / 1.348 GB, free: 5.035 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/1.144, allocations: 0.5521 MB / 1.349 GB, free: 4.758 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001583/1.146, allocations: 0.984 MB / 1.35 GB, free: 3.93 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/1.148, allocations: 1.453 MB / 1.351 GB, free: 2.895 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/1.148, allocations: 4 kB / 1.351 GB, free: 2.895 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003773/1.152, allocations: 1.779 MB / 1.353 GB, free: 1.996 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/1.152, allocations: 36.73 kB / 1.353 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/1.152, allocations: 11.62 kB / 1.353 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.915e-05/1.152, allocations: 18.66 kB / 1.353 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.153, allocations: 316 kB / 1.353 GB, free: 1.883 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.688e-05/1.153, allocations: 26 kB / 1.353 GB, free: 1.875 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/1.155, allocations: 188.8 kB / 1.353 GB, free: 1.758 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/1.155, allocations: 59.39 kB / 1.354 GB, free: 1.746 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001926/1.157, allocations: 0.9755 MB / 1.354 GB, free: 1.195 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001578/1.159, allocations: 0.9924 MB / 1.355 GB, free: 372 kB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002683/1.161, allocations: 1.449 MB / 1.357 GB, free: 15.32 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.556e-05/1.161, allocations: 4.5 kB / 1.357 GB, free: 15.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.00382/1.165, allocations: 1.768 MB / 1.359 GB, free: 14.44 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.131e-05/1.165, allocations: 40.95 kB / 1.359 GB, free: 14.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/1.165, allocations: 15.75 kB / 1.359 GB, free: 14.4 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/1.165, allocations: 18.34 kB / 1.359 GB, free: 14.4 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/1.167, allocations: 311.5 kB / 1.359 GB, free: 14.32 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-05/1.167, allocations: 29.53 kB / 1.359 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/1.168, allocations: 159.8 kB / 1.359 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/1.169, allocations: 59.8 kB / 1.359 GB, free: 14.21 MB / 1.061 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 (154): * Single equations (assignments): 151 * 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.0003669/1.169, allocations: 260.4 kB / 1.359 GB, free: 13.97 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000536/1.169, allocations: 217.7 kB / 1.36 GB, free: 13.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/1.172, allocations: 1.136 MB / 1.361 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/1.172, allocations: 6.844 kB / 1.361 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/1.172, allocations: 1.125 kB / 1.361 GB, free: 13.21 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002035/1.175, allocations: 0.954 MB / 1.362 GB, free: 12.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005928/1.18, allocations: 2.624 MB / 1.364 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/1.18, allocations: 1.156 kB / 1.364 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007507/1.181, allocations: 151.5 kB / 1.364 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/1.181, allocations: 27.69 kB / 1.364 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.894e-05/1.181, allocations: 20.08 kB / 1.364 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/1.183, allocations: 1.422 MB / 1.366 GB, free: 9.344 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.183, allocations: 2.812 kB / 1.366 GB, free: 9.344 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/1.186, allocations: 1.581 MB / 1.367 GB, free: 8.461 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009173/1.187, allocations: 407.8 kB / 1.368 GB, free: 8.125 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/1.187, allocations: 13.41 kB / 1.368 GB, free: 8.117 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/1.189, allocations: 72.17 kB / 1.368 GB, free: 8.082 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/1.189, allocations: 48.38 kB / 1.368 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.032e-05/1.189, allocations: 35.47 kB / 1.368 GB, free: 8.039 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002596/1.191, allocations: 1.474 MB / 1.369 GB, free: 7.246 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.1e-07/1.191, allocations: 4 kB / 1.369 GB, free: 7.242 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.003346/1.195, allocations: 1.036 MB / 1.37 GB, free: 7.02 MB / 1.061 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 (69): * Single equations (assignments): 60 * 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.002309/1.197, allocations: 0.876 MB / 1.371 GB, free: 6.594 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004191/1.201, allocations: 2.088 MB / 1.373 GB, free: 5.289 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.201, allocations: 0 / 1.373 GB, free: 5.289 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001238/1.203, allocations: 0.5463 MB / 1.374 GB, free: 4.734 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/1.207, allocations: 0.9612 MB / 1.375 GB, free: 3.797 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006408/1.213, allocations: 3.675 MB / 1.378 GB, free: 84 kB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/1.214, allocations: 1.55 MB / 1.38 GB, free: 14.5 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001867/1.216, allocations: 0.5202 MB / 1.38 GB, free: 13.97 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/1.217, allocations: 171.4 kB / 1.381 GB, free: 13.8 MB / 1.076 GB Notification: Performance of SimCode: time 3.81e-07/1.217, allocations: 0 / 1.381 GB, free: 13.8 MB / 1.076 GB Notification: Performance of Templates: time 0.06734/1.284, allocations: 39.59 MB / 1.419 GB, free: 6.699 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches