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.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.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.005793/0.005794, allocations: 100.9 kB / 15.87 MB, free: 5.863 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.001542/0.001542, allocations: 190.4 kB / 16.79 MB, free: 5.805 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.362/1.362, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.69/2.69, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 65.67 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3192, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002368/0.3216, allocations: 0.8064 MB / 1.054 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001511/0.3231, allocations: 1.077 MB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.896e-05/0.3232, allocations: 4 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.674e-05/0.3232, allocations: 7.922 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.51e-05/0.3234, allocations: 11.92 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.3237, allocations: 43.95 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.3238, allocations: 71.72 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3239, allocations: 12.19 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.964e-05/0.324, allocations: 23.92 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.434e-05/0.3241, allocations: 35.83 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.3241, allocations: 4 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.05e-05/0.3242, allocations: 15.98 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.3243, allocations: 15.98 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.864e-05/0.3243, allocations: 39.77 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.3244, allocations: 47.91 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3245, allocations: 0 / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3245, allocations: 7.938 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3245, allocations: 0 / 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.000602/0.3251, allocations: 376.8 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3251, allocations: 19.95 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.3252, allocations: 4.844 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.3253, allocations: 180.3 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.3253, allocations: 4.375 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.3254, allocations: 4.375 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.3256, allocations: 66.22 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3256, allocations: 3.938 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3256, allocations: 4 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.3256, allocations: 0 / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.3258, allocations: 51.89 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006818/0.3265, allocations: 320.7 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.3267, allocations: 58.58 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.973e-05/0.3268, allocations: 32.95 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.3268, allocations: 4 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/0.3271, allocations: 79.36 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.863e-06/0.3271, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004432/0.3276, allocations: 133.5 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3276, allocations: 63.33 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.752e-05/0.3277, allocations: 113.8 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.3278, allocations: 33.7 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.3278, allocations: 92.03 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.3279, allocations: 19.75 kB / 1.057 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.3279, allocations: 25.7 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.328, allocations: 326.8 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3282, allocations: 31.98 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.3283, allocations: 69.98 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.3285, allocations: 109.8 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3286, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000312/0.3289, allocations: 129.4 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3289, allocations: 11.98 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3289, allocations: 0 / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3289, allocations: 4 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3291, allocations: 23.92 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3291, allocations: 7.938 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.618e-05/0.3292, allocations: 12.2 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.3292, allocations: 8 kB / 1.057 GB, free: 3.391 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.0001039/0.3293, allocations: 119 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.3293, allocations: 7.906 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.3294, allocations: 12.38 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3294, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3294, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3294, allocations: 3.984 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004782/0.3299, allocations: 374.4 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3299, allocations: 3.938 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.524e-05/0.33, allocations: 7.984 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.33, allocations: 0 / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.33, allocations: 8 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.33, allocations: 3.938 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.33, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.3303, allocations: 203.3 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.203e-05/0.3303, allocations: 92.94 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.3304, allocations: 0 / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.378e-05/0.3305, allocations: 11.92 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.3305, allocations: 11.98 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.3305, allocations: 0 / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.028e-05/0.3306, allocations: 95.27 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3306, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002546/0.3309, allocations: 20 kB / 1.058 GB, free: 2.336 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.0001765/0.331, allocations: 104.2 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.3313, allocations: 84.17 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.3313, allocations: 8.062 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.3315, allocations: 27.98 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.3317, allocations: 11.98 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.3322, allocations: 205.6 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3324, allocations: 0.6887 MB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.3325, allocations: 11.44 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3325, allocations: 0 / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of Templates: time 0.002782/0.3353, allocations: 1.046 MB / 1.06 GB, free: 100 kB / 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y