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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002041/0.002041, allocations: 216.9 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.3/3.3, allocations: 0.5003 GB / 0.8061 GB, free: 26.73 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 65.55 kB / 1.171 GB, free: 19.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4845/0.4865, allocations: 179 MB / 1.345 GB, free: 372 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002904/0.4894, allocations: 1.079 MB / 1.346 GB, free: 15.29 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.4912, allocations: 1.042 MB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.4913, allocations: 4 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.4915, allocations: 19.73 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.733e-05/0.4915, allocations: 19.8 kB / 1.347 GB, free: 14.19 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.4919, allocations: 87.72 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.4921, allocations: 180 kB / 1.348 GB, free: 13.92 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.4923, allocations: 60.67 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.4924, allocations: 71.78 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.4926, allocations: 83.59 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/0.4926, allocations: 16 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.4927, allocations: 16 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.021e-05/0.4927, allocations: 43.84 kB / 1.348 GB, free: 13.63 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.448e-05/0.4928, allocations: 79.58 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.4931, allocations: 179.1 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4931, allocations: 4 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.213e-06/0.4931, allocations: 0 / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.4931, allocations: 4 kB / 1.348 GB, free: 13.37 MB / 1.045 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.0009245/0.494, allocations: 426.3 kB / 1.349 GB, free: 12.91 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.4941, allocations: 12.03 kB / 1.349 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.95e-05/0.4941, allocations: 192 / 1.349 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.547e-05/0.4941, allocations: 50.73 kB / 1.349 GB, free: 12.84 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.4943, allocations: 28.83 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.4946, allocations: 166.8 kB / 1.349 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.4946, allocations: 16.31 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.4947, allocations: 20.12 kB / 1.349 GB, free: 12.59 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.495, allocations: 149.5 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.495, allocations: 0 / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.4951, allocations: 4 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.4951, allocations: 4 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.4954, allocations: 115.9 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.4965, allocations: 0.4993 MB / 1.35 GB, free: 11.78 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.497, allocations: 134.7 kB / 1.35 GB, free: 11.64 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4971, allocations: 80.8 kB / 1.35 GB, free: 11.55 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.4972, allocations: 11.84 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.4974, allocations: 119.3 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.553e-06/0.4974, allocations: 0 / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0006049/0.4981, allocations: 226.7 kB / 1.35 GB, free: 11.19 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.4981, allocations: 55.41 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.4983, allocations: 163.5 kB / 1.35 GB, free: 10.95 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.4983, allocations: 37.7 kB / 1.351 GB, free: 10.91 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.483e-05/0.4984, allocations: 116.5 kB / 1.351 GB, free: 10.79 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.835e-05/0.4985, allocations: 67.42 kB / 1.351 GB, free: 10.73 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.632e-05/0.4985, allocations: 41.7 kB / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4987, allocations: 330.8 kB / 1.351 GB, free: 10.35 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.4989, allocations: 59.97 kB / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.4991, allocations: 100.6 kB / 1.351 GB, free: 10.19 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.4995, allocations: 143.5 kB / 1.351 GB, free: 10.04 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4995, allocations: 0 / 1.351 GB, free: 10.04 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005221/0.5, allocations: 207.8 kB / 1.352 GB, free: 9.836 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.5, allocations: 8 kB / 1.352 GB, free: 9.828 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5, allocations: 3.938 kB / 1.352 GB, free: 9.824 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.5001, allocations: 4 kB / 1.352 GB, free: 9.82 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.5003, allocations: 43.97 kB / 1.352 GB, free: 9.777 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5003, allocations: 0 / 1.352 GB, free: 9.777 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.5004, allocations: 27.88 kB / 1.352 GB, free: 9.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.5004, allocations: 4 kB / 1.352 GB, free: 9.746 MB / 1.045 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.0001336/0.5006, allocations: 141.7 kB / 1.352 GB, free: 9.598 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.5006, allocations: 11.91 kB / 1.352 GB, free: 9.586 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004415/0.501, allocations: 192 kB / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.501, allocations: 0 / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.501, allocations: 0 / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.5011, allocations: 0 / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009391/0.502, allocations: 0.5608 MB / 1.352 GB, free: 8.762 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.502, allocations: 3.938 kB / 1.352 GB, free: 8.758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.5022, allocations: 44.09 kB / 1.353 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.5022, allocations: 0 / 1.353 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.5022, allocations: 8 kB / 1.353 GB, free: 8.707 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.5022, allocations: 4 kB / 1.353 GB, free: 8.703 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.5022, allocations: 7.875 kB / 1.353 GB, free: 8.695 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.5029, allocations: 385.7 kB / 1.353 GB, free: 8.285 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.5029, allocations: 19.84 kB / 1.353 GB, free: 8.266 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.5029, allocations: 8 kB / 1.353 GB, free: 8.258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.5031, allocations: 15.98 kB / 1.353 GB, free: 8.242 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.232e-05/0.5032, allocations: 31.89 kB / 1.353 GB, free: 8.211 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.5032, allocations: 4 kB / 1.353 GB, free: 8.207 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.729e-05/0.5033, allocations: 123.2 kB / 1.353 GB, free: 8.086 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.5033, allocations: 0 / 1.353 GB, free: 8.086 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002825/0.5035, allocations: 31.95 kB / 1.353 GB, free: 8.055 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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.001023/0.5046, allocations: 0.922 MB / 1.354 GB, free: 7.09 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004495/0.505, allocations: 155.8 kB / 1.354 GB, free: 6.938 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.505, allocations: 0 / 1.354 GB, free: 6.938 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.5052, allocations: 86.14 kB / 1.354 GB, free: 6.855 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.5056, allocations: 25.19 kB / 1.354 GB, free: 6.832 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/0.5086, allocations: 2.126 MB / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.509, allocations: 0.7243 MB / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.746e-05/0.5091, allocations: 21.59 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.5092, allocations: 55.36 kB / 1.357 GB, free: 3.754 MB / 1.045 GB Notification: Performance of SimCode: time 8.21e-07/0.5092, allocations: 0 / 1.357 GB, free: 3.754 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.5368, allocations: 3.869 MB / 1.361 GB, free: 44 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12, allocations: 8.062 kB / 1.361 GB, free: 36 kB / 1.045 GB " [Timeout remaining time 288] (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 --stepSize=0.004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.209262636024505]