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.001631/0.001631, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002029/0.002029, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.596/1.596, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.039/3.039, allocations: 0.5003 GB / 0.8026 GB, free: 6.793 MB / 0.6387 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.001992/0.001992, allocations: 63.91 kB / 1.165 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.185/1.187, allocations: 178.9 MB / 1.34 GB, free: 16.33 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002501/1.189, allocations: 1.082 MB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00155/1.191, allocations: 1.035 MB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/1.191, allocations: 3.281 kB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001635/1.191, allocations: 25.14 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.523e-05/1.191, allocations: 19.44 kB / 1.342 GB, free: 14.8 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/1.191, allocations: 75.2 kB / 1.342 GB, free: 14.75 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002459/1.192, allocations: 176.7 kB / 1.343 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/1.192, allocations: 62.94 kB / 1.343 GB, free: 14.63 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/1.192, allocations: 75.64 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/1.192, allocations: 79.47 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/1.192, allocations: 15.31 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.803e-05/1.192, allocations: 24.06 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/1.192, allocations: 41.5 kB / 1.343 GB, free: 14.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.699e-05/1.192, allocations: 77.38 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003423/1.193, allocations: 192.6 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.193, allocations: 0 / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.863e-06/1.193, allocations: 1.312 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.498e-05/1.193, allocations: 0 / 1.343 GB, free: 14.38 MB / 1.061 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.000851/1.193, allocations: 478.3 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.194, allocations: 10.12 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.124e-05/1.194, allocations: 8.562 kB / 1.344 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/1.194, allocations: 54.69 kB / 1.344 GB, free: 13.9 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/1.194, allocations: 23.69 kB / 1.344 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/1.194, allocations: 226.6 kB / 1.344 GB, free: 13.66 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/1.194, allocations: 15.27 kB / 1.344 GB, free: 13.65 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.41e-05/1.194, allocations: 20 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000346/1.194, allocations: 152.9 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/1.194, allocations: 5.156 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/1.194, allocations: 5.094 kB / 1.344 GB, free: 13.56 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/1.194, allocations: 3.312 kB / 1.344 GB, free: 13.56 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/1.195, allocations: 105.8 kB / 1.344 GB, free: 13.54 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/1.196, allocations: 0.5388 MB / 1.345 GB, free: 13.15 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/1.196, allocations: 141.7 kB / 1.345 GB, free: 13.08 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/1.197, allocations: 82.42 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/1.197, allocations: 7.406 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/1.197, allocations: 118 kB / 1.345 GB, free: 12.97 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.804e-06/1.197, allocations: 0 / 1.345 GB, free: 12.97 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.000602/1.197, allocations: 226.6 kB / 1.345 GB, free: 12.88 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/1.197, allocations: 57.48 kB / 1.345 GB, free: 12.81 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/1.198, allocations: 163.5 kB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/1.198, allocations: 31.73 kB / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.061e-05/1.198, allocations: 112.4 kB / 1.346 GB, free: 12.55 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.244e-05/1.198, allocations: 67.72 kB / 1.346 GB, free: 12.5 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.504e-05/1.198, allocations: 39.27 kB / 1.346 GB, free: 12.47 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.181e-05/1.198, allocations: 328.4 kB / 1.346 GB, free: 12.15 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/1.198, allocations: 69.39 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/1.198, allocations: 92.69 kB / 1.346 GB, free: 12.08 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/1.199, allocations: 142.8 kB / 1.346 GB, free: 12.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.199, allocations: 0 / 1.346 GB, free: 12.02 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004904/1.199, allocations: 213.4 kB / 1.346 GB, free: 11.92 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/1.199, allocations: 9.312 kB / 1.346 GB, free: 11.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/1.199, allocations: 2.094 kB / 1.346 GB, free: 11.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.199, allocations: 1.344 kB / 1.346 GB, free: 11.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/1.199, allocations: 39.72 kB / 1.347 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/1.199, allocations: 2.688 kB / 1.347 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/1.2, allocations: 34.45 kB / 1.347 GB, free: 11.89 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/1.2, allocations: 5.625 kB / 1.347 GB, free: 11.89 MB / 1.061 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.0001109/1.2, allocations: 133.6 kB / 1.347 GB, free: 11.76 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/1.2, allocations: 15.67 kB / 1.347 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/1.2, allocations: 190.2 kB / 1.347 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.2, allocations: 2.688 kB / 1.347 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/1.2, allocations: 4 kB / 1.347 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/1.2, allocations: 1.594 kB / 1.347 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008372/1.201, allocations: 0.5882 MB / 1.347 GB, free: 11.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/1.201, allocations: 2.375 kB / 1.347 GB, free: 11.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/1.201, allocations: 39.95 kB / 1.348 GB, free: 11.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.201, allocations: 6.594 kB / 1.348 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/1.201, allocations: 9.203 kB / 1.348 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/1.201, allocations: 2.125 kB / 1.348 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.201, allocations: 3.297 kB / 1.348 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/1.202, allocations: 388.8 kB / 1.348 GB, free: 10.92 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/1.202, allocations: 104.1 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/1.202, allocations: 4.641 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/1.202, allocations: 17.53 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.034e-05/1.202, allocations: 24.66 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/1.202, allocations: 6.375 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.463e-05/1.202, allocations: 121.9 kB / 1.348 GB, free: 10.7 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/1.202, allocations: 0 / 1.348 GB, free: 10.7 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002866/1.203, allocations: 32.86 kB / 1.348 GB, free: 10.7 MB / 1.061 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.0007992/1.203, allocations: 0.9289 MB / 1.349 GB, free: 9.891 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004587/1.204, allocations: 151 kB / 1.349 GB, free: 9.848 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.204, allocations: 0 / 1.349 GB, free: 9.848 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001981/1.204, allocations: 85.16 kB / 1.349 GB, free: 9.82 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/1.204, allocations: 25.89 kB / 1.349 GB, free: 9.809 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/1.207, allocations: 2.134 MB / 1.351 GB, free: 8.172 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/1.207, allocations: 0.7295 MB / 1.352 GB, free: 7.465 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.531e-05/1.207, allocations: 15.81 kB / 1.352 GB, free: 7.465 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/1.207, allocations: 55.34 kB / 1.352 GB, free: 7.426 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/1.207, allocations: 0 / 1.352 GB, free: 7.426 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/1.232, allocations: 3.687 MB / 1.356 GB, free: 6.883 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.514/9.746, allocations: 10.94 kB / 1.356 GB, free: 6.875 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.683882259007078]