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.0009203/0.0009203, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005843/0.005843, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.684/2.684, allocations: 462.6 MB / 0.7364 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003154, allocations: 9.344 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2879, allocations: 159.6 MB / 1.059 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0009157/0.2888, allocations: 486.7 kB / 1.059 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001335/0.2902, allocations: 1.077 MB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.09e-05/0.2902, allocations: 0 / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.2903, allocations: 3.938 kB / 1.06 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.591e-05/0.2903, allocations: 11.92 kB / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.2906, allocations: 43.97 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.812e-05/0.2907, allocations: 63.78 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.2908, allocations: 24.16 kB / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.767e-05/0.2909, allocations: 23.86 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.78e-05/0.291, allocations: 31.91 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.291, allocations: 0 / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.117e-05/0.2911, allocations: 15.98 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.2911, allocations: 11.92 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.062e-05/0.2912, allocations: 53.56 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001177/0.2913, allocations: 67.73 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2913, allocations: 4 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2913, allocations: 0 / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2913, allocations: 0 / 1.061 GB, free: 2.832 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.0005163/0.2918, allocations: 371.6 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.2919, allocations: 8.031 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.91e-05/0.2919, allocations: 42.69 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.292, allocations: 12.83 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.2921, allocations: 176.2 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2921, allocations: 8.359 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.2921, allocations: 4.375 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.2924, allocations: 77.97 kB / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.2924, allocations: 0 / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.2924, allocations: 3.938 kB / 1.061 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.2924, allocations: 4 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.2926, allocations: 55.95 kB / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.2932, allocations: 324.7 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.2934, allocations: 66.58 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2935, allocations: 40.89 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2935, allocations: 7.984 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002035/0.2937, allocations: 83.38 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.2938, allocations: 0 / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004375/0.2942, allocations: 145.5 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.2943, allocations: 59.39 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.008e-05/0.2943, allocations: 113.8 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.2944, allocations: 29.7 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.209e-05/0.2944, allocations: 96.03 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.2945, allocations: 15.83 kB / 1.062 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.2945, allocations: 17.72 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.2946, allocations: 330.8 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.2947, allocations: 31.97 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.2949, allocations: 86.36 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.2951, allocations: 121.8 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2951, allocations: 3.938 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003225/0.2955, allocations: 137.4 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2955, allocations: 8 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2955, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2955, allocations: 4 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.2957, allocations: 24.14 kB / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2957, allocations: 4 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.2958, allocations: 19.89 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.2958, allocations: 4 kB / 1.063 GB, free: 72 kB / 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.0001102/0.2959, allocations: 121.8 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.2959, allocations: 3.984 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.296, allocations: 12.38 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.296, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.296, allocations: 4 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.296, allocations: 0 / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004678/0.2965, allocations: 390.6 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2965, allocations: 0 / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.84e-05/0.2966, allocations: 15.98 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2966, allocations: 4 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.2966, allocations: 0 / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.2966, allocations: 7.938 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2966, allocations: 4.016 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.2969, allocations: 215.4 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.2969, allocations: 85 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.297, allocations: 4 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.2971, allocations: 7.938 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.2971, allocations: 7.984 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.2971, allocations: 7.922 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.067e-05/0.2972, allocations: 103.3 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2972, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002545/0.2974, allocations: 12 kB / 1.064 GB, free: 14.98 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.0005988/0.298, allocations: 0.7514 MB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.2983, allocations: 96.05 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2983, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2985, allocations: 43.91 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.2988, allocations: 13.77 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.3004, allocations: 1.547 MB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.3006, allocations: 0.6926 MB / 1.067 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.355e-05/0.3006, allocations: 8 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.355e-05/0.3007, allocations: 23.42 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3007, allocations: 0 / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.3256, allocations: 1.821 MB / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.3258, allocations: 257.8 kB / 1.069 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.205, allocations: 0 / 1.069 GB, free: 9.77 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