Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00183/0.00183, allocations: 107.9 kB / 16.45 MB, free: 6.453 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.002378/0.002378, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.545/1.545, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.171/3.171, allocations: 0.49 GB / 0.7916 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_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.002056/0.002056, allocations: 72.16 kB / 1.149 GB, free: 26.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.381, allocations: 176.1 MB / 1.321 GB, free: 3.254 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002578/0.3836, allocations: 1.071 MB / 1.322 GB, free: 2.18 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.3852, allocations: 1.038 MB / 1.323 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.3854, allocations: 7.938 kB / 1.323 GB, free: 1.121 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3855, allocations: 15.8 kB / 1.323 GB, free: 1.105 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.88e-05/0.3856, allocations: 23.75 kB / 1.323 GB, free: 1.082 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.386, allocations: 71.84 kB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.3862, allocations: 180 kB / 1.323 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.3864, allocations: 64.27 kB / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.3865, allocations: 71.78 kB / 1.323 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3867, allocations: 83.59 kB / 1.323 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.3867, allocations: 19.94 kB / 1.323 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-05/0.3868, allocations: 16 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.3868, allocations: 43.84 kB / 1.324 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.902e-05/0.3869, allocations: 79.58 kB / 1.324 GB, free: 472 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.3872, allocations: 179.1 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3872, allocations: 4 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3872, allocations: 0 / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3872, allocations: 0 / 1.324 GB, free: 288 kB / 1.014 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.001/0.3882, allocations: 494.6 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3883, allocations: 11.98 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.462e-05/0.3884, allocations: 46.73 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.3885, allocations: 24.8 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.3888, allocations: 226.7 kB / 1.325 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.3889, allocations: 16.36 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.3889, allocations: 20.36 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.3893, allocations: 153.4 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3893, allocations: 0 / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.3893, allocations: 8 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.3893, allocations: 4 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.3896, allocations: 103.9 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.3909, allocations: 0.5314 MB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.3913, allocations: 142.6 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.3915, allocations: 84.73 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.3916, allocations: 7.906 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.3918, allocations: 125.1 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.853e-06/0.3918, allocations: 4 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0006178/0.3925, allocations: 219 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.3925, allocations: 55.41 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.3927, allocations: 169.7 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.3927, allocations: 29.7 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.3928, allocations: 120.5 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.386e-05/0.3929, allocations: 67.42 kB / 1.326 GB, free: 13.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.393, allocations: 41.7 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3931, allocations: 330.8 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.3934, allocations: 63.97 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3936, allocations: 94.81 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.394, allocations: 143.9 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.394, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005477/0.3945, allocations: 213.4 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3946, allocations: 4 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3946, allocations: 0 / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3946, allocations: 8.031 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.3948, allocations: 39.97 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3948, allocations: 7.938 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.395, allocations: 19.88 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.395, allocations: 8 kB / 1.327 GB, free: 12.47 MB / 1.029 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.0001287/0.3951, allocations: 129.8 kB / 1.327 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.19e-05/0.3951, allocations: 15.91 kB / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004691/0.3956, allocations: 198.7 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.3956, allocations: 4 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3956, allocations: 0 / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3956, allocations: 0 / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009353/0.3966, allocations: 0.5828 MB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3966, allocations: 4 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3968, allocations: 35.97 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.3968, allocations: 7.938 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3968, allocations: 11.94 kB / 1.328 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3968, allocations: 12.12 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3968, allocations: 3.938 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.3975, allocations: 386.5 kB / 1.329 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.3975, allocations: 92.95 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.3976, allocations: 8 kB / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.3977, allocations: 16.02 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.3978, allocations: 19.98 kB / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.3978, allocations: 15.98 kB / 1.329 GB, free: 10.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.69e-05/0.3979, allocations: 117 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3979, allocations: 0 / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002802/0.3982, allocations: 39.88 kB / 1.329 GB, free: 10.65 MB / 1.029 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.0009777/0.3992, allocations: 0.9236 MB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004355/0.3996, allocations: 158.7 kB / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3996, allocations: 0 / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.3998, allocations: 82.47 kB / 1.33 GB, free: 9.453 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.4002, allocations: 30.25 kB / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.4033, allocations: 2.143 MB / 1.332 GB, free: 7.156 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.4036, allocations: 0.7205 MB / 1.333 GB, free: 6.406 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.552e-05/0.4037, allocations: 17.42 kB / 1.333 GB, free: 6.391 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.4038, allocations: 55.41 kB / 1.333 GB, free: 6.336 MB / 1.029 GB Notification: Performance of SimCode: time 4.21e-07/0.4038, allocations: 0 / 1.333 GB, free: 6.336 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03607/0.4399, allocations: 3.643 MB / 1.336 GB, free: 2.801 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.166/8.606, allocations: 3.984 kB / 1.336 GB, free: 2.797 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-07 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.302140297135338]