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.001819/0.001819, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002555/0.002555, allocations: 214.6 kB / 22.25 MB, free: 5.262 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.594/1.594, allocations: 230.6 MB / 256 MB, free: 7.785 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.271/3.271, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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="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"}) [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.002091/0.002091, allocations: 67.3 kB / 1.186 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3753, allocations: 181.9 MB / 1.363 GB, free: 14.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002521/0.3778, allocations: 1.006 MB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3794, allocations: 1.027 MB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.3796, allocations: 7.938 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.3797, allocations: 19.73 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.044e-05/0.3798, allocations: 19.8 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.3801, allocations: 79.86 kB / 1.366 GB, free: 11.85 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.3804, allocations: 176.1 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.3805, allocations: 56.67 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.3806, allocations: 71.66 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.3808, allocations: 75.66 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.3808, allocations: 16 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.954e-05/0.3809, allocations: 19.94 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.823e-05/0.3809, allocations: 39.91 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.19e-05/0.381, allocations: 63.66 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.3813, allocations: 191.1 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3813, allocations: 4 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3813, allocations: 3.938 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.3813, allocations: 0 / 1.366 GB, free: 11.14 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.0008675/0.3821, allocations: 422.4 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3822, allocations: 8.031 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.3822, allocations: 50.73 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.3823, allocations: 24.83 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.3827, allocations: 170.8 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.3827, allocations: 12.38 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.3827, allocations: 16.38 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.3831, allocations: 175.1 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3831, allocations: 0 / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.3831, allocations: 12 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3831, allocations: 4 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.3834, allocations: 107.9 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.3845, allocations: 471.3 kB / 1.368 GB, free: 9.574 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.3849, allocations: 138.6 kB / 1.368 GB, free: 9.43 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.3851, allocations: 88.77 kB / 1.368 GB, free: 9.34 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.3851, allocations: 7.938 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.3854, allocations: 142.9 kB / 1.368 GB, free: 9.176 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/0.3854, allocations: 0 / 1.368 GB, free: 9.176 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0005782/0.386, allocations: 223.3 kB / 1.368 GB, free: 8.953 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.386, allocations: 55.41 kB / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.3862, allocations: 157.5 kB / 1.368 GB, free: 8.727 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.3862, allocations: 37.64 kB / 1.368 GB, free: 8.684 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.3863, allocations: 120.5 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.3864, allocations: 67.38 kB / 1.369 GB, free: 8.496 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.337e-05/0.3864, allocations: 41.7 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3866, allocations: 326.8 kB / 1.369 GB, free: 8.121 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.3868, allocations: 63.97 kB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.387, allocations: 95.55 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003524/0.3874, allocations: 143.5 kB / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3874, allocations: 0 / 1.369 GB, free: 7.816 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000511/0.3879, allocations: 219.6 kB / 1.369 GB, free: 7.598 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3879, allocations: 8 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3879, allocations: 0 / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.3879, allocations: 0 / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.3881, allocations: 51.94 kB / 1.37 GB, free: 7.539 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3882, allocations: 3.938 kB / 1.37 GB, free: 7.535 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.3883, allocations: 35.81 kB / 1.37 GB, free: 7.5 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.3883, allocations: 4 kB / 1.37 GB, free: 7.496 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.0001359/0.3885, allocations: 129.8 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.3885, allocations: 11.91 kB / 1.37 GB, free: 7.348 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004654/0.389, allocations: 198.6 kB / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.389, allocations: 0 / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.389, allocations: 0 / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.389, allocations: 0 / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009639/0.3899, allocations: 0.5413 MB / 1.37 GB, free: 6.535 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3899, allocations: 4.188 kB / 1.37 GB, free: 6.531 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.3901, allocations: 35.92 kB / 1.37 GB, free: 6.496 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.3901, allocations: 7.938 kB / 1.37 GB, free: 6.488 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.3902, allocations: 11.98 kB / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3902, allocations: 0 / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3902, allocations: 4 kB / 1.37 GB, free: 6.473 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006487/0.3908, allocations: 374.8 kB / 1.371 GB, free: 6.074 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.342e-05/0.3908, allocations: 27.78 kB / 1.371 GB, free: 6.047 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.3909, allocations: 12.03 kB / 1.371 GB, free: 6.035 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.391, allocations: 15.98 kB / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.3911, allocations: 19.97 kB / 1.371 GB, free: 6 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.3911, allocations: 11.94 kB / 1.371 GB, free: 5.988 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001201/0.3912, allocations: 119.8 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3912, allocations: 0 / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002843/0.3915, allocations: 31.95 kB / 1.371 GB, free: 5.84 MB / 1.061 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.0009749/0.3925, allocations: 0.9203 MB / 1.372 GB, free: 4.875 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004666/0.393, allocations: 155.9 kB / 1.372 GB, free: 4.723 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.393, allocations: 0 / 1.372 GB, free: 4.723 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.3932, allocations: 88.09 kB / 1.372 GB, free: 4.637 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.3935, allocations: 29.95 kB / 1.372 GB, free: 4.609 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.3966, allocations: 2.137 MB / 1.374 GB, free: 2.359 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.3967, allocations: 108.2 kB / 1.374 GB, free: 2.23 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.891e-05/0.3968, allocations: 17.42 kB / 1.374 GB, free: 2.215 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3969, allocations: 55.41 kB / 1.375 GB, free: 2.16 MB / 1.061 GB Notification: Performance of SimCode: time 9.91e-07/0.3969, allocations: 0 / 1.375 GB, free: 2.16 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.4321, allocations: 4.253 MB / 1.379 GB, free: 14.06 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.18, allocations: 13.23 kB / 1.379 GB, free: 14.05 MB / 1.076 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.260921578854322]