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.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.001361, allocations: 108 kB / 15.6 MB, free: 132 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.001247/0.001247, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 62.53 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3561, allocations: 157.4 MB / 1.053 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002379/0.3586, allocations: 0.7517 MB / 1.054 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.36, allocations: 1.096 MB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.865e-05/0.3601, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.288e-05/0.3602, allocations: 3.938 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.384e-05/0.3603, allocations: 11.88 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.3606, allocations: 51.81 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.3608, allocations: 67.84 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3609, allocations: 16.17 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.201e-05/0.361, allocations: 31.86 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.251e-05/0.361, allocations: 31.91 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.3611, allocations: 8 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.994e-05/0.3612, allocations: 19.98 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.591e-05/0.3612, allocations: 19.91 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.3613, allocations: 27.86 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.3614, allocations: 83.69 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3614, allocations: 0 / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3614, allocations: 0 / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.3615, allocations: 0 / 1.055 GB, free: 5.98 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.0005726/0.362, allocations: 383.5 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3621, allocations: 8.031 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.3621, allocations: 34.75 kB / 1.056 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.3622, allocations: 8.844 kB / 1.056 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3623, allocations: 172.3 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3624, allocations: 12.3 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3624, allocations: 8.375 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.3626, allocations: 69.92 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3626, allocations: 3.984 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3626, allocations: 4 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3627, allocations: 0 / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3628, allocations: 43.95 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006276/0.3635, allocations: 328.6 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/0.3636, allocations: 58.55 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.611e-05/0.3638, allocations: 28.97 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.3638, allocations: 4 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.364, allocations: 71.38 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/0.364, allocations: 4 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004302/0.3645, allocations: 133.6 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.3645, allocations: 55.41 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3646, allocations: 121.8 kB / 1.057 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3647, allocations: 29.7 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.885e-05/0.3647, allocations: 96.03 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.3647, allocations: 23.73 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-05/0.3648, allocations: 25.72 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3649, allocations: 326.8 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.365, allocations: 27.97 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.3652, allocations: 77.92 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.3655, allocations: 109.8 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3655, allocations: 0 / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000313/0.3658, allocations: 129.4 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3658, allocations: 8 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3658, allocations: 0 / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3659, allocations: 8.219 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.366, allocations: 19.92 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.366, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.555e-05/0.3661, allocations: 11.98 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.3661, allocations: 8 kB / 1.057 GB, free: 3.301 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.0001216/0.3662, allocations: 121.7 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.3663, allocations: 11.89 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.008e-05/0.3663, allocations: 8.375 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3663, allocations: 11.94 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.3663, allocations: 0 / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3663, allocations: 0 / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.3669, allocations: 374.4 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3669, allocations: 0 / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-05/0.3669, allocations: 15.92 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.367, allocations: 0 / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.367, allocations: 4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.367, allocations: 7.938 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.367, allocations: 0 / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.3673, allocations: 191.4 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.3674, allocations: 89 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.381e-05/0.3674, allocations: 4 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.221e-05/0.3675, allocations: 11.94 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.3676, allocations: 3.984 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3676, allocations: 4 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.517e-05/0.3677, allocations: 91.27 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.3677, allocations: 0 / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002781/0.3679, allocations: 20 kB / 1.058 GB, free: 2.25 MB / 0.8106 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.0007191/0.3687, allocations: 0.7479 MB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002903/0.369, allocations: 87.88 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.369, allocations: 0 / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.3691, allocations: 36.41 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.3694, allocations: 17.5 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.3713, allocations: 1.505 MB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.3716, allocations: 0.6885 MB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.167e-05/0.3716, allocations: 7.984 kB / 1.061 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.035e-05/0.3717, allocations: 23.42 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3717, allocations: 11.94 kB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.3921, allocations: 2.084 MB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/8.006, allocations: 448 / 1.063 GB, free: 13.04 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > 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/jenkins1/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,ramp.y,samTri.period,samTri.shift,samTri.y,samTri1.period,samTri1.shift,samTri1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.trigger,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start