Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",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.008225/0.008225, allocations: 100.4 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.00185/0.00185, allocations: 187.6 kB / 16.67 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.91 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2985, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002368/0.3009, allocations: 1.073 MB / 1.208 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3023, allocations: 0.9914 MB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.3025, allocations: 7.938 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.3027, allocations: 19.73 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.352e-05/0.3028, allocations: 23.78 kB / 1.209 GB, free: 8.023 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.3031, allocations: 70.11 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.3033, allocations: 180 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.3035, allocations: 76.05 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.3036, allocations: 71.77 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.3037, allocations: 79.61 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.3038, allocations: 16 kB / 1.21 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.463e-05/0.3038, allocations: 16 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.3038, allocations: 39.89 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.154e-05/0.3039, allocations: 83.47 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.3041, allocations: 183.6 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.3041, allocations: 3.938 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3042, allocations: 4 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.3042, allocations: 0 / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0007775/0.3049, allocations: 478.8 kB / 1.211 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.305, allocations: 16.56 kB / 1.211 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.814e-05/0.3051, allocations: 50.67 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.3051, allocations: 20.75 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.3054, allocations: 224.5 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.3054, allocations: 8.375 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.3055, allocations: 20.38 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.3058, allocations: 157.8 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.3058, allocations: 0 / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.3058, allocations: 11.98 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3058, allocations: 4 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.3061, allocations: 103.9 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.3072, allocations: 0.5313 MB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.3075, allocations: 150.6 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.3077, allocations: 76.83 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.3078, allocations: 7.984 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.308, allocations: 124.7 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.873e-06/0.308, allocations: 3.938 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0005347/0.3085, allocations: 218.2 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3086, allocations: 55.41 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3087, allocations: 160.4 kB / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.3088, allocations: 29.7 kB / 1.213 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.3088, allocations: 124.5 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.133e-05/0.3089, allocations: 67 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.309, allocations: 37.7 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3091, allocations: 326.8 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.3093, allocations: 67.95 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.3095, allocations: 89.67 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.3098, allocations: 151.9 kB / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3099, allocations: 0 / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004943/0.3104, allocations: 213.3 kB / 1.214 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3104, allocations: 8.031 kB / 1.214 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3104, allocations: 4 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3104, allocations: 4 kB / 1.214 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.3106, allocations: 35.97 kB / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3106, allocations: 4 kB / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.3108, allocations: 23.83 kB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.3108, allocations: 8 kB / 1.214 GB, free: 3.414 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001056/0.3109, allocations: 137.7 kB / 1.214 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/0.3109, allocations: 19.8 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.3114, allocations: 192.2 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3114, allocations: 4 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3114, allocations: 0 / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3114, allocations: 3.984 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007682/0.3122, allocations: 0.5734 MB / 1.215 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3122, allocations: 4 kB / 1.215 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.3124, allocations: 36.16 kB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3124, allocations: 11.94 kB / 1.215 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.3124, allocations: 4 kB / 1.215 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.686e-06/0.3124, allocations: 3.938 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3124, allocations: 4 kB / 1.215 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.313, allocations: 386.5 kB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.313, allocations: 92.89 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.3131, allocations: 11.94 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.3132, allocations: 12.03 kB / 1.215 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.3133, allocations: 27.97 kB / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3133, allocations: 4 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.462e-05/0.3134, allocations: 121.4 kB / 1.215 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3134, allocations: 0 / 1.215 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002744/0.3137, allocations: 35.91 kB / 1.215 GB, free: 1.613 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.000899/0.3146, allocations: 0.9187 MB / 1.216 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004321/0.315, allocations: 171.8 kB / 1.216 GB, free: 496 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.315, allocations: 0 / 1.216 GB, free: 496 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.3152, allocations: 87.78 kB / 1.216 GB, free: 408 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.3156, allocations: 40.34 kB / 1.216 GB, free: 368 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.3182, allocations: 2.129 MB / 1.219 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.3184, allocations: 0.7282 MB / 1.219 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.627e-05/0.3185, allocations: 21.41 kB / 1.219 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.199e-05/0.3186, allocations: 55.41 kB / 1.219 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3186, allocations: 0 / 1.219 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.3409, allocations: 3.665 MB / 1.223 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.127, allocations: 5.625 kB / 1.223 GB, free: 9.715 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,der1.y,intWitRes.u,der2.y,der1.T Variables in the result:T.k,T.y,abs.u,abs.y,assMes.u,booSig.k,booSig.y,con.k,con.y,con2.k,con2.y,cos.u,cos.y,der(der1.x),der(der2.x),der(intWitRes.y),der1.T,der1.k,der1.u,der1.x,der1.y,der1.y_start,der2.T,der2.k,der2.u,der2.x,der2.y,der2.y_start,gai.k,gai.u,gai.y,intWitRes.k,intWitRes.trigger,intWitRes.u,intWitRes.y,intWitRes.y_reset_in,intWitRes.y_start,lesThr.h,lesThr.pre_y_start,lesThr.t,lesThr.u,lesThr.y,modTim.y,ram.duration,ram.height,ram.offset,ram.startTime,ram.y,sub.u1,sub.u2,sub.y,time