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.001601/0.001601, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.002034/0.002034, allocations: 217.8 kB / 23.01 MB, free: 4.609 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 8.035 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.17/3.17, allocations: 0.49 GB / 0.7958 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 177] 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: 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_12_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_12_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.003548/0.003548, allocations: 66.06 kB / 1.155 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.354, allocations: 176.1 MB / 1.327 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002354/0.3564, allocations: 1.067 MB / 1.328 GB, free: 384 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.3579, allocations: 1.05 MB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.358, allocations: 0 / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.3581, allocations: 23.73 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.196e-05/0.3582, allocations: 11.81 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.3585, allocations: 79.78 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.3588, allocations: 191.9 kB / 1.33 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.359, allocations: 60.41 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.3591, allocations: 63.78 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.3592, allocations: 87.59 kB / 1.33 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.3592, allocations: 20 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.068e-05/0.3593, allocations: 20 kB / 1.33 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.972e-05/0.3594, allocations: 43.84 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.665e-05/0.3594, allocations: 67.59 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.3597, allocations: 191.1 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.3597, allocations: 0 / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.457e-06/0.3597, allocations: 3.984 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.628e-06/0.3597, allocations: 0 / 1.33 GB, free: 14.46 MB / 1.029 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.0008591/0.3606, allocations: 430.4 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3606, allocations: 8.031 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3607, allocations: 24.8 kB / 1.331 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.361, allocations: 162.8 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.3611, allocations: 12.38 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.3611, allocations: 16.38 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.3614, allocations: 165.5 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3614, allocations: 0 / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.3615, allocations: 8 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3615, allocations: 0 / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.3618, allocations: 107.9 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3629, allocations: 0.4915 MB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.3634, allocations: 150.6 kB / 1.332 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.3635, allocations: 80.75 kB / 1.332 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.3636, allocations: 4 kB / 1.332 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.3638, allocations: 120.8 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.3638, allocations: 0 / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0005747/0.3644, allocations: 230.6 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.3644, allocations: 51.41 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.3646, allocations: 156.2 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.3646, allocations: 29.7 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.615e-05/0.3647, allocations: 124.5 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.316e-05/0.3648, allocations: 67.42 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.3648, allocations: 41.7 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.365, allocations: 326.8 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.3652, allocations: 71.89 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.3654, allocations: 87.91 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.3658, allocations: 155.3 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3658, allocations: 0 / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005004/0.3663, allocations: 211.7 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3663, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.3663, allocations: 0 / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.3663, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.3665, allocations: 39.91 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3665, allocations: 12.03 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.3667, allocations: 23.88 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.3667, allocations: 4 kB / 1.333 GB, free: 10.9 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.0001267/0.3668, allocations: 137.7 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.3668, allocations: 15.91 kB / 1.334 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004476/0.3673, allocations: 188.2 kB / 1.334 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.3673, allocations: 4 kB / 1.334 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.3673, allocations: 0 / 1.334 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.3673, allocations: 3.984 kB / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000873/0.3682, allocations: 0.5569 MB / 1.334 GB, free: 9.918 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3682, allocations: 4 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.3684, allocations: 35.91 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3684, allocations: 11.88 kB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.3684, allocations: 8 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.3684, allocations: 0 / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3684, allocations: 4 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006103/0.369, allocations: 382.7 kB / 1.335 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-05/0.369, allocations: 27.81 kB / 1.335 GB, free: 9.422 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.3691, allocations: 4 kB / 1.335 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.3692, allocations: 15.98 kB / 1.335 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.716e-05/0.3693, allocations: 23.91 kB / 1.335 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.3693, allocations: 11.98 kB / 1.335 GB, free: 9.367 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.554e-05/0.3694, allocations: 121.6 kB / 1.335 GB, free: 9.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3694, allocations: 4 kB / 1.335 GB, free: 9.246 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002825/0.3697, allocations: 36 kB / 1.335 GB, free: 9.211 MB / 1.029 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.0001285/0.3698, allocations: 103.2 kB / 1.335 GB, free: 9.102 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004444/0.3703, allocations: 155.7 kB / 1.335 GB, free: 8.949 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3703, allocations: 4 kB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.3705, allocations: 83.89 kB / 1.335 GB, free: 8.863 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.3708, allocations: 26.17 kB / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007005/0.3715, allocations: 420 kB / 1.336 GB, free: 8.383 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.3719, allocations: 0.7243 MB / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.3719, allocations: 23.44 kB / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3719, allocations: 0 / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of Templates: time 0.004002/0.3759, allocations: 1.971 MB / 1.338 GB, free: 5.633 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 400] 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: 11.13922643600381]