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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009954/0.0009955, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.992/2.992, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003809/0.0003809, allocations: 10.84 kB / 0.9022 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3831, allocations: 159.6 MB / 1.058 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001017/0.3842, allocations: 473.8 kB / 1.058 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3856, allocations: 1.053 MB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.987e-05/0.3857, allocations: 0 / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.257e-05/0.3857, allocations: 7.922 kB / 1.06 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.783e-05/0.3858, allocations: 7.938 kB / 1.06 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.3861, allocations: 47.89 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001083/0.3862, allocations: 63.78 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.875e-05/0.3864, allocations: 16.17 kB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.828e-05/0.3864, allocations: 19.92 kB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.424e-05/0.3865, allocations: 31.84 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.3865, allocations: 0 / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.3866, allocations: 19.98 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.551e-05/0.3866, allocations: 7.969 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.006e-05/0.3867, allocations: 41.64 kB / 1.06 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.3868, allocations: 51.89 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3868, allocations: 0 / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3868, allocations: 0 / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3868, allocations: 0 / 1.06 GB, free: 3.441 MB / 0.8106 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.0006184/0.3875, allocations: 375.3 kB / 1.06 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3875, allocations: 12.03 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.12e-05/0.3876, allocations: 7.906 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.3877, allocations: 182.9 kB / 1.06 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3877, allocations: 0 / 1.06 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.3878, allocations: 15.94 kB / 1.06 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.388, allocations: 73.55 kB / 1.06 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.388, allocations: 0 / 1.06 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.388, allocations: 0 / 1.06 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.388, allocations: 4 kB / 1.06 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.3882, allocations: 55.95 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.3889, allocations: 332.7 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.3891, allocations: 58.55 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.3892, allocations: 32.97 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3892, allocations: 8 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.3894, allocations: 79.41 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.3894, allocations: 4 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004473/0.3899, allocations: 145.8 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.39, allocations: 51.41 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3901, allocations: 129.7 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.3901, allocations: 29.7 kB / 1.061 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.3902, allocations: 88.14 kB / 1.061 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.3902, allocations: 15.75 kB / 1.061 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-06/0.3902, allocations: 4 kB / 1.061 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3904, allocations: 322.8 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3905, allocations: 35.97 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.3907, allocations: 85.86 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.3908, allocations: 43.98 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3908, allocations: 0 / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003349/0.3912, allocations: 141.6 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3912, allocations: 4 kB / 1.062 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.3912, allocations: 4.078 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3913, allocations: 8 kB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.3914, allocations: 19.92 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3914, allocations: 7.984 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.823e-05/0.3915, allocations: 20.05 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.3916, allocations: 4 kB / 1.062 GB, free: 0.8477 MB / 0.8106 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.3917, allocations: 121.7 kB / 1.062 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.3917, allocations: 7.906 kB / 1.062 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.645e-05/0.3918, allocations: 8.375 kB / 1.062 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3918, allocations: 4 kB / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3918, allocations: 3.984 kB / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3918, allocations: 0 / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.3923, allocations: 382.4 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3923, allocations: 0 / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.237e-05/0.3924, allocations: 19.86 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3924, allocations: 4 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3924, allocations: 4 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3924, allocations: 0 / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3924, allocations: 4 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.3927, allocations: 211.4 kB / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.493e-05/0.3928, allocations: 88.95 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.3928, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.3929, allocations: 11.98 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.393, allocations: 7.969 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.393, allocations: 4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.541e-05/0.3931, allocations: 95.92 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3931, allocations: 3.938 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002631/0.3933, allocations: 16 kB / 1.063 GB, free: 15.77 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001843/0.3935, allocations: 115.5 kB / 1.063 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000271/0.3938, allocations: 88 kB / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3938, allocations: 0 / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3939, allocations: 39.97 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.3942, allocations: 15.94 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003548/0.3946, allocations: 173.5 kB / 1.063 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.3949, allocations: 0.6887 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.799e-05/0.3949, allocations: 4 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.945e-05/0.3949, allocations: 11.44 kB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.3949, allocations: 0 / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.003468/0.3984, allocations: 0.8459 MB / 1.065 GB, free: 13.76 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) 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) "" 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