Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Add,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Add,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add",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.006904/0.006904, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.001682/0.001682, allocations: 198.8 kB / 16.68 MB, free: 5.961 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.738/2.738, allocations: 482.6 MB / 0.755 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 71.88 kB / 1.083 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2994, allocations: 162.3 MB / 1.242 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Add): time 0.001692/0.3011, allocations: 0.7097 MB / 1.243 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008413/0.302, allocations: 0.8 MB / 1.243 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.302, allocations: 0 / 1.243 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.465e-05/0.3021, allocations: 3.938 kB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.551e-05/0.3021, allocations: 7.922 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 5.749e-05/0.3022, allocations: 15.98 kB / 1.243 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.09e-05/0.3023, allocations: 43.84 kB / 1.243 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3024, allocations: 12 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.95e-05/0.3025, allocations: 15.98 kB / 1.243 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.69e-05/0.3025, allocations: 19.92 kB / 1.244 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.3025, allocations: 7.938 kB / 1.244 GB, free: 8.098 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.709e-06/0.3026, allocations: 4 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.718e-05/0.3026, allocations: 7.984 kB / 1.244 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.3026, allocations: 15.92 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 9.37e-05/0.3027, allocations: 47.73 kB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3027, allocations: 0 / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3027, allocations: 4 kB / 1.244 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3027, allocations: 3.938 kB / 1.244 GB, free: 8.016 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005083/0.3032, allocations: 367.3 kB / 1.244 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3033, allocations: 8.031 kB / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.105e-05/0.3033, allocations: 30.75 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.3033, allocations: 4.938 kB / 1.244 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.3035, allocations: 176.3 kB / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.3035, allocations: 8.375 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.3035, allocations: 384 / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.3038, allocations: 66.22 kB / 1.244 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.3038, allocations: 3.938 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3038, allocations: 4 kB / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3038, allocations: 3.938 kB / 1.244 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.3041, allocations: 67.92 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.3044, allocations: 260.9 kB / 1.245 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.3046, allocations: 54.55 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.3048, allocations: 48.91 kB / 1.245 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.3048, allocations: 0 / 1.245 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.3048, allocations: 38.5 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3048, allocations: 0 / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005269/0.3054, allocations: 133.5 kB / 1.245 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.3054, allocations: 51.41 kB / 1.245 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.192e-05/0.3055, allocations: 105.8 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.3055, allocations: 25.7 kB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.798e-05/0.3056, allocations: 88.14 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.3056, allocations: 11.84 kB / 1.245 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.3056, allocations: 21.7 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3058, allocations: 310.8 kB / 1.245 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.3059, allocations: 35.97 kB / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.306, allocations: 39.83 kB / 1.245 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.3063, allocations: 72.72 kB / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3063, allocations: 4 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000301/0.3066, allocations: 93.95 kB / 1.246 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.3067, allocations: 4 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3067, allocations: 3.984 kB / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3067, allocations: 0 / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3068, allocations: 19.98 kB / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.3068, allocations: 0 / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.442e-05/0.3069, allocations: 15.98 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.3069, allocations: 7.984 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 7.613e-05/0.307, allocations: 113.7 kB / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.307, allocations: 7.953 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.3071, allocations: 7.906 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.3071, allocations: 3.938 kB / 1.246 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3071, allocations: 0 / 1.246 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3071, allocations: 0 / 1.246 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.3073, allocations: 181.6 kB / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3073, allocations: 0 / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.197e-05/0.3074, allocations: 15.98 kB / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3074, allocations: 0 / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.3074, allocations: 0 / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3074, allocations: 0 / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3074, allocations: 0 / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.3077, allocations: 199.4 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.3078, allocations: 85.05 kB / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.3078, allocations: 0 / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.3079, allocations: 15.92 kB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.308, allocations: 0 / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.308, allocations: 4 kB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.238e-05/0.308, allocations: 91.27 kB / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.308, allocations: 0 / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002017/0.3082, allocations: 8 kB / 1.246 GB, free: 4.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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.000674/0.3089, allocations: 0.7285 MB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003275/0.3092, allocations: 67.86 kB / 1.247 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3093, allocations: 0 / 1.247 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.3094, allocations: 39.91 kB / 1.247 GB, free: 3.961 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.3097, allocations: 11.98 kB / 1.247 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003905/0.3101, allocations: 159 kB / 1.247 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3104, allocations: 0.6806 MB / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.051e-05/0.3104, allocations: 8 kB / 1.248 GB, free: 3.039 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.3104, allocations: 11.44 kB / 1.248 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.3104, allocations: 0 / 1.248 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5335/0.844, allocations: 1.623 MB / 1.25 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.43, allocations: 14.45 kB / 1.25 GB, free: 1.48 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Add.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches