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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009554/0.009554, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001734/0.001734, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.547/2.547, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 67.89 kB / 1.054 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.016/1.018, allocations: 157.4 MB / 1.207 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Add): time 0.002472/1.02, allocations: 0.7075 MB / 1.208 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001241/1.021, allocations: 0.804 MB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.955e-05/1.021, allocations: 0 / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/1.022, allocations: 3.938 kB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.448e-05/1.022, allocations: 3.938 kB / 1.209 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 7.336e-05/1.022, allocations: 15.98 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/1.022, allocations: 43.84 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/1.022, allocations: 8 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.488e-05/1.022, allocations: 19.92 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.004e-05/1.022, allocations: 23.92 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/1.022, allocations: 4 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.936e-06/1.022, allocations: 4 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/1.022, allocations: 11.92 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/1.022, allocations: 15.92 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001075/1.022, allocations: 39.86 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/1.022, allocations: 0 / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/1.022, allocations: 3.938 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.971e-06/1.022, allocations: 0 / 1.209 GB, free: 11.8 MB / 0.9356 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.0005545/1.023, allocations: 369.6 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/1.023, allocations: 8.031 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/1.023, allocations: 38.69 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.566e-05/1.023, allocations: 4.844 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/1.023, allocations: 176.2 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/1.023, allocations: 384 / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/1.023, allocations: 384 / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/1.023, allocations: 74.22 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/1.024, allocations: 3.938 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/1.024, allocations: 0 / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/1.024, allocations: 0 / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/1.024, allocations: 67.92 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004001/1.024, allocations: 268.8 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/1.024, allocations: 58.64 kB / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/1.025, allocations: 44.8 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/1.025, allocations: 0 / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/1.025, allocations: 34.56 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/1.025, allocations: 4 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005741/1.025, allocations: 133.5 kB / 1.21 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/1.025, allocations: 51.41 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.526e-05/1.025, allocations: 105.8 kB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/1.025, allocations: 29.7 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/1.025, allocations: 92.05 kB / 1.21 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/1.026, allocations: 11.83 kB / 1.21 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/1.026, allocations: 21.7 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001035/1.026, allocations: 310.8 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/1.026, allocations: 31.97 kB / 1.211 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/1.026, allocations: 35.95 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/1.026, allocations: 72.72 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/1.026, allocations: 0 / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003159/1.027, allocations: 101.6 kB / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/1.027, allocations: 5.875 kB / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.027, allocations: 0 / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/1.027, allocations: 0 / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/1.027, allocations: 19.92 kB / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/1.027, allocations: 0 / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.658e-05/1.027, allocations: 15.97 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/1.027, allocations: 0 / 1.211 GB, free: 9.418 MB / 0.9356 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.977e-05/1.027, allocations: 117.8 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/1.027, allocations: 7.906 kB / 1.211 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/1.027, allocations: 7.906 kB / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/1.027, allocations: 0 / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.027, allocations: 0 / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.027, allocations: 0 / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/1.027, allocations: 169.6 kB / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/1.027, allocations: 0 / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.523e-05/1.027, allocations: 27.86 kB / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/1.027, allocations: 0 / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/1.027, allocations: 4 kB / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/1.027, allocations: 0 / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.027, allocations: 4 kB / 1.211 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/1.028, allocations: 191.4 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/1.028, allocations: 81.02 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/1.028, allocations: 4 kB / 1.212 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/1.028, allocations: 15.98 kB / 1.212 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/1.028, allocations: 4.375 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/1.028, allocations: 4 kB / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.026e-05/1.028, allocations: 87.58 kB / 1.212 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/1.028, allocations: 0 / 1.212 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002167/1.028, allocations: 8 kB / 1.212 GB, free: 8.594 MB / 0.9356 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.0006832/1.029, allocations: 0.7357 MB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003493/1.029, allocations: 67.92 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.029, allocations: 0 / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/1.029, allocations: 39.91 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/1.03, allocations: 8.219 kB / 1.213 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004776/1.03, allocations: 167 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/1.031, allocations: 0.6846 MB / 1.213 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.914e-05/1.031, allocations: 0 / 1.213 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.68e-05/1.031, allocations: 11.44 kB / 1.213 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/1.031, allocations: 3.938 kB / 1.213 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/1.05, allocations: 1.644 MB / 1.215 GB, free: 5.234 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/8.365, allocations: 17.86 kB / 1.215 GB, free: 5.219 MB / 0.9356 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=50 --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