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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.001742/0.001742, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.497/1.497, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.892/2.892, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001508, allocations: 62.69 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3993, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002506/0.4019, allocations: 0.7618 MB / 1.027 GB, free: 1.309 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.4035, allocations: 1.077 MB / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.97e-05/0.4036, allocations: 0 / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.004e-05/0.4037, allocations: 11.88 kB / 1.029 GB, free: 208 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.444e-05/0.4038, allocations: 7.938 kB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.4042, allocations: 58.69 kB / 1.029 GB, free: 144 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000135/0.4043, allocations: 67.78 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.4044, allocations: 20.16 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.18e-05/0.4045, allocations: 31.86 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.782e-05/0.4046, allocations: 35.92 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.4046, allocations: 8 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.4047, allocations: 19.98 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.4047, allocations: 23.83 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.616e-05/0.4048, allocations: 23.88 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.405, allocations: 79.73 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.405, allocations: 0 / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.924e-06/0.405, allocations: 0 / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.405, allocations: 0 / 1.029 GB, free: 15.83 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.0006015/0.4056, allocations: 379.2 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.4057, allocations: 8.031 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.4057, allocations: 12.84 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.4059, allocations: 176.2 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.4059, allocations: 4.375 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.4059, allocations: 4.375 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.4061, allocations: 66.23 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4061, allocations: 7.922 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.4062, allocations: 3.938 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4062, allocations: 0 / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.4063, allocations: 51.89 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.407, allocations: 320.7 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.4072, allocations: 62.58 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.918e-05/0.4073, allocations: 32.91 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.4073, allocations: 0 / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.4075, allocations: 75.38 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.4076, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004053/0.408, allocations: 129.5 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.408, allocations: 55.41 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.4082, allocations: 129.8 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4082, allocations: 25.7 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.4083, allocations: 96.03 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.4083, allocations: 23.73 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.4084, allocations: 29.7 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4085, allocations: 318.8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.4086, allocations: 35.97 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.4087, allocations: 69.98 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.409, allocations: 109.8 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.409, allocations: 4 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003067/0.4093, allocations: 129.4 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4093, allocations: 8 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4093, allocations: 0 / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.4093, allocations: 4 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.4095, allocations: 19.98 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.4095, allocations: 7.922 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.926e-05/0.4096, allocations: 8.219 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.4096, allocations: 8 kB / 1.031 GB, free: 13.2 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.0001076/0.4097, allocations: 132.4 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.4097, allocations: 11.84 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.4098, allocations: 4.375 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4098, allocations: 4 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4098, allocations: 0 / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.4098, allocations: 0 / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004668/0.4103, allocations: 378.4 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4103, allocations: 0 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.079e-05/0.4103, allocations: 11.98 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4103, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.4104, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4104, allocations: 3.938 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4104, allocations: 7.938 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.4106, allocations: 203.3 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.4107, allocations: 84.95 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.4107, allocations: 4 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.056e-05/0.4108, allocations: 11.92 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.4109, allocations: 4 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.4109, allocations: 4 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.057e-05/0.4109, allocations: 95.86 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4109, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002544/0.4112, allocations: 20 kB / 1.032 GB, free: 12.14 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.0001745/0.4114, allocations: 111.2 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002855/0.4117, allocations: 76.3 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4117, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.4118, allocations: 40.41 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.4121, allocations: 16.12 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000429/0.4125, allocations: 162.2 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.4128, allocations: 0.6846 MB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.683e-05/0.4129, allocations: 7.984 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.4129, allocations: 15.44 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of SimCode: time 2.01e-07/0.4129, allocations: 0 / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of Templates: time 0.004/0.4169, allocations: 0.9728 MB / 1.034 GB, free: 10.04 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start