Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_10_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.005232/0.005232, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001092/0.001092, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.401/2.401, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.91 kB / 1.018 GB, free: 9.824 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.866, allocations: 151.6 MB / 1.166 GB, free: 3.715 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002481/0.8685, allocations: 1.075 MB / 1.167 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.87, allocations: 0.9947 MB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.8701, allocations: 4 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.8703, allocations: 27.73 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.535e-05/0.8704, allocations: 15.81 kB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.8707, allocations: 75.84 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002161/0.8709, allocations: 176.1 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.8711, allocations: 80 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.8712, allocations: 67.72 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.8714, allocations: 83.59 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.8714, allocations: 16 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.626e-05/0.8714, allocations: 16 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.612e-05/0.8715, allocations: 39.91 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.8716, allocations: 79.52 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.8718, allocations: 181.6 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8718, allocations: 3.938 kB / 1.169 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.124e-06/0.8719, allocations: 0 / 1.169 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.8719, allocations: 0 / 1.169 GB, free: 0.7812 MB / 0.8887 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.0007849/0.8727, allocations: 482.8 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.8727, allocations: 8.922 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.8728, allocations: 46.73 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.8728, allocations: 24.69 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.8731, allocations: 233.6 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.8732, allocations: 12.38 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.8732, allocations: 16.38 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.8735, allocations: 158.6 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.8735, allocations: 0 / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.8735, allocations: 8 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.8736, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.8738, allocations: 107.9 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.8749, allocations: 0.5428 MB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.8753, allocations: 142.7 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.8755, allocations: 84.77 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.8755, allocations: 7.984 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.8758, allocations: 115.2 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.8758, allocations: 4 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.0005189/0.8763, allocations: 224 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.8764, allocations: 55.41 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.8765, allocations: 160.3 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.8765, allocations: 33.7 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.614e-05/0.8766, allocations: 120.5 kB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.8767, allocations: 67 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.84e-05/0.8767, allocations: 45.7 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.8768, allocations: 322.8 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.8771, allocations: 67.81 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.8773, allocations: 88.31 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.8776, allocations: 155.3 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8776, allocations: 0 / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000504/0.8781, allocations: 210.1 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8781, allocations: 4 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.8782, allocations: 0 / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.8782, allocations: 11.97 kB / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.8784, allocations: 47.84 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.8784, allocations: 3.984 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.8786, allocations: 27.83 kB / 1.173 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.8786, allocations: 8 kB / 1.173 GB, free: 12.96 MB / 0.9044 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.0001348/0.8787, allocations: 129.8 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.8787, allocations: 15.81 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.8792, allocations: 190.7 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.8792, allocations: 0 / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.8792, allocations: 0 / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.8792, allocations: 7.984 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008548/0.8801, allocations: 0.5851 MB / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.8801, allocations: 0 / 1.173 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.8803, allocations: 39.91 kB / 1.173 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.8803, allocations: 7.938 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.8803, allocations: 8 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.8803, allocations: 4.188 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8803, allocations: 4 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000581/0.8809, allocations: 371.6 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.881, allocations: 100.8 kB / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.881, allocations: 8 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.8812, allocations: 15.98 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.957e-05/0.8813, allocations: 19.97 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.8813, allocations: 12 kB / 1.174 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.871e-05/0.8814, allocations: 118.1 kB / 1.174 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8814, allocations: 4 kB / 1.174 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002785/0.8817, allocations: 35.84 kB / 1.174 GB, free: 11.16 MB / 0.9044 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.0009277/0.8826, allocations: 0.9241 MB / 1.175 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004148/0.883, allocations: 165.5 kB / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8831, allocations: 0 / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.8832, allocations: 89.2 kB / 1.175 GB, free: 9.945 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.8836, allocations: 30.59 kB / 1.175 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.8863, allocations: 2.118 MB / 1.177 GB, free: 7.684 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.8866, allocations: 0.7243 MB / 1.178 GB, free: 6.934 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.98e-05/0.8867, allocations: 21.42 kB / 1.178 GB, free: 6.914 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.466e-05/0.8868, allocations: 55.41 kB / 1.178 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of SimCode: time 8.92e-07/0.8868, allocations: 11.88 kB / 1.178 GB, free: 6.848 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.9086, allocations: 3.6 MB / 1.182 GB, free: 3.352 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.732, allocations: 21.7 kB / 1.182 GB, free: 3.336 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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