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.0014/0.0014, allocations: 116.8 kB / 16.42 MB, free: 6.504 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.001479/0.00148, allocations: 183.9 kB / 17.35 MB, free: 5.754 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.786/2.786, allocations: 469.4 MB / 0.7428 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 68.05 kB / 1.066 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.083/1.085, allocations: 159.1 MB / 1.221 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002841/1.087, allocations: 0.7637 MB / 1.222 GB, free: 1.621 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002445/1.09, allocations: 1.073 MB / 1.223 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/1.09, allocations: 0 / 1.223 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.372e-05/1.09, allocations: 7.938 kB / 1.223 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001597/1.09, allocations: 15.86 kB / 1.223 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/1.091, allocations: 55.81 kB / 1.223 GB, free: 468 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000247/1.091, allocations: 71.78 kB / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/1.091, allocations: 16.17 kB / 1.223 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/1.092, allocations: 27.92 kB / 1.223 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.407e-05/1.092, allocations: 35.83 kB / 1.223 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/1.092, allocations: 4 kB / 1.223 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/1.092, allocations: 24 kB / 1.223 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.862e-05/1.092, allocations: 15.92 kB / 1.223 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.275e-05/1.092, allocations: 31.84 kB / 1.223 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/1.092, allocations: 83.69 kB / 1.223 GB, free: 152 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/1.092, allocations: 0 / 1.223 GB, free: 152 kB / 0.9356 GB Notification: Performance of FrontEnd: time 2.635e-06/1.092, allocations: 0 / 1.223 GB, free: 152 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.578e-06/1.092, allocations: 0 / 1.223 GB, free: 152 kB / 0.9356 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.0008755/1.093, allocations: 377 kB / 1.223 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.999e-05/1.093, allocations: 12.62 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.658e-05/1.093, allocations: 8.844 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/1.094, allocations: 176.2 kB / 1.224 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/1.094, allocations: 8.359 kB / 1.224 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/1.094, allocations: 4.375 kB / 1.224 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/1.094, allocations: 66.17 kB / 1.224 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.094, allocations: 3.938 kB / 1.224 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/1.094, allocations: 4 kB / 1.224 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/1.094, allocations: 4 kB / 1.224 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/1.094, allocations: 43.95 kB / 1.224 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008042/1.095, allocations: 328.5 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/1.095, allocations: 54.55 kB / 1.224 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/1.095, allocations: 32.97 kB / 1.224 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/1.095, allocations: 7.922 kB / 1.224 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/1.095, allocations: 75.38 kB / 1.224 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.833e-06/1.095, allocations: 0 / 1.224 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004752/1.096, allocations: 137.5 kB / 1.224 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/1.096, allocations: 55.41 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/1.096, allocations: 121.8 kB / 1.225 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/1.096, allocations: 29.7 kB / 1.225 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.465e-05/1.096, allocations: 88.14 kB / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/1.096, allocations: 11.81 kB / 1.225 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/1.096, allocations: 29.7 kB / 1.225 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000166/1.097, allocations: 326.8 kB / 1.225 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/1.097, allocations: 35.97 kB / 1.225 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/1.097, allocations: 69.98 kB / 1.225 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/1.097, allocations: 109.8 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/1.097, allocations: 7.938 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003237/1.097, allocations: 133.4 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/1.097, allocations: 4 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.097, allocations: 0 / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/1.098, allocations: 4 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/1.098, allocations: 19.92 kB / 1.225 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/1.098, allocations: 4 kB / 1.225 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.336e-05/1.098, allocations: 24.05 kB / 1.225 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/1.098, allocations: 4 kB / 1.225 GB, free: 13.52 MB / 0.9512 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.0001234/1.098, allocations: 128.4 kB / 1.226 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/1.098, allocations: 3.984 kB / 1.226 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/1.098, allocations: 12.38 kB / 1.226 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.098, allocations: 0 / 1.226 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/1.098, allocations: 0 / 1.226 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/1.098, allocations: 81.02 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/1.098, allocations: 4 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/1.098, allocations: 15.92 kB / 1.226 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/1.098, allocations: 4 kB / 1.226 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003577/1.099, allocations: 188.9 kB / 1.226 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003821/1.099, allocations: 283 kB / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001191/1.099, allocations: 35.95 kB / 1.226 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.223e-05/1.099, allocations: 87.28 kB / 1.226 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of Backend: time 6.91e-07/1.099, allocations: 0 / 1.226 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006269/1.1, allocations: 134.7 kB / 1.226 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0008071/1.101, allocations: 0.6117 MB / 1.227 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of Templates: time 0.004161/1.105, allocations: 1.061 MB / 1.228 GB, free: 10.82 MB / 0.9512 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/jenkins1/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