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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009611/0.009611, allocations: 100.4 kB / 15.73 MB, free: 6.031 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.001728/0.001728, allocations: 193.2 kB / 16.67 MB, free: 5.965 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.052/3.052, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 67.91 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.4394, allocations: 157.4 MB / 1.208 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002575/0.4421, allocations: 0.7518 MB / 1.208 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.444, allocations: 1.065 MB / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.765e-05/0.4441, allocations: 7.875 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.627e-05/0.4442, allocations: 3.938 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.759e-05/0.4443, allocations: 11.86 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004302/0.4447, allocations: 51.89 kB / 1.21 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.4449, allocations: 71.77 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.4451, allocations: 28.16 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.4452, allocations: 31.86 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.585e-05/0.4453, allocations: 31.89 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.4454, allocations: 7.938 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.066e-05/0.4454, allocations: 19.98 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.4455, allocations: 11.94 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.359e-05/0.4455, allocations: 31.86 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001866/0.4457, allocations: 83.73 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4457, allocations: 0 / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4457, allocations: 0 / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.4458, allocations: 4 kB / 1.21 GB, free: 7.375 MB / 0.9669 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.0006425/0.4464, allocations: 383.1 kB / 1.21 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4465, allocations: 12.62 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.4465, allocations: 8.844 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.4467, allocations: 180.2 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.4467, allocations: 384 / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/0.4467, allocations: 8.375 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.4469, allocations: 66.73 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.447, allocations: 3.938 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.447, allocations: 3.938 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.447, allocations: 7.984 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.4472, allocations: 39.97 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006747/0.4479, allocations: 320.7 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.4481, allocations: 58.58 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.4482, allocations: 32.97 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.4482, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.4485, allocations: 75.38 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.335e-06/0.4485, allocations: 4 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005014/0.449, allocations: 129.5 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.4491, allocations: 55.41 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.4492, allocations: 125.7 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.4492, allocations: 25.7 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.943e-05/0.4493, allocations: 92.14 kB / 1.211 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.4493, allocations: 19.73 kB / 1.211 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.4494, allocations: 29.72 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4496, allocations: 322.8 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.4497, allocations: 27.97 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.4499, allocations: 78.36 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.4501, allocations: 109.8 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4502, allocations: 7.938 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003365/0.4505, allocations: 129.4 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.4505, allocations: 4 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.4505, allocations: 8.219 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.4506, allocations: 4 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.4507, allocations: 19.92 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.042e-05/0.4507, allocations: 7.984 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.33e-05/0.4508, allocations: 7.906 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.4509, allocations: 8 kB / 1.212 GB, free: 4.742 MB / 0.9669 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.0001022/0.451, allocations: 127 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.451, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.451, allocations: 12.38 kB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.451, allocations: 4 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.451, allocations: 0 / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.451, allocations: 0 / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004927/0.4515, allocations: 378.6 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4516, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.487e-05/0.4516, allocations: 7.984 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.4516, allocations: 4 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.4516, allocations: 4 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.4517, allocations: 7.953 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4517, allocations: 3.984 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.452, allocations: 195.4 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.452, allocations: 89.03 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.4521, allocations: 4 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.477e-05/0.4521, allocations: 15.92 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.4522, allocations: 4 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.4522, allocations: 0 / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.196e-05/0.4523, allocations: 103.4 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4523, allocations: 0 / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002742/0.4526, allocations: 19.91 kB / 1.213 GB, free: 3.68 MB / 0.9669 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.0002103/0.4528, allocations: 107.2 kB / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002954/0.4531, allocations: 83.88 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4531, allocations: 0 / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.4532, allocations: 35.97 kB / 1.213 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.4535, allocations: 8 kB / 1.213 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004678/0.454, allocations: 154.6 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.4544, allocations: 0.6962 MB / 1.214 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.408e-05/0.4544, allocations: 11.92 kB / 1.214 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.084e-05/0.4545, allocations: 11.44 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.4545, allocations: 4 kB / 1.214 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of Templates: time 0.004239/0.4587, allocations: 1 MB / 1.215 GB, free: 1.555 MB / 0.9669 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