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.01021/0.01021, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001318/0.001318, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.816/2.816, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 75.88 kB / 1.054 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3249, allocations: 157.4 MB / 1.207 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002855/0.3278, allocations: 1.058 MB / 1.208 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3293, allocations: 0.9991 MB / 1.209 GB, free: 8.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.3295, allocations: 7.938 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.3296, allocations: 19.73 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.102e-05/0.3297, allocations: 15.81 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.33, allocations: 75.84 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.3303, allocations: 180 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.3304, allocations: 80.02 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.3306, allocations: 71.72 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.3307, allocations: 83.59 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.3307, allocations: 20 kB / 1.21 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.582e-05/0.3308, allocations: 16 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.3308, allocations: 39.91 kB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.77e-05/0.3309, allocations: 79.52 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.3311, allocations: 187.5 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3311, allocations: 0 / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3311, allocations: 3.938 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.293e-06/0.3312, allocations: 0 / 1.21 GB, free: 7.152 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.0009166/0.3321, allocations: 482.8 kB / 1.211 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3321, allocations: 12.62 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.168e-05/0.3322, allocations: 50.73 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.765e-05/0.3323, allocations: 16.75 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.3327, allocations: 227 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3327, allocations: 8.375 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.3328, allocations: 20.38 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.3331, allocations: 157.9 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3331, allocations: 3.984 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.3332, allocations: 11.94 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3332, allocations: 4 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.3334, allocations: 99.94 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.3345, allocations: 0.5313 MB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.3349, allocations: 150.5 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.3351, allocations: 82.55 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.3351, allocations: 7.984 kB / 1.212 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.3353, allocations: 115.3 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.804e-06/0.3354, allocations: 0 / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0005151/0.3359, allocations: 226.6 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.3359, allocations: 59.34 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3361, allocations: 158.2 kB / 1.213 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.3361, allocations: 33.64 kB / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.3362, allocations: 116.5 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.3362, allocations: 67 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.3363, allocations: 37.7 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3364, allocations: 330.8 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.3366, allocations: 71.95 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.3368, allocations: 85.67 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.3371, allocations: 147.6 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3371, allocations: 0 / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004494/0.3376, allocations: 217.3 kB / 1.214 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3376, allocations: 4 kB / 1.214 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3376, allocations: 0 / 1.214 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3376, allocations: 4 kB / 1.214 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.3378, allocations: 39.91 kB / 1.214 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3379, allocations: 4 kB / 1.214 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.338, allocations: 27.86 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.338, allocations: 8 kB / 1.214 GB, free: 3.355 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.0001024/0.3381, allocations: 129.7 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.3382, allocations: 15.81 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003936/0.3386, allocations: 196.1 kB / 1.214 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3386, allocations: 4 kB / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3386, allocations: 0 / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3386, allocations: 3.984 kB / 1.214 GB, free: 3 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007622/0.3394, allocations: 0.5773 MB / 1.215 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3394, allocations: 4 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.3396, allocations: 39.91 kB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3396, allocations: 7.938 kB / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3396, allocations: 4 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.3396, allocations: 0 / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3396, allocations: 4 kB / 1.215 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005316/0.3401, allocations: 389.8 kB / 1.215 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.3402, allocations: 97.02 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.3402, allocations: 11.98 kB / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.3404, allocations: 11.98 kB / 1.215 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.76e-05/0.3404, allocations: 23.97 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.3405, allocations: 4 kB / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.891e-05/0.3405, allocations: 121.4 kB / 1.215 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.375e-06/0.3406, allocations: 4 kB / 1.215 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002712/0.3408, allocations: 39.84 kB / 1.215 GB, free: 1.551 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.0008417/0.3417, allocations: 0.9124 MB / 1.216 GB, free: 0.5938 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004024/0.3421, allocations: 176.3 kB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3421, allocations: 0 / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.3423, allocations: 87.83 kB / 1.216 GB, free: 348 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.3426, allocations: 39.86 kB / 1.216 GB, free: 308 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.3453, allocations: 2.129 MB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.3455, allocations: 0.7321 MB / 1.219 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.92e-05/0.3456, allocations: 13.42 kB / 1.219 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.332e-05/0.3457, allocations: 51.42 kB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of SimCode: time 3.7e-07/0.3457, allocations: 4 kB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.3654, allocations: 3.622 MB / 1.223 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/8.033, allocations: 0 / 1.223 GB, free: 9.707 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