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.001412/0.001412, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002349/0.002349, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.884/2.884, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001426, allocations: 71.67 kB / 0.8984 GB, free: 37.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3399, 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.SampleTriggerPositiveStartTime): time 0.003072/0.343, allocations: 0.8142 MB / 1.053 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001829/0.3449, allocations: 1.081 MB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.408e-05/0.345, allocations: 0 / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.273e-05/0.345, allocations: 3.938 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.639e-05/0.3451, allocations: 7.922 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.3454, allocations: 51.88 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00012/0.3456, allocations: 71.78 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3457, allocations: 12.19 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.3458, allocations: 23.92 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.3459, allocations: 35.83 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.346, allocations: 4 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.3461, allocations: 23.92 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.3461, allocations: 11.98 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.426e-05/0.3462, allocations: 35.78 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.3464, allocations: 67.81 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3464, allocations: 7.938 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3464, allocations: 0 / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.3465, allocations: 0 / 1.054 GB, free: 6.594 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.0008452/0.3473, allocations: 388.3 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3474, allocations: 8.031 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.549e-05/0.3474, allocations: 8.844 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.3476, allocations: 168.3 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.3476, allocations: 384 / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.3477, allocations: 4.375 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.3479, allocations: 82.09 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.348, allocations: 3.938 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.348, allocations: 0 / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.348, allocations: 4 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.3483, allocations: 43.95 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000902/0.3492, allocations: 324.6 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.3494, allocations: 54.55 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.3496, allocations: 28.97 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.3496, allocations: 0 / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000328/0.35, allocations: 79.47 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/0.35, allocations: 3.938 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005934/0.3506, allocations: 133.5 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.3506, allocations: 51.41 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.3508, allocations: 125.8 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.3508, allocations: 29.7 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.3509, allocations: 92.05 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.3509, allocations: 19.75 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.351, allocations: 29.7 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3512, allocations: 318.8 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.3513, allocations: 35.91 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.3516, allocations: 77.92 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.3519, allocations: 105.9 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3519, allocations: 0 / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004751/0.3524, allocations: 133.6 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3524, allocations: 4 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3525, allocations: 7.938 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3525, allocations: 0 / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.3527, allocations: 19.98 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.3527, allocations: 4 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.3529, allocations: 11.98 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.3529, allocations: 8 kB / 1.057 GB, free: 3.969 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.0001265/0.353, allocations: 125.8 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.3531, allocations: 15.89 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.3531, allocations: 8.359 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3531, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3531, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3531, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006542/0.3538, allocations: 378.4 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3538, allocations: 4 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.3539, allocations: 8 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3539, allocations: 3.938 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3539, allocations: 3.984 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.354, allocations: 3.938 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.354, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.3544, allocations: 203.8 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.3545, allocations: 84.95 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.3545, allocations: 3.984 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.3546, allocations: 7.938 kB / 1.057 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.004e-05/0.3547, allocations: 11.98 kB / 1.057 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3547, allocations: 7.938 kB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.238e-05/0.3548, allocations: 95.2 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3548, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004708/0.3553, allocations: 16 kB / 1.058 GB, free: 2.906 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.000183/0.3555, allocations: 116.2 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003675/0.3559, allocations: 71.89 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3559, allocations: 0 / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.3561, allocations: 39.97 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.3565, allocations: 12.44 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004404/0.357, allocations: 168 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.3573, allocations: 0.6887 MB / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.065e-05/0.3573, allocations: 11.98 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.182e-05/0.3574, allocations: 11.44 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of SimCode: time 4.21e-07/0.3574, allocations: 0 / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of Templates: time 0.005076/0.3625, allocations: 0.8811 MB / 1.06 GB, free: 0.8906 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 -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