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.001725/0.001725, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.002415/0.002415, allocations: 214.5 kB / 22.24 MB, free: 5.258 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.562/1.562, allocations: 230.6 MB / 256 MB, free: 7.801 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.58/3.58, allocations: 0.5107 GB / 0.8158 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.002057/0.002057, allocations: 63.94 kB / 1.186 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.466, allocations: 181.9 MB / 1.364 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002178/0.4681, allocations: 0.6648 MB / 1.364 GB, free: 12.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.4698, allocations: 1.077 MB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.268e-05/0.4699, allocations: 0 / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.4699, allocations: 3.938 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.915e-05/0.47, allocations: 15.91 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.4703, allocations: 43.84 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.4704, allocations: 47.84 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.4705, allocations: 11.98 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.265e-05/0.4706, allocations: 19.94 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.4707, allocations: 23.91 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.4707, allocations: 4 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.545e-05/0.4708, allocations: 23.97 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.36e-05/0.4708, allocations: 7.938 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.284e-05/0.4708, allocations: 15.92 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.471, allocations: 59.78 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.4711, allocations: 4 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.285e-06/0.4711, allocations: 0 / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.4711, allocations: 3.938 kB / 1.366 GB, free: 11.54 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.000701/0.4718, allocations: 290.2 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.4718, allocations: 12.03 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.948e-05/0.4719, allocations: 4.922 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.472, allocations: 118.4 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.4721, allocations: 4.375 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.4721, allocations: 384 / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.4723, allocations: 70.16 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4723, allocations: 192 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.4723, allocations: 7.938 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.4723, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.4725, allocations: 43.95 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.4729, allocations: 212.5 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.4731, allocations: 54.53 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.4732, allocations: 33.95 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.4733, allocations: 8 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.4735, allocations: 75.38 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.4735, allocations: 0 / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004241/0.4739, allocations: 125.5 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.4739, allocations: 55.41 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.63e-05/0.474, allocations: 101.9 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.4741, allocations: 29.69 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.4741, allocations: 88.14 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.4741, allocations: 11.91 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.4742, allocations: 29.7 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4743, allocations: 310.8 kB / 1.367 GB, free: 9.715 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.964e-05/0.4744, allocations: 23.97 kB / 1.367 GB, free: 9.691 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.4745, allocations: 51.42 kB / 1.367 GB, free: 9.629 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.4747, allocations: 79.33 kB / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4747, allocations: 4 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002636/0.475, allocations: 109.4 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.475, allocations: 4 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.475, allocations: 4 kB / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.475, allocations: 0 / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.4751, allocations: 16.08 kB / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.4752, allocations: 4 kB / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.486e-05/0.4752, allocations: 11.92 kB / 1.368 GB, free: 9.383 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.4752, allocations: 8 kB / 1.368 GB, free: 9.375 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.884e-05/0.4753, allocations: 113.8 kB / 1.368 GB, free: 9.254 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.4753, allocations: 11.89 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.4756, allocations: 102 kB / 1.368 GB, free: 9.133 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.4756, allocations: 0 / 1.368 GB, free: 9.133 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4756, allocations: 7.938 kB / 1.368 GB, free: 9.125 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.4756, allocations: 7.938 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004513/0.4761, allocations: 298.7 kB / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.4761, allocations: 0 / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.877e-05/0.4762, allocations: 12.05 kB / 1.368 GB, free: 8.777 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.4762, allocations: 4 kB / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.4762, allocations: 0 / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.4762, allocations: 0 / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4762, allocations: 0 / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.4765, allocations: 203.3 kB / 1.368 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-06/0.4765, allocations: 3.984 kB / 1.368 GB, free: 8.555 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.4765, allocations: 8 kB / 1.368 GB, free: 8.547 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.472e-05/0.4766, allocations: 7.984 kB / 1.368 GB, free: 8.539 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.4766, allocations: 4 kB / 1.368 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.4767, allocations: 0 / 1.368 GB, free: 8.535 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.49e-05/0.4767, allocations: 87.27 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4767, allocations: 0 / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002417/0.477, allocations: 12 kB / 1.369 GB, free: 8.438 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.0001488/0.4771, allocations: 103.2 kB / 1.369 GB, free: 8.328 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002738/0.4774, allocations: 71.81 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4774, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.4775, allocations: 23.98 kB / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.4778, allocations: 12.17 kB / 1.369 GB, free: 8.223 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003637/0.4781, allocations: 138.2 kB / 1.369 GB, free: 8.062 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.559e-05/0.4782, allocations: 77.3 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.303e-05/0.4782, allocations: 144 / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/0.4783, allocations: 11.44 kB / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of SimCode: time 5.01e-07/0.4783, allocations: 0 / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of Templates: time 0.003701/0.482, allocations: 0.8547 MB / 1.37 GB, free: 7.117 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/jenkins/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: 9.875745644792914]