Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn,fileNamePrefix="Buildings_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_BoilerReturn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn,fileNamePrefix="Buildings_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_BoilerReturn",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004998/0.004998, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001168/0.001168, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.647/2.647, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2942, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn): time 0.003285/0.2975, allocations: 2.058 MB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008688/0.2984, allocations: 442.5 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.2986, allocations: 4 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.2987, allocations: 47.53 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.2989, allocations: 43.66 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.2992, allocations: 99.86 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003096/0.2995, allocations: 288.4 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.2998, allocations: 156.5 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.2999, allocations: 99.58 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.3, allocations: 103.5 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.3001, allocations: 32 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 3.858e-05/0.3001, allocations: 39.94 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.947e-05/0.3002, allocations: 67.77 kB / 1.17 GB, free: 3.84 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.3003, allocations: 119.4 kB / 1.17 GB, free: 3.723 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.3007, allocations: 386.7 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3007, allocations: 0 / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3007, allocations: 0 / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.3007, allocations: 0 / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009012/0.3017, allocations: 0.5533 MB / 1.171 GB, free: 2.742 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3017, allocations: 12.03 kB / 1.171 GB, free: 2.73 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.702e-05/0.3018, allocations: 50.73 kB / 1.171 GB, free: 2.672 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.3018, allocations: 24.8 kB / 1.171 GB, free: 2.648 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.3022, allocations: 276.3 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.3023, allocations: 16.81 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.3023, allocations: 24.33 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004758/0.3028, allocations: 242 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3028, allocations: 0 / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.3028, allocations: 4 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.3028, allocations: 4 kB / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.3033, allocations: 177 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3045, allocations: 0.8407 MB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004939/0.305, allocations: 178.7 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.3052, allocations: 97.02 kB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.3052, allocations: 7.922 kB / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.3053, allocations: 30.56 kB / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.3053, allocations: 0 / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.000646/0.3059, allocations: 233.4 kB / 1.173 GB, free: 416 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.306, allocations: 81.05 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.3062, allocations: 235.2 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3063, allocations: 29.7 kB / 1.173 GB, free: 32 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3064, allocations: 160.2 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.3064, allocations: 47.64 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.3065, allocations: 29.72 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3066, allocations: 330.8 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.3068, allocations: 76.75 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.3071, allocations: 105.1 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003757/0.3075, allocations: 162.5 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3075, allocations: 0 / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004694/0.3079, allocations: 209.4 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.308, allocations: 5.719 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.308, allocations: 3.938 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.308, allocations: 4 kB / 1.174 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.3082, allocations: 43.94 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3082, allocations: 4 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.3084, allocations: 27.88 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.3084, allocations: 4 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002172/0.3086, allocations: 156.8 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001663/0.3088, allocations: 101.1 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002739/0.3091, allocations: 131.3 kB / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.3091, allocations: 0 / 1.175 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of matching and sorting (n=17) (initialization_lambda0): time 0.0003695/0.3094, allocations: 188.2 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.3095, allocations: 4 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-06/0.3095, allocations: 4 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3095, allocations: 7.922 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.3096, allocations: 27.98 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.3096, allocations: 4 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.3098, allocations: 15.94 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.3098, allocations: 12.09 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (conBoiRet.conPID.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001122/0.3099, allocations: 196.1 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.677e-05/0.31, allocations: 19.86 kB / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.236e-05/0.31, allocations: 25.34 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.31, allocations: 0 / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.31, allocations: 3.938 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.31, allocations: 3.984 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003261/0.3104, allocations: 297.5 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3104, allocations: 0 / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.3106, allocations: 39.97 kB / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3106, allocations: 0 / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.3106, allocations: 7.938 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3106, allocations: 3.938 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3106, allocations: 0 / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006504/0.3113, allocations: 343.3 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.3113, allocations: 97.03 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.3114, allocations: 7.938 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.3115, allocations: 15.92 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.3116, allocations: 7.984 kB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3116, allocations: 8 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001639/0.3118, allocations: 172.5 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3118, allocations: 4.062 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003879/0.3122, allocations: 71.73 kB / 1.176 GB, free: 12.72 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (conBoiRet.conPID.I.y) * 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 (12): * Single equations (assignments): 12 * 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.0008948/0.3131, allocations: 0.8763 MB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005992/0.3137, allocations: 224.3 kB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3137, allocations: 4.375 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.3139, allocations: 75.89 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3143, allocations: 42.83 kB / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.3173, allocations: 2.292 MB / 1.179 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.3176, allocations: 0.7323 MB / 1.18 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001011/0.3177, allocations: 25.53 kB / 1.18 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.3178, allocations: 63.36 kB / 1.18 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.3178, allocations: 0 / 1.18 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.3389, allocations: 4.149 MB / 1.184 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.521/7.86, allocations: 7.578 kB / 1.184 GB, free: 4.234 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe ; mkfifo Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe >> ../files/Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Examples_Tutorial_CDL_Controls_Validation_BoilerReturn.fmu > Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_BoilerReturn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches