Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001665/0.001665, allocations: 104.4 kB / 19.71 MB, free: 2.125 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.00158/0.00158, allocations: 215.5 kB / 23 MB, free: 4.945 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.314/3.314, allocations: 0.5107 GB / 0.8166 GB, free: 17.8 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.002081/0.002081, allocations: 70.64 kB / 1.187 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3408, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002046/0.3428, allocations: 0.6619 MB / 1.365 GB, free: 12.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3443, allocations: 1.081 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.792e-05/0.3444, allocations: 4 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.049e-05/0.3444, allocations: 3.938 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.847e-05/0.3444, allocations: 11.86 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.3447, allocations: 51.83 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.3448, allocations: 39.92 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3449, allocations: 11.98 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.56e-05/0.345, allocations: 19.88 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.3451, allocations: 27.89 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.3451, allocations: 4 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.145e-05/0.3451, allocations: 19.98 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.3452, allocations: 11.94 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.854e-05/0.3452, allocations: 15.92 kB / 1.367 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.3454, allocations: 59.78 kB / 1.367 GB, free: 11.56 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3454, allocations: 0 / 1.367 GB, free: 11.56 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3454, allocations: 4 kB / 1.367 GB, free: 11.55 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.3454, allocations: 0 / 1.367 GB, free: 11.55 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006392/0.346, allocations: 286.2 kB / 1.367 GB, free: 11.24 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.3461, allocations: 12.03 kB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.317e-05/0.3461, allocations: 0.9375 kB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3463, allocations: 118.5 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.3463, allocations: 384 / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.3463, allocations: 8.312 kB / 1.367 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.3465, allocations: 70.2 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3465, allocations: 192 / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.3465, allocations: 3.938 kB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3465, allocations: 0 / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.3467, allocations: 47.89 kB / 1.367 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004166/0.3471, allocations: 212.5 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.3473, allocations: 54.48 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3474, allocations: 33.95 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.3474, allocations: 4 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.3476, allocations: 75.38 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.3476, allocations: 0 / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004117/0.348, allocations: 129.5 kB / 1.368 GB, free: 10.4 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.3481, allocations: 55.41 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.686e-05/0.3482, allocations: 101.9 kB / 1.368 GB, free: 10.22 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.3482, allocations: 25.7 kB / 1.368 GB, free: 10.19 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.3483, allocations: 88.12 kB / 1.368 GB, free: 10.1 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.3483, allocations: 11.91 kB / 1.368 GB, free: 10.09 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.3483, allocations: 29.7 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.3485, allocations: 310.8 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.921e-05/0.3486, allocations: 27.97 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.3487, allocations: 51.42 kB / 1.368 GB, free: 9.652 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.3489, allocations: 75.33 kB / 1.368 GB, free: 9.566 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3489, allocations: 7.938 kB / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000263/0.3492, allocations: 109.5 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3492, allocations: 4 kB / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3492, allocations: 4 kB / 1.368 GB, free: 9.438 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3492, allocations: 0 / 1.368 GB, free: 9.438 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3493, allocations: 19.92 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.3493, allocations: 0 / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.678e-05/0.3494, allocations: 11.92 kB / 1.368 GB, free: 9.406 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.3494, allocations: 8 kB / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.522e-05/0.3495, allocations: 117.9 kB / 1.369 GB, free: 9.273 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.3495, allocations: 3.953 kB / 1.369 GB, free: 9.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002979/0.3498, allocations: 110 kB / 1.369 GB, free: 9.152 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3498, allocations: 0 / 1.369 GB, free: 9.152 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3498, allocations: 4 kB / 1.369 GB, free: 9.148 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3498, allocations: 4.031 kB / 1.369 GB, free: 9.145 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004399/0.3503, allocations: 294.8 kB / 1.369 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3503, allocations: 3.938 kB / 1.369 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.973e-05/0.3503, allocations: 15.98 kB / 1.369 GB, free: 8.801 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3503, allocations: 3.938 kB / 1.369 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.3503, allocations: 4.062 kB / 1.369 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3503, allocations: 0 / 1.369 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3503, allocations: 0 / 1.369 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.3506, allocations: 195.4 kB / 1.369 GB, free: 8.586 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.047e-06/0.3506, allocations: 3.984 kB / 1.369 GB, free: 8.582 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.3507, allocations: 4 kB / 1.369 GB, free: 8.578 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.716e-05/0.3508, allocations: 15.98 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.3508, allocations: 4 kB / 1.369 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3508, allocations: 0 / 1.369 GB, free: 8.559 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.314e-05/0.3509, allocations: 87.27 kB / 1.369 GB, free: 8.473 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3509, allocations: 3.938 kB / 1.369 GB, free: 8.469 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002418/0.3511, allocations: 12 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001381/0.3513, allocations: 95.25 kB / 1.369 GB, free: 8.355 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002648/0.3515, allocations: 75.81 kB / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3515, allocations: 0 / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3516, allocations: 23.98 kB / 1.37 GB, free: 8.258 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3519, allocations: 21.75 kB / 1.37 GB, free: 8.238 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003542/0.3523, allocations: 162.2 kB / 1.37 GB, free: 8.051 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.26e-05/0.3523, allocations: 71.33 kB / 1.37 GB, free: 7.961 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.049e-05/0.3524, allocations: 11.62 kB / 1.37 GB, free: 7.949 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.3524, allocations: 4 kB / 1.37 GB, free: 7.945 MB / 1.061 GB Notification: Performance of Templates: time 0.002563/0.3549, allocations: 0.8791 MB / 1.371 GB, free: 7.07 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.24864405579865]