Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001648, 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.002292/0.002292, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.422/1.422, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.87/2.87, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.66 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3528, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.003373/0.3563, allocations: 0.8103 MB / 1.053 GB, free: 8.047 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.3582, allocations: 1.084 MB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.462e-05/0.3583, allocations: 0 / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.646e-05/0.3583, allocations: 3.938 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.3585, allocations: 11.94 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000418/0.3589, allocations: 47.89 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.3591, allocations: 59.84 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.3593, allocations: 28.14 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.3594, allocations: 27.86 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.371e-05/0.3595, allocations: 27.86 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.3595, allocations: 4 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.3596, allocations: 19.98 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.995e-05/0.3597, allocations: 19.91 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.247e-05/0.3597, allocations: 27.86 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.3599, allocations: 71.75 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3599, allocations: 0 / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.032e-06/0.3599, allocations: 4 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.36, allocations: 0 / 1.054 GB, free: 6.598 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.0006445/0.3606, allocations: 383.4 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3607, allocations: 12.03 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.3607, allocations: 8.844 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.3609, allocations: 176.2 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.3609, allocations: 8.375 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.361, allocations: 4.375 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.3612, allocations: 70.16 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3612, allocations: 3.938 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.3612, allocations: 4 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3612, allocations: 0 / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.3614, allocations: 43.95 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007233/0.3622, allocations: 328.6 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.3623, allocations: 58.55 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.787e-05/0.3625, allocations: 28.97 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.3625, allocations: 4 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.3627, allocations: 75.41 kB / 1.055 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.3628, allocations: 4 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004612/0.3632, allocations: 129.5 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.3633, allocations: 55.41 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.3634, allocations: 117.8 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.3635, allocations: 33.7 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.692e-05/0.3635, allocations: 88.05 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.3636, allocations: 23.73 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.3636, allocations: 25.7 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3638, allocations: 330.8 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.3639, allocations: 31.97 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.3641, allocations: 73.92 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.3643, allocations: 105.9 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3643, allocations: 0 / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003526/0.3647, allocations: 137.3 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3647, allocations: 8 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3647, allocations: 0 / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.3647, allocations: 4 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3649, allocations: 15.98 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3649, allocations: 4.219 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.851e-05/0.365, allocations: 15.98 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.365, allocations: 7.938 kB / 1.057 GB, free: 3.961 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.0001527/0.3652, allocations: 125.1 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.3652, allocations: 7.906 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.3652, allocations: 16.36 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3652, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3652, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3652, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005027/0.3658, allocations: 382.4 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3658, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.406e-05/0.3658, allocations: 4 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3658, allocations: 0 / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.3659, allocations: 11.98 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3659, allocations: 3.938 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.3659, allocations: 3.984 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003048/0.3662, allocations: 195.4 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.3663, allocations: 92.94 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.3663, allocations: 0 / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.452e-05/0.3664, allocations: 7.938 kB / 1.057 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.3664, allocations: 11.92 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.3664, allocations: 4 kB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.917e-05/0.3665, allocations: 95.27 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3665, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002815/0.3668, allocations: 20 kB / 1.058 GB, free: 2.902 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.0001886/0.367, allocations: 111.2 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002824/0.3673, allocations: 72.73 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3673, allocations: 4.062 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.3674, allocations: 39.91 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.3677, allocations: 11.98 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004261/0.3682, allocations: 168.1 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.3686, allocations: 0.6887 MB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.688e-05/0.3686, allocations: 11.98 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.3687, allocations: 11.44 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3687, allocations: 0 / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of Templates: time 0.00482/0.3735, allocations: 0.8781 MB / 1.06 GB, free: 0.8906 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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