Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001521/0.001521, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001779/0.001779, allocations: 212.1 kB / 22.24 MB, free: 4.855 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.903/2.903, allocations: 476 MB / 0.7699 GB, free: 4.766 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [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.002076/0.002076, allocations: 68.08 kB / 1.117 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.396, allocations: 169.9 MB / 1.283 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003281/0.3993, allocations: 1.021 MB / 1.284 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002131/0.4014, allocations: 1.018 MB / 1.285 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.4017, allocations: 3.938 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.4019, allocations: 19.8 kB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.402, allocations: 27.73 kB / 1.285 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.4025, allocations: 70.48 kB / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003769/0.4029, allocations: 180.1 kB / 1.285 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.4031, allocations: 60.39 kB / 1.285 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.4033, allocations: 75.7 kB / 1.285 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.4034, allocations: 67.61 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.4035, allocations: 16 kB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.804e-05/0.4035, allocations: 27.94 kB / 1.286 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.97e-05/0.4036, allocations: 43.89 kB / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.622e-05/0.4037, allocations: 55.67 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.404, allocations: 187.2 kB / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.404, allocations: 3.938 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.299e-06/0.4041, allocations: 3.984 kB / 1.286 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.4041, allocations: 4 kB / 1.286 GB, free: 9.062 MB / 0.9825 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.001071/0.4051, allocations: 422.4 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.4052, allocations: 12.03 kB / 1.286 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.4054, allocations: 24.8 kB / 1.286 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.4058, allocations: 169 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.4058, allocations: 8.375 kB / 1.286 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.4059, allocations: 16.38 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.4063, allocations: 183.3 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4063, allocations: 0 / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.4063, allocations: 8 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4063, allocations: 7.984 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.4066, allocations: 111.9 kB / 1.287 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.4078, allocations: 432 kB / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.4083, allocations: 138.7 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.4085, allocations: 72.81 kB / 1.287 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.4085, allocations: 4 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/0.4088, allocations: 152.9 kB / 1.288 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 2.334e-06/0.4088, allocations: 0 / 1.288 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.000615/0.4094, allocations: 219.2 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.4094, allocations: 59.34 kB / 1.288 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.4096, allocations: 152.8 kB / 1.288 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.4096, allocations: 29.7 kB / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4097, allocations: 120.4 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.646e-05/0.4098, allocations: 71.41 kB / 1.288 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.4099, allocations: 45.7 kB / 1.288 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4101, allocations: 318.8 kB / 1.289 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.4103, allocations: 67.95 kB / 1.289 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.4105, allocations: 89.67 kB / 1.289 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.4109, allocations: 149.5 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4109, allocations: 0 / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000516/0.4114, allocations: 219.8 kB / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.4114, allocations: 8 kB / 1.289 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.4114, allocations: 4.031 kB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.4115, allocations: 0 / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.4117, allocations: 35.98 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.4117, allocations: 3.984 kB / 1.289 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.4118, allocations: 23.88 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.4118, allocations: 8 kB / 1.289 GB, free: 5.551 MB / 0.9825 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.0001378/0.412, allocations: 129.7 kB / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.412, allocations: 11.95 kB / 1.289 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.4125, allocations: 196.8 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4125, allocations: 4 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4125, allocations: 0 / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4125, allocations: 0 / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008643/0.4133, allocations: 0.5067 MB / 1.29 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4133, allocations: 0 / 1.29 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.4135, allocations: 35.97 kB / 1.29 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.4135, allocations: 4 kB / 1.29 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.4135, allocations: 15.88 kB / 1.29 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.4135, allocations: 3.938 kB / 1.29 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.4135, allocations: 4 kB / 1.29 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006559/0.4142, allocations: 380.6 kB / 1.29 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.4142, allocations: 23.78 kB / 1.29 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.4143, allocations: 8 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.4144, allocations: 19.92 kB / 1.29 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.521e-05/0.4145, allocations: 23.97 kB / 1.29 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.4145, allocations: 7.984 kB / 1.29 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.71e-05/0.4146, allocations: 107.3 kB / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4146, allocations: 0 / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002942/0.4149, allocations: 35.95 kB / 1.291 GB, free: 3.949 MB / 0.9825 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.000156/0.4151, allocations: 111.1 kB / 1.291 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004576/0.4155, allocations: 149.9 kB / 1.291 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4155, allocations: 0 / 1.291 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.4157, allocations: 88.27 kB / 1.291 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.4161, allocations: 24.45 kB / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008055/0.4169, allocations: 390.7 kB / 1.291 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.417, allocations: 112.2 kB / 1.291 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.823e-05/0.4171, allocations: 17.5 kB / 1.291 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.4171, allocations: 23.42 kB / 1.291 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of SimCode: time 6.81e-07/0.4172, allocations: 0 / 1.291 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of Templates: time 0.005843/0.423, allocations: 1.852 MB / 1.293 GB, free: 1.176 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 9.706016005948186]