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.001279/0.001279, 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.001341/0.001341, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.273/1.273, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.485/2.485, allocations: 461.9 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 65.53 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2629, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002006/0.2649, allocations: 0.8104 MB / 1.053 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2662, allocations: 1.088 MB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.2663, allocations: 0 / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.957e-05/0.2663, allocations: 0 / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.19e-05/0.2664, allocations: 11.92 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.2666, allocations: 47.84 kB / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.2e-05/0.2667, allocations: 63.84 kB / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.993e-05/0.2668, allocations: 20.16 kB / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.931e-05/0.2669, allocations: 35.8 kB / 1.054 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.267, allocations: 27.91 kB / 1.054 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.267, allocations: 4 kB / 1.054 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.267, allocations: 15.98 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.2671, allocations: 15.92 kB / 1.054 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/0.2671, allocations: 27.86 kB / 1.054 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.2672, allocations: 75.73 kB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2672, allocations: 0 / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.51e-07/0.2672, allocations: 0 / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.2673, allocations: 0 / 1.054 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.0004756/0.2677, allocations: 383.5 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2678, allocations: 8.031 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.2678, allocations: 34.75 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.605e-05/0.2679, allocations: 12.83 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.268, allocations: 184.1 kB / 1.055 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.268, allocations: 384 / 1.055 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.268, allocations: 4.375 kB / 1.055 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.2682, allocations: 69.97 kB / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.2682, allocations: 7.984 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.2682, allocations: 4 kB / 1.055 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2682, allocations: 4 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.2684, allocations: 47.89 kB / 1.055 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.269, allocations: 320.7 kB / 1.055 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.2691, allocations: 54.55 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.543e-05/0.2692, allocations: 33.05 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.2693, allocations: 3.938 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.2695, allocations: 79.38 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.2695, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003807/0.2698, allocations: 121.5 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.2699, allocations: 59.39 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.688e-05/0.27, allocations: 117.8 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.27, allocations: 29.7 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.2701, allocations: 104 kB / 1.056 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.2701, allocations: 23.67 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.2701, allocations: 29.7 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.2702, allocations: 318.8 kB / 1.056 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2703, allocations: 31.97 kB / 1.056 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2705, allocations: 77.92 kB / 1.056 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.2707, allocations: 105.9 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2707, allocations: 4 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002884/0.271, allocations: 133.4 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.271, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.271, allocations: 8.531 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.271, allocations: 3.984 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.2712, allocations: 19.98 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.2712, allocations: 7.938 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.833e-05/0.2713, allocations: 7.984 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.2713, allocations: 7.984 kB / 1.057 GB, free: 3.254 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.74e-05/0.2714, allocations: 121.8 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.34e-05/0.2714, allocations: 3.906 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.2714, allocations: 16.38 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2714, allocations: 0 / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2714, allocations: 0 / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2714, allocations: 0 / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.2719, allocations: 378.3 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2719, allocations: 0 / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/0.2719, allocations: 11.98 kB / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2719, allocations: 8 kB / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.272, allocations: 0 / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.272, allocations: 3.938 kB / 1.057 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.272, allocations: 0 / 1.057 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.2722, allocations: 199.3 kB / 1.057 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.2723, allocations: 85.02 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.2723, allocations: 4 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-05/0.2724, allocations: 11.92 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.2724, allocations: 11.98 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.2724, allocations: 0 / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.481e-05/0.2725, allocations: 95.27 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2725, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002417/0.2727, allocations: 12 kB / 1.058 GB, free: 2.211 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.0005381/0.2733, allocations: 0.7513 MB / 1.058 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002497/0.2735, allocations: 75.88 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2736, allocations: 448 / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.2737, allocations: 39.92 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.2739, allocations: 15.92 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.001515/0.2754, allocations: 1.514 MB / 1.06 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.2757, allocations: 0.6908 MB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.828e-05/0.2757, allocations: 11.97 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2758, allocations: 23.44 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.2758, allocations: 0 / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2862/0.5619, allocations: 1.897 MB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003836/0.5624, allocations: 250.8 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.4, allocations: 0 / 1.063 GB, free: 12.95 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