Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.001927/0.001927, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00162/0.00162, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.77 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.586/3.586, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") [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.002104/0.002104, allocations: 68.72 kB / 1.186 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4791/0.4812, allocations: 181.9 MB / 1.364 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002198/0.4834, allocations: 0.7324 MB / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.4851, allocations: 1.098 MB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.4851, allocations: 0 / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.264e-05/0.4851, allocations: 3.938 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.812e-05/0.4852, allocations: 15.86 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.4856, allocations: 55.81 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.4857, allocations: 67.78 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.4858, allocations: 16.17 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.553e-05/0.4859, allocations: 27.86 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.148e-05/0.486, allocations: 39.83 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.486, allocations: 8 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.594e-05/0.4861, allocations: 12 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.4861, allocations: 19.92 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.236e-05/0.4861, allocations: 23.92 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.4863, allocations: 87.5 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4863, allocations: 0 / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4863, allocations: 0 / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.523e-06/0.4863, allocations: 3.938 kB / 1.366 GB, free: 11.34 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006066/0.487, allocations: 310 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.487, allocations: 8.031 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.487, allocations: 12.89 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.4872, allocations: 114.5 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.4872, allocations: 4.375 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.4872, allocations: 8.375 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.4874, allocations: 73.91 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.4874, allocations: 0 / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.4875, allocations: 0 / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.4875, allocations: 0 / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.4876, allocations: 43.95 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006556/0.4883, allocations: 264.3 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.4885, allocations: 50.55 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.4886, allocations: 24.97 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.4886, allocations: 0 / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.4889, allocations: 79.42 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.4889, allocations: 7.938 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004501/0.4893, allocations: 133.6 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.4894, allocations: 51.41 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.4895, allocations: 129.8 kB / 1.367 GB, free: 9.914 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.4895, allocations: 29.7 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.4896, allocations: 84.14 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.4896, allocations: 15.91 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.385e-05/0.4897, allocations: 29.7 kB / 1.367 GB, free: 9.742 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4898, allocations: 326.8 kB / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.49, allocations: 35.91 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.4901, allocations: 77.86 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.4904, allocations: 109.9 kB / 1.368 GB, free: 9.152 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4904, allocations: 0 / 1.368 GB, free: 9.152 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003284/0.4907, allocations: 129.5 kB / 1.368 GB, free: 9.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4907, allocations: 8 kB / 1.368 GB, free: 9.012 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4907, allocations: 4.156 kB / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.4907, allocations: 8 kB / 1.368 GB, free: 9 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.4909, allocations: 19.98 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4909, allocations: 0 / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.991e-05/0.491, allocations: 19.88 kB / 1.368 GB, free: 8.961 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.491, allocations: 4 kB / 1.368 GB, free: 8.957 MB / 1.061 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.0001152/0.4911, allocations: 121.7 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/0.4911, allocations: 15.94 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.154e-05/0.4912, allocations: 8.375 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.4912, allocations: 4 kB / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4912, allocations: 4 kB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4912, allocations: 0 / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.4916, allocations: 314.1 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4916, allocations: 4 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.506e-05/0.4917, allocations: 7.984 kB / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4917, allocations: 0 / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.4917, allocations: 0 / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4917, allocations: 0 / 1.369 GB, free: 8.438 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4917, allocations: 8 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.492, allocations: 203.4 kB / 1.369 GB, free: 8.215 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.497e-05/0.4921, allocations: 11.89 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.4921, allocations: 0 / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.4922, allocations: 7.984 kB / 1.369 GB, free: 8.195 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.4922, allocations: 11.88 kB / 1.369 GB, free: 8.184 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.4923, allocations: 3.984 kB / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.987e-05/0.4923, allocations: 99.22 kB / 1.369 GB, free: 8.082 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4923, allocations: 0 / 1.369 GB, free: 8.082 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002653/0.4926, allocations: 19.98 kB / 1.369 GB, free: 8.062 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: 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.0001688/0.4928, allocations: 103.2 kB / 1.369 GB, free: 7.953 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.4931, allocations: 79.88 kB / 1.369 GB, free: 7.875 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4931, allocations: 0 / 1.369 GB, free: 7.875 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.4932, allocations: 32.36 kB / 1.369 GB, free: 7.844 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.4935, allocations: 18.33 kB / 1.369 GB, free: 7.828 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004054/0.4939, allocations: 158 kB / 1.369 GB, free: 7.645 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.109e-05/0.494, allocations: 79.27 kB / 1.369 GB, free: 7.547 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.478e-05/0.494, allocations: 4 kB / 1.369 GB, free: 7.543 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.405e-05/0.494, allocations: 11.44 kB / 1.369 GB, free: 7.531 MB / 1.061 GB Notification: Performance of SimCode: time 5.81e-07/0.494, allocations: 0 / 1.369 GB, free: 7.531 MB / 1.061 GB Notification: Performance of Templates: time 0.004008/0.4981, allocations: 1.072 MB / 1.37 GB, free: 6.52 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.981221148744226]