Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 191.4 kB / 22.23 MB, free: 5.102 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 225.6 MB / 251 MB, free: 13.02 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.875/2.875, allocations: 476.7 MB / 0.7646 GB, free: 9.945 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 63.91 kB / 1.11 GB, free: 6.355 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.023/1.025, allocations: 168.8 MB / 1.274 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002414/1.027, allocations: 0.7536 MB / 1.275 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001661/1.029, allocations: 1.07 MB / 1.276 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.631e-05/1.029, allocations: 4 kB / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.773e-05/1.029, allocations: 11.88 kB / 1.276 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001128/1.029, allocations: 19.84 kB / 1.276 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/1.029, allocations: 43.84 kB / 1.276 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001604/1.029, allocations: 79.77 kB / 1.276 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/1.03, allocations: 12.17 kB / 1.276 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/1.03, allocations: 27.92 kB / 1.276 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.266e-05/1.03, allocations: 35.83 kB / 1.276 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/1.03, allocations: 8 kB / 1.276 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.784e-05/1.03, allocations: 19.98 kB / 1.276 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.231e-05/1.03, allocations: 19.92 kB / 1.276 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.205e-05/1.03, allocations: 23.88 kB / 1.276 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/1.03, allocations: 86.06 kB / 1.277 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/1.03, allocations: 0 / 1.277 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.076e-06/1.03, allocations: 3.938 kB / 1.277 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.554e-06/1.03, allocations: 0 / 1.277 GB, free: 2.008 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006729/1.031, allocations: 314 kB / 1.277 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/1.031, allocations: 11.98 kB / 1.277 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/1.031, allocations: 8.891 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/1.031, allocations: 134.3 kB / 1.277 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/1.031, allocations: 4.375 kB / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.031, allocations: 8.375 kB / 1.277 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/1.031, allocations: 62.23 kB / 1.277 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/1.031, allocations: 7.922 kB / 1.277 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/1.031, allocations: 3.938 kB / 1.277 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/1.031, allocations: 0 / 1.277 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/1.032, allocations: 43.97 kB / 1.277 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007578/1.032, allocations: 287.8 kB / 1.277 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/1.032, allocations: 54.58 kB / 1.277 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.752e-05/1.033, allocations: 24.97 kB / 1.277 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/1.033, allocations: 8 kB / 1.277 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/1.033, allocations: 79.33 kB / 1.278 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/1.033, allocations: 0 / 1.278 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004436/1.033, allocations: 129.5 kB / 1.278 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/1.033, allocations: 59.41 kB / 1.278 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/1.033, allocations: 121.8 kB / 1.278 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/1.033, allocations: 33.7 kB / 1.278 GB, free: 492 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/1.034, allocations: 84.14 kB / 1.278 GB, free: 404 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/1.034, allocations: 19.84 kB / 1.278 GB, free: 384 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/1.034, allocations: 25.7 kB / 1.278 GB, free: 352 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001896/1.034, allocations: 326.8 kB / 1.278 GB, free: 16 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/1.034, allocations: 27.97 kB / 1.278 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/1.034, allocations: 81.92 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/1.034, allocations: 109.8 kB / 1.278 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.034, allocations: 0 / 1.278 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003055/1.035, allocations: 129.5 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.035, allocations: 8 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.035, allocations: 0 / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/1.035, allocations: 4 kB / 1.279 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/1.035, allocations: 19.92 kB / 1.279 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/1.035, allocations: 7.938 kB / 1.279 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.314e-05/1.035, allocations: 23.92 kB / 1.279 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/1.035, allocations: 4.219 kB / 1.279 GB, free: 15.56 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001079/1.035, allocations: 125.8 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.339e-05/1.035, allocations: 3.953 kB / 1.279 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/1.035, allocations: 16.36 kB / 1.279 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/1.035, allocations: 0 / 1.279 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.035, allocations: 0 / 1.279 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/1.035, allocations: 0 / 1.279 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005842/1.036, allocations: 353.7 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.036, allocations: 0 / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.764e-05/1.036, allocations: 4 kB / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/1.036, allocations: 0 / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/1.036, allocations: 4 kB / 1.279 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.856e-06/1.036, allocations: 11.86 kB / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.036, allocations: 0 / 1.279 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/1.036, allocations: 203.5 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.519e-05/1.036, allocations: 7.953 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/1.036, allocations: 3.984 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.981e-05/1.036, allocations: 7.938 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/1.036, allocations: 7.984 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/1.036, allocations: 4 kB / 1.279 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.674e-05/1.036, allocations: 91.27 kB / 1.279 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/1.036, allocations: 4 kB / 1.279 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000252/1.037, allocations: 16 kB / 1.28 GB, free: 14.63 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001743/1.037, allocations: 116.8 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000274/1.037, allocations: 71.89 kB / 1.28 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/1.037, allocations: 0 / 1.28 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/1.037, allocations: 32.41 kB / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/1.037, allocations: 12 kB / 1.28 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/1.038, allocations: 166 kB / 1.28 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/1.038, allocations: 0.6923 MB / 1.281 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.566e-05/1.038, allocations: 7.984 kB / 1.281 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/1.038, allocations: 15.44 kB / 1.281 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/1.038, allocations: 4 kB / 1.281 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.004209/1.043, allocations: 0.9972 MB / 1.282 GB, free: 12.47 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start [Calling sys.exit(0), Time elapsed: 9.545846721157432]