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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001259/0.001259, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001404/0.001404, allocations: 187.5 kB / 16.25 MB, free: 6.637 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.492/1.492, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.017/3.017, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 69.55 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.44/0.4414, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.003616/0.445, allocations: 0.8241 MB / 1.069 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001994/0.4471, allocations: 1.069 MB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.4472, allocations: 4 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.805e-05/0.4473, allocations: 7.922 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.4474, allocations: 7.922 kB / 1.07 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.4478, allocations: 43.91 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.448, allocations: 71.83 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.4481, allocations: 32.03 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.4482, allocations: 23.92 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.4483, allocations: 39.89 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.4484, allocations: 7.938 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.559e-05/0.4485, allocations: 19.92 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.4485, allocations: 15.98 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.273e-05/0.4486, allocations: 31.8 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.4487, allocations: 71.81 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4488, allocations: 0 / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4488, allocations: 4 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.4488, allocations: 4 kB / 1.07 GB, free: 8.461 MB / 0.8262 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.0007235/0.4495, allocations: 379.5 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.4496, allocations: 16.02 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.4496, allocations: 8.781 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.4498, allocations: 176.2 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.4498, allocations: 4.375 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.4498, allocations: 4.375 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002428/0.4501, allocations: 78.16 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.4501, allocations: 3.938 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.4501, allocations: 0 / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.4502, allocations: 0 / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.4503, allocations: 43.95 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008406/0.4512, allocations: 320.7 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.4514, allocations: 54.55 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.738e-05/0.4515, allocations: 28.95 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.4515, allocations: 4 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.4518, allocations: 83.28 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.4518, allocations: 0 / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004351/0.4522, allocations: 125.7 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.4523, allocations: 59.39 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.4524, allocations: 121.8 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.4525, allocations: 29.7 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.305e-05/0.4525, allocations: 92.12 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.4526, allocations: 19.75 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.735e-05/0.4526, allocations: 29.7 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4528, allocations: 322.8 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.4529, allocations: 31.92 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.4531, allocations: 77.92 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.4533, allocations: 109.8 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4534, allocations: 0 / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003362/0.4537, allocations: 125.4 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.4537, allocations: 12.2 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4537, allocations: 4 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.4538, allocations: 4 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.4539, allocations: 27.92 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.4539, allocations: 4 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.041e-05/0.454, allocations: 7.984 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.4541, allocations: 4 kB / 1.072 GB, free: 5.832 MB / 0.8262 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.0001224/0.4542, allocations: 125.7 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.4542, allocations: 7.906 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.423e-05/0.4543, allocations: 16.36 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4543, allocations: 0 / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4543, allocations: 0 / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4543, allocations: 3.984 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005145/0.4548, allocations: 374.4 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4548, allocations: 3.938 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/0.4549, allocations: 11.98 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4549, allocations: 0 / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.4549, allocations: 4 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.4549, allocations: 3.938 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4549, allocations: 0 / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.4552, allocations: 195.5 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.339e-05/0.4553, allocations: 88.95 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.4553, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.585e-05/0.4554, allocations: 11.92 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.4554, allocations: 11.98 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.4555, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.628e-05/0.4555, allocations: 91.27 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.224e-06/0.4555, allocations: 0 / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002544/0.4558, allocations: 27.88 kB / 1.073 GB, free: 4.77 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.0001835/0.456, allocations: 104.2 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003024/0.4563, allocations: 79.88 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4563, allocations: 0 / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.4564, allocations: 36.39 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.4567, allocations: 12.36 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.4571, allocations: 178.2 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.4575, allocations: 0.6924 MB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.946e-05/0.4575, allocations: 7.781 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.4575, allocations: 15.44 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4576, allocations: 0 / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.00363/0.4612, allocations: 0.9235 MB / 1.075 GB, free: 2.711 MB / 0.8262 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 -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/jenkins/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