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.006363/0.006363, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001514/0.001514, allocations: 197.3 kB / 16.79 MB, free: 6.254 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 64.34 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3427, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002476/0.3452, allocations: 0.8089 MB / 1.054 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.3469, allocations: 1.081 MB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.498e-05/0.347, allocations: 0 / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.446e-05/0.3471, allocations: 7.922 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.975e-05/0.3472, allocations: 11.92 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.3475, allocations: 39.91 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.3476, allocations: 71.77 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3478, allocations: 20.19 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.986e-05/0.3479, allocations: 23.92 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.815e-05/0.348, allocations: 35.83 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.348, allocations: 4 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.079e-05/0.3481, allocations: 15.92 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.424e-05/0.3481, allocations: 11.98 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.907e-05/0.3482, allocations: 35.78 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.3483, allocations: 47.91 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3483, allocations: 4 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3483, allocations: 3.938 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3483, allocations: 8 kB / 1.055 GB, free: 6.031 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.0006755/0.349, allocations: 375.5 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.3491, allocations: 15.95 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.037e-05/0.3492, allocations: 8.844 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.3493, allocations: 168.3 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3494, allocations: 4.375 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.3494, allocations: 8.375 kB / 1.056 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.3497, allocations: 70.16 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3497, allocations: 7.938 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3497, allocations: 0 / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3497, allocations: 0 / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.3499, allocations: 43.95 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008387/0.3508, allocations: 328.6 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.351, allocations: 58.53 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3511, allocations: 32.95 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.3511, allocations: 4 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.3514, allocations: 75.38 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.957e-06/0.3514, allocations: 0 / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004473/0.3519, allocations: 137.7 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.3519, allocations: 59.39 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.352, allocations: 113.8 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.3521, allocations: 29.7 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.3521, allocations: 100 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.3522, allocations: 15.75 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-05/0.3522, allocations: 29.7 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3524, allocations: 322.8 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.3525, allocations: 27.97 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.3526, allocations: 73.98 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.3529, allocations: 109.8 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3529, allocations: 0 / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00033/0.3532, allocations: 129.4 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.3533, allocations: 9.781 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3533, allocations: 7.984 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3533, allocations: 4 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.3534, allocations: 19.92 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.3535, allocations: 12 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.677e-05/0.3536, allocations: 7.984 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.3536, allocations: 8 kB / 1.057 GB, free: 3.398 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.0001004/0.3537, allocations: 121.7 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.3537, allocations: 7.906 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.3538, allocations: 12.38 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3538, allocations: 4 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3538, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3538, allocations: 3.984 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.3543, allocations: 370.4 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3543, allocations: 3.938 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.624e-05/0.3544, allocations: 11.98 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3544, allocations: 0 / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3544, allocations: 4 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3544, allocations: 7.938 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3544, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.3547, allocations: 195.4 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.3548, allocations: 88.95 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.3548, allocations: 8 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.3549, allocations: 11.92 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.3549, allocations: 7.984 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.355, allocations: 0 / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.571e-05/0.355, allocations: 91.27 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.693e-06/0.355, allocations: 0 / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002665/0.3553, allocations: 27.94 kB / 1.058 GB, free: 2.34 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.0001949/0.3555, allocations: 103.2 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002842/0.3558, allocations: 79.86 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3558, allocations: 0 / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.3559, allocations: 35.98 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.3562, allocations: 13.41 kB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004273/0.3567, allocations: 205.6 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.3569, allocations: 0.6887 MB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.32e-05/0.357, allocations: 11.44 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.357, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of Templates: time 0.002976/0.36, allocations: 1.045 MB / 1.06 GB, free: 104 kB / 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/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y