Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.01041/0.01041, allocations: 168.4 kB / 16.26 MB, free: 6.66 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.553/1.553, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.967/2.967, allocations: 462.7 MB / 0.7364 GB, free: 244 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004164, allocations: 12.31 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.3989, allocations: 159.6 MB / 1.059 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001127/0.4, allocations: 486.7 kB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.4017, allocations: 1.081 MB / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.779e-05/0.4018, allocations: 3.938 kB / 1.06 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.4018, allocations: 0 / 1.06 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.4019, allocations: 3.938 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.4023, allocations: 43.89 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.4024, allocations: 67.84 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.4026, allocations: 16.17 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.191e-05/0.4027, allocations: 31.8 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.4027, allocations: 27.91 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.4028, allocations: 4 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.448e-05/0.4028, allocations: 11.98 kB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.449e-05/0.4029, allocations: 19.91 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.463e-05/0.4029, allocations: 53.56 kB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.4031, allocations: 71.73 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4031, allocations: 4 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.465e-06/0.4031, allocations: 0 / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.4031, allocations: 0 / 1.061 GB, free: 3.469 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.0006122/0.4038, allocations: 371.5 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.4038, allocations: 8.031 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.4039, allocations: 8.844 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.404, allocations: 180.2 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.404, allocations: 12.31 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.4041, allocations: 8.359 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.4043, allocations: 70.22 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.4044, allocations: 7.938 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.4044, allocations: 0 / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.4044, allocations: 0 / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.4046, allocations: 59.95 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007883/0.4054, allocations: 332.6 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.4056, allocations: 58.56 kB / 1.062 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.4057, allocations: 36.95 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.4058, allocations: 4 kB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.406, allocations: 87.39 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.4061, allocations: 3.938 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004909/0.4066, allocations: 149.8 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.4066, allocations: 55.41 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.4067, allocations: 117.8 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.4068, allocations: 29.7 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.4068, allocations: 96.12 kB / 1.062 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.4069, allocations: 15.73 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.4069, allocations: 21.7 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4071, allocations: 322.8 kB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.4072, allocations: 35.97 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.4073, allocations: 81.92 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.4076, allocations: 117.9 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4076, allocations: 0 / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003456/0.408, allocations: 149.3 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.408, allocations: 4 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.408, allocations: 0 / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.408, allocations: 8.219 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.4082, allocations: 23.97 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.4082, allocations: 0 / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.855e-05/0.4083, allocations: 15.91 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.4083, allocations: 8 kB / 1.063 GB, free: 0.7539 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 (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.0001644/0.4085, allocations: 127.3 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.4085, allocations: 4 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.4085, allocations: 12.38 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4086, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4086, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.4086, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.4092, allocations: 390.3 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4092, allocations: 0 / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.166e-05/0.4093, allocations: 11.98 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4093, allocations: 0 / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.4093, allocations: 4 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.4093, allocations: 3.938 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4094, allocations: 0 / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004105/0.4098, allocations: 219.3 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.401e-05/0.4098, allocations: 88.95 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.4098, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.4099, allocations: 15.92 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.41, allocations: 8 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.41, allocations: 8 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.312e-05/0.4101, allocations: 91.92 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4101, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002602/0.4103, allocations: 19.94 kB / 1.064 GB, free: 15.67 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.0001833/0.4105, allocations: 115.2 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000308/0.4108, allocations: 87.88 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4109, allocations: 3.938 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.411, allocations: 40.36 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4113, allocations: 16.31 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.4117, allocations: 165.4 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.412, allocations: 0.6947 MB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.18e-05/0.4121, allocations: 11.98 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.4121, allocations: 7.438 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.4121, allocations: 4 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of Templates: time 0.003475/0.4156, allocations: 0.8586 MB / 1.066 GB, free: 13.64 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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