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.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.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.0007405/0.0007404, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004485/0.004485, allocations: 169.9 kB / 16.27 MB, free: 6.648 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.31/1.31, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.637/2.637, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003396, allocations: 12.47 kB / 0.9029 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2931, allocations: 159.6 MB / 1.059 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001059/0.2942, allocations: 489.6 kB / 1.059 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2957, allocations: 1.077 MB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.2958, allocations: 0 / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.112e-05/0.2958, allocations: 7.984 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.29e-05/0.2959, allocations: 11.88 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.2962, allocations: 43.95 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.539e-05/0.2963, allocations: 67.78 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2964, allocations: 12.19 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.222e-05/0.2965, allocations: 27.84 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.443e-05/0.2966, allocations: 31.91 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.2966, allocations: 0 / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.869e-05/0.2967, allocations: 15.98 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.2967, allocations: 11.92 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.393e-05/0.2968, allocations: 57.56 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.2969, allocations: 71.73 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2969, allocations: 0 / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.485e-06/0.2969, allocations: 0 / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.2969, allocations: 0 / 1.061 GB, free: 2.906 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.0005764/0.2975, allocations: 367.6 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.2976, allocations: 12.03 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.2976, allocations: 42.73 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.2977, allocations: 8.844 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2978, allocations: 180.1 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.2978, allocations: 384 / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.2979, allocations: 8.375 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.2981, allocations: 73.97 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2981, allocations: 4 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2981, allocations: 4 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2981, allocations: 0 / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.2983, allocations: 55.89 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.299, allocations: 332.7 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.2991, allocations: 58.59 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.2993, allocations: 44.95 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.2993, allocations: 0 / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.2995, allocations: 83.36 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.2995, allocations: 4 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004345/0.3, allocations: 137.8 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.3, allocations: 67.28 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.265e-05/0.3001, allocations: 125.8 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.3001, allocations: 29.69 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.3002, allocations: 88.05 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3002, allocations: 15.84 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.3003, allocations: 21.7 kB / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.325e-05/0.3004, allocations: 322.8 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.3005, allocations: 35.97 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.3006, allocations: 73.98 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.3009, allocations: 125.8 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3009, allocations: 3.938 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003146/0.3012, allocations: 145.6 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3012, allocations: 4 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.3012, allocations: 80 / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3013, allocations: 4 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3014, allocations: 23.97 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3014, allocations: 7.922 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.485e-05/0.3015, allocations: 11.91 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.3015, allocations: 12.05 kB / 1.063 GB, free: 152 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 8.551e-05/0.3016, allocations: 131.3 kB / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.3016, allocations: 4 kB / 1.063 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541e-05/0.3017, allocations: 8.375 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3017, allocations: 0 / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.3017, allocations: 0 / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3017, allocations: 0 / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004765/0.3022, allocations: 398.2 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3022, allocations: 0 / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.055e-05/0.3022, allocations: 15.98 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3023, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.3023, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3023, allocations: 3.938 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3023, allocations: 4 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.3026, allocations: 215.3 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.3026, allocations: 85.02 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.3027, allocations: 8 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-05/0.3027, allocations: 11.92 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.642e-05/0.3028, allocations: 4 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.3028, allocations: 7.984 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.592e-05/0.3029, allocations: 87.28 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3029, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002543/0.3031, allocations: 19.98 kB / 1.064 GB, free: 15.07 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.0005945/0.3037, allocations: 0.7552 MB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002707/0.304, allocations: 87.83 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.304, allocations: 0 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.3041, allocations: 48.39 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.3044, allocations: 18.17 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.3061, allocations: 1.548 MB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3063, allocations: 0.6887 MB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.673e-05/0.3064, allocations: 4 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.81e-05/0.3064, allocations: 23.42 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3064, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.3284, allocations: 1.825 MB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/0.3287, allocations: 257.5 kB / 1.069 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.124, allocations: 0 / 1.069 GB, free: 9.848 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