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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.001398/0.001398, 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.001452/0.001452, allocations: 195.5 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.4/1.4, 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.758/2.758, allocations: 461.9 MB / 0.7346 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001442, allocations: 64.59 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3501, allocations: 157.4 MB / 1.053 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.00256/0.3527, allocations: 0.7572 MB / 1.054 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001559/0.3543, allocations: 1.084 MB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.114e-05/0.3544, allocations: 3.938 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.076e-05/0.3545, allocations: 11.92 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.39e-05/0.3546, allocations: 15.86 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.355, allocations: 43.91 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.3552, allocations: 71.77 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3553, allocations: 20.17 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.3555, allocations: 31.86 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.443e-05/0.3555, allocations: 35.89 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.3556, allocations: 4 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.37e-05/0.3556, allocations: 15.98 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.694e-05/0.3557, allocations: 19.92 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.974e-05/0.3557, allocations: 27.88 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.3559, allocations: 79.73 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3559, allocations: 0 / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3559, allocations: 0 / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.356, allocations: 0 / 1.055 GB, free: 5.945 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.0005995/0.3566, allocations: 379.5 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3566, allocations: 8.031 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.248e-05/0.3567, allocations: 38.73 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.3567, allocations: 12.84 kB / 1.056 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.3569, allocations: 180.2 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.3569, allocations: 4.375 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.3569, allocations: 4.375 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.3571, allocations: 69.97 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3571, allocations: 0 / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.3572, allocations: 0 / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3572, allocations: 4 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.3574, allocations: 51.89 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006544/0.358, allocations: 320.7 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.3582, allocations: 54.59 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.992e-05/0.3583, allocations: 36.95 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3583, allocations: 0 / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.3586, allocations: 75.38 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.3586, allocations: 3.938 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004399/0.3591, allocations: 141.4 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.3591, allocations: 55.41 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.579e-05/0.3592, allocations: 117.8 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3592, allocations: 29.7 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.759e-05/0.3593, allocations: 96.03 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.3593, allocations: 11.75 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-05/0.3594, allocations: 33.7 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3595, allocations: 322.8 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.3596, allocations: 27.98 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.3598, allocations: 77.92 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.36, allocations: 113.8 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.36, allocations: 0 / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000306/0.3603, allocations: 133.4 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3603, allocations: 4 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3604, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3604, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.3605, allocations: 19.92 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.3605, allocations: 4 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.922e-05/0.3606, allocations: 20.2 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.3606, allocations: 4 kB / 1.057 GB, free: 3.262 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.000106/0.3608, allocations: 121.8 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.3608, allocations: 3.906 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.3608, allocations: 12.38 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.3608, allocations: 3.984 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3608, allocations: 0 / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3608, allocations: 0 / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004772/0.3613, allocations: 382.7 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3613, allocations: 0 / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.3614, allocations: 7.984 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3614, allocations: 4 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3614, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3614, allocations: 3.938 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3614, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.3617, allocations: 207.3 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/0.3618, allocations: 85.02 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.3618, allocations: 0 / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-05/0.3619, allocations: 11.92 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.362, allocations: 7.984 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.362, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.5e-05/0.362, allocations: 107.9 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.362, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002605/0.3623, allocations: 15.94 kB / 1.058 GB, free: 2.207 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.0006783/0.363, allocations: 0.7435 MB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002953/0.3633, allocations: 83.88 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3633, allocations: 0 / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.3634, allocations: 39.92 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.3638, allocations: 14.39 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.366, allocations: 1.519 MB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.3664, allocations: 0.6885 MB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.761e-05/0.3664, allocations: 4 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.3665, allocations: 19.44 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of SimCode: time 6.62e-07/0.3665, allocations: 3.938 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.3869, allocations: 2.089 MB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.773/8.16, allocations: 11.73 kB / 1.063 GB, free: 13 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > 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,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