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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> 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.001255/0.001255, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001277/0.001277, allocations: 189.4 kB / 16.13 MB, free: 6.645 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.48/2.48, allocations: 461.9 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.27 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2551, allocations: 157.4 MB / 1.052 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001796/0.2569, allocations: 0.8141 MB / 1.053 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.258, allocations: 1.077 MB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.2581, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.875e-05/0.2581, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.554e-05/0.2582, allocations: 19.84 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.2584, allocations: 35.98 kB / 1.054 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.328e-05/0.2585, allocations: 75.7 kB / 1.054 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.691e-05/0.2586, allocations: 24.16 kB / 1.054 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.982e-05/0.2587, allocations: 27.92 kB / 1.054 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.344e-05/0.2587, allocations: 31.83 kB / 1.054 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.2588, allocations: 4 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.2588, allocations: 19.98 kB / 1.054 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.2588, allocations: 7.984 kB / 1.054 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.011e-05/0.2589, allocations: 27.81 kB / 1.054 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.259, allocations: 75.8 kB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.259, allocations: 3.938 kB / 1.054 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.259, allocations: 0 / 1.054 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.259, allocations: 4 kB / 1.054 GB, free: 5.961 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.0004616/0.2595, allocations: 379.5 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2595, allocations: 8.031 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.062e-05/0.2596, allocations: 34.73 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.2596, allocations: 8.844 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.2597, allocations: 176.2 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.2597, allocations: 8.375 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.2598, allocations: 4.375 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.26, allocations: 77.91 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.26, allocations: 0 / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.26, allocations: 4 kB / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.26, allocations: 0 / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.2602, allocations: 43.89 kB / 1.055 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005896/0.2608, allocations: 320.7 kB / 1.055 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.2609, allocations: 66.58 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.148e-05/0.261, allocations: 28.95 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2611, allocations: 4 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.2612, allocations: 75.38 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.2613, allocations: 0 / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003794/0.2616, allocations: 133.8 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.2617, allocations: 55.34 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.216e-05/0.2618, allocations: 117.8 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.2618, allocations: 33.7 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.2618, allocations: 96.03 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.2619, allocations: 19.75 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.2619, allocations: 25.7 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.262, allocations: 330.7 kB / 1.056 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.2621, allocations: 27.98 kB / 1.056 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.2623, allocations: 73.98 kB / 1.056 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.2625, allocations: 109.8 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2625, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002867/0.2628, allocations: 125.6 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2628, allocations: 15.98 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2628, allocations: 0 / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2628, allocations: 4 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.263, allocations: 19.92 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.263, allocations: 4.062 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.247e-05/0.2631, allocations: 15.98 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.2631, allocations: 4 kB / 1.057 GB, free: 3.285 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 7.407e-05/0.2632, allocations: 117.8 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/0.2632, allocations: 11.91 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.2632, allocations: 8.375 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2632, allocations: 7.984 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2632, allocations: 0 / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2632, allocations: 3.984 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.2637, allocations: 374.4 kB / 1.057 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2637, allocations: 4 kB / 1.057 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.166e-05/0.2637, allocations: 11.92 kB / 1.057 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2637, allocations: 0 / 1.057 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.2637, allocations: 4 kB / 1.057 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2638, allocations: 7.938 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2638, allocations: 0 / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.264, allocations: 199.3 kB / 1.057 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.2641, allocations: 85.02 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.2641, allocations: 4 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.322e-05/0.2642, allocations: 11.92 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.2642, allocations: 7.922 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.2642, allocations: 8 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.578e-05/0.2643, allocations: 95.27 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2643, allocations: 0 / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000259/0.2645, allocations: 16 kB / 1.058 GB, free: 2.227 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.0005364/0.2651, allocations: 0.7484 MB / 1.058 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002482/0.2653, allocations: 80.19 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2653, allocations: 0 / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.2655, allocations: 27.98 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.2657, allocations: 15.92 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2672, allocations: 1.521 MB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.2674, allocations: 0.6869 MB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.817e-05/0.2675, allocations: 15.98 kB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.435e-05/0.2675, allocations: 15.44 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of SimCode: time 2.244e-06/0.2676, allocations: 4 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2634/0.5309, allocations: 1.891 MB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003278/0.5313, allocations: 258.6 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.367, allocations: 2.672 kB / 1.063 GB, free: 12.98 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