Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.219/2.219, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 178.1 kB / 0.4902 GB, free: 2.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 223.2 MB / 0.7992 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 100 kB / 0.9396 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003747, allocations: 10.39 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3002, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.4982, allocations: 150.1 MB / 1.376 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4986, allocations: 75.95 kB / 1.376 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.007595/0.5062, allocations: 2.505 MB / 1.378 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.384e-06/0.5063, allocations: 3.938 kB / 1.378 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.426e-06/0.5063, allocations: 0 / 1.378 GB, free: 12.6 MB / 0.8855 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.000543/0.5068, allocations: 379.1 kB / 1.379 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.5069, allocations: 16.52 kB / 1.379 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.507, allocations: 7.906 kB / 1.379 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.5071, allocations: 190.9 kB / 1.379 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.5071, allocations: 0 / 1.379 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.5072, allocations: 4 kB / 1.379 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.5074, allocations: 73.66 kB / 1.379 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.5074, allocations: 0 / 1.379 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.5075, allocations: 4 kB / 1.379 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5075, allocations: 4 kB / 1.379 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.5077, allocations: 55.91 kB / 1.379 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006732/0.5083, allocations: 308.7 kB / 1.379 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.5086, allocations: 66.58 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.5086, allocations: 4 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.5088, allocations: 83.59 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.893e-06/0.5088, allocations: 0 / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004453/0.5093, allocations: 153.5 kB / 1.38 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.5093, allocations: 55.34 kB / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.247e-05/0.5094, allocations: 116.9 kB / 1.38 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.5095, allocations: 29.7 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.643e-05/0.5096, allocations: 88.14 kB / 1.38 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.5096, allocations: 23.73 kB / 1.38 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.5096, allocations: 3.938 kB / 1.38 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.5097, allocations: 318.8 kB / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.5099, allocations: 31.97 kB / 1.38 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.51, allocations: 81.98 kB / 1.38 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.5101, allocations: 43.97 kB / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5101, allocations: 0 / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003309/0.5105, allocations: 145.5 kB / 1.38 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.5105, allocations: 4 kB / 1.38 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.5105, allocations: 0 / 1.38 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.5105, allocations: 4 kB / 1.38 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.5107, allocations: 19.98 kB / 1.381 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.5107, allocations: 4.266 kB / 1.381 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.5108, allocations: 23.95 kB / 1.381 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.5108, allocations: 7.938 kB / 1.381 GB, free: 10.06 MB / 0.8855 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.807e-05/0.5109, allocations: 119.3 kB / 1.381 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.511, allocations: 7.984 kB / 1.381 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.511, allocations: 8.375 kB / 1.381 GB, free: 9.914 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.511, allocations: 0 / 1.381 GB, free: 9.914 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.511, allocations: 0 / 1.381 GB, free: 9.914 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.511, allocations: 3.953 kB / 1.381 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004979/0.5115, allocations: 390.4 kB / 1.381 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.5116, allocations: 0 / 1.381 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-05/0.5116, allocations: 15.98 kB / 1.381 GB, free: 9.457 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.5116, allocations: 8 kB / 1.381 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.5117, allocations: 7.938 kB / 1.381 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.5117, allocations: 3.953 kB / 1.381 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5117, allocations: 0 / 1.381 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.512, allocations: 219.3 kB / 1.381 GB, free: 9.207 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.5121, allocations: 77.11 kB / 1.381 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.5121, allocations: 4 kB / 1.381 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.674e-05/0.5122, allocations: 7.984 kB / 1.381 GB, free: 9.102 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.5122, allocations: 11.95 kB / 1.381 GB, free: 9.09 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.5123, allocations: 3.984 kB / 1.381 GB, free: 9.086 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.488e-05/0.5123, allocations: 91.27 kB / 1.381 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5123, allocations: 4 kB / 1.381 GB, free: 8.992 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002537/0.5126, allocations: 23.94 kB / 1.382 GB, free: 8.969 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002011/0.5128, allocations: 116 kB / 1.382 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002919/0.5131, allocations: 88.12 kB / 1.382 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5131, allocations: 0 / 1.382 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.5132, allocations: 39.92 kB / 1.382 GB, free: 8.723 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001824/0.5134, allocations: 15.92 kB / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.5138, allocations: 173.5 kB / 1.382 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.5141, allocations: 0.6926 MB / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.777e-05/0.5141, allocations: 7.781 kB / 1.383 GB, free: 7.777 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.832e-05/0.5141, allocations: 11.44 kB / 1.383 GB, free: 7.766 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5142, allocations: 0 / 1.383 GB, free: 7.766 MB / 0.8855 GB Notification: Performance of Templates: time 0.003321/0.5175, allocations: 0.8279 MB / 1.383 GB, free: 6.945 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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,ramp.y,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