Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.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.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCur.TSup|heaCur.TRet|heaCur.TOut|heaCur1.TRoo_in|heaCur1.TSup|heaCur1.TRet",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset") translateModel(Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCur.TSup|heaCur.TRet|heaCur.TOut|heaCur1.TRoo_in|heaCur1.TSup|heaCur1.TRet",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001216/0.001216, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.497/1.497, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 472.6 MB / 0.7448 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001642, allocations: 61.28 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5169/0.5185, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset): time 0.00514/0.5237, allocations: 1.873 MB / 1.07 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006437/0.5244, allocations: 119.6 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.5247, allocations: 0 / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.525, allocations: 11.86 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.5252, allocations: 43.64 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.5254, allocations: 31.95 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002926/0.5257, allocations: 171.1 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.5259, allocations: 28.88 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.809e-05/0.526, allocations: 59.8 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.5262, allocations: 67.75 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.164e-05/0.5262, allocations: 8 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.919e-05/0.5262, allocations: 12 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.886e-05/0.5263, allocations: 23.91 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.5264, allocations: 67.67 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.5266, allocations: 123.8 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.5266, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.104e-06/0.5266, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.5266, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009604/0.5276, allocations: 462.8 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.5277, allocations: 11.97 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.5277, allocations: 12.84 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.528, allocations: 204 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.528, allocations: 4.375 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.5281, allocations: 8.375 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.5284, allocations: 117.9 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.5284, allocations: 8.109 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.5285, allocations: 11.94 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.5285, allocations: 4 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.5288, allocations: 91.92 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/0.5297, allocations: 480.5 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.5301, allocations: 133.2 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.5303, allocations: 61.78 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.5303, allocations: 0 / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5303, allocations: 30.56 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.5304, allocations: 0 / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0006432/0.531, allocations: 189.3 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/0.5311, allocations: 81.11 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.5313, allocations: 168.1 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.5314, allocations: 29.7 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.5315, allocations: 104.1 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.859e-05/0.5315, allocations: 35.55 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/0.5316, allocations: 25.72 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001999/0.5318, allocations: 322.8 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.5319, allocations: 43.97 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.5321, allocations: 69.55 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.5324, allocations: 97.67 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5324, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000344/0.5327, allocations: 145.4 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.5328, allocations: 4 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.5328, allocations: 4.375 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.5328, allocations: 0 / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.533, allocations: 31.97 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.533, allocations: 0 / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.5332, allocations: 19.89 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.5332, allocations: 8.125 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001231/0.5333, allocations: 121.8 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.5334, allocations: 15.84 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004488/0.5338, allocations: 154.5 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.5339, allocations: 4 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.5339, allocations: 3.984 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.5339, allocations: 0 / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003287/0.5342, allocations: 233.4 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5342, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.5344, allocations: 19.98 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.5344, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.5344, allocations: 0 / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.5344, allocations: 4 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.5344, allocations: 0 / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.5349, allocations: 310.8 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.894e-05/0.5349, allocations: 92.92 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.535, allocations: 4 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.5352, allocations: 15.97 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.5352, allocations: 7.984 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.5352, allocations: 7.938 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001127/0.5354, allocations: 128.2 kB / 1.074 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5354, allocations: 0 / 1.074 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002771/0.5357, allocations: 24 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001509/0.5358, allocations: 107.2 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003841/0.5362, allocations: 107.9 kB / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5362, allocations: 0 / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.5364, allocations: 55.91 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.5369, allocations: 48.39 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006209/0.5376, allocations: 267.5 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.538, allocations: 0.7045 MB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.397e-05/0.5381, allocations: 8.656 kB / 1.076 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.5381, allocations: 23.42 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.5381, allocations: 0 / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of Templates: time 0.005501/0.5436, allocations: 2.009 MB / 1.078 GB, free: 432 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_SupplyReturnTemperatureReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches