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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001504/0.001504, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003107/0.003106, allocations: 194.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.626/1.626, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.956/2.956, allocations: 472.6 MB / 0.7451 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 65.11 kB / 0.9121 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.401, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002154/0.4032, allocations: 0.7457 MB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001451/0.4047, allocations: 1.079 MB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.91e-05/0.4047, allocations: 3.938 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.396e-05/0.4048, allocations: 7.922 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.353e-05/0.4049, allocations: 11.88 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.4052, allocations: 47.89 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.4053, allocations: 67.78 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.4055, allocations: 32.09 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.231e-05/0.4055, allocations: 31.91 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.668e-05/0.4056, allocations: 31.84 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.4056, allocations: 8 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.4057, allocations: 19.98 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.4058, allocations: 11.98 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.41e-05/0.4058, allocations: 39.78 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.406, allocations: 67.81 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.406, allocations: 4 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.194e-06/0.406, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.447e-06/0.406, allocations: 4 kB / 1.07 GB, free: 8.199 MB / 0.8262 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.0006404/0.4067, allocations: 377.9 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.4067, allocations: 11.97 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.4068, allocations: 16.77 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.4069, allocations: 176.2 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.4069, allocations: 4.375 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.407, allocations: 8.375 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.4072, allocations: 70.22 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4072, allocations: 7.922 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.4072, allocations: 0 / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4072, allocations: 0 / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.4074, allocations: 47.89 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.4081, allocations: 316.8 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.4083, allocations: 58.58 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.4084, allocations: 32.95 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.4084, allocations: 0 / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.4087, allocations: 87.27 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.4087, allocations: 0 / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004343/0.4091, allocations: 121.9 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.4092, allocations: 59.33 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.4093, allocations: 121.8 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.4093, allocations: 25.7 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.4094, allocations: 100.1 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.4094, allocations: 15.75 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.4095, allocations: 29.7 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4096, allocations: 322.8 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.4097, allocations: 27.97 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.4099, allocations: 78 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.4101, allocations: 109.8 kB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4101, allocations: 0 / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000296/0.4104, allocations: 129.4 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.4105, allocations: 9.938 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.4105, allocations: 11.97 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4105, allocations: 4 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.4106, allocations: 15.98 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.4107, allocations: 3.938 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.099e-05/0.4108, allocations: 15.98 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.4108, allocations: 8 kB / 1.073 GB, free: 5.562 MB / 0.8262 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 9.047e-05/0.4109, allocations: 119.5 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.4109, allocations: 11.84 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.4109, allocations: 12.38 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4109, allocations: 4 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4109, allocations: 0 / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.411, allocations: 0 / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004697/0.4114, allocations: 374.3 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4114, allocations: 4 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.796e-05/0.4115, allocations: 11.98 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.4115, allocations: 0 / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.4115, allocations: 0 / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.4115, allocations: 3.938 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4115, allocations: 4 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.4118, allocations: 199.4 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.4119, allocations: 84.95 kB / 1.074 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.4119, allocations: 12 kB / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.412, allocations: 11.92 kB / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.4121, allocations: 0 / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.4121, allocations: 7.984 kB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.19e-05/0.4122, allocations: 91.88 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4122, allocations: 3.938 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002551/0.4124, allocations: 19.98 kB / 1.074 GB, free: 4.508 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 (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.0001934/0.4126, allocations: 107.8 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002756/0.4129, allocations: 83.81 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4129, allocations: 0 / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.413, allocations: 27.98 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.4133, allocations: 18.86 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00035/0.4137, allocations: 163.5 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.4139, allocations: 0.6885 MB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.443e-05/0.414, allocations: 11.77 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.414, allocations: 19.44 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of SimCode: time 1.433e-06/0.414, allocations: 0 / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of Templates: time 0.003508/0.4175, allocations: 0.9756 MB / 1.076 GB, free: 2.402 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