Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001051/0.001051, allocations: 179 kB / 498.1 MB, free: 5.754 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.564/1.564, allocations: 223.2 MB / 0.7948 GB, free: 18.91 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.0009551/0.0009551, allocations: 98.77 kB / 0.9346 GB, free: 7.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003501, allocations: 9.594 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2952, allocations: 142.4 MB / 1.223 GB, free: 89.59 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.5002, allocations: 149.3 MB / 1.369 GB, free: 4.121 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5005, allocations: 75.95 kB / 1.369 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006971/0.5075, allocations: 2.512 MB / 1.371 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.105e-06/0.5076, allocations: 0 / 1.371 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.5076, allocations: 0 / 1.371 GB, free: 1.535 MB / 0.8698 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.0005291/0.5081, allocations: 387 kB / 1.372 GB, free: 1.109 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.5082, allocations: 12.03 kB / 1.372 GB, free: 1.098 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.215e-05/0.5082, allocations: 3.906 kB / 1.372 GB, free: 1.094 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.5084, allocations: 171 kB / 1.372 GB, free: 0.8867 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.5084, allocations: 8 kB / 1.372 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.5084, allocations: 7.938 kB / 1.372 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.5086, allocations: 73.66 kB / 1.372 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.5087, allocations: 3.938 kB / 1.372 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.5087, allocations: 0 / 1.372 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.5087, allocations: 0 / 1.372 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.5089, allocations: 55.95 kB / 1.372 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.5096, allocations: 316.7 kB / 1.372 GB, free: 384 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.5098, allocations: 54.59 kB / 1.372 GB, free: 320 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.5098, allocations: 7.984 kB / 1.372 GB, free: 312 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.5101, allocations: 87.58 kB / 1.372 GB, free: 212 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.5101, allocations: 0 / 1.372 GB, free: 212 kB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0005174/0.5106, allocations: 157.4 kB / 1.372 GB, free: 48 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.5107, allocations: 51.41 kB / 1.373 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.5108, allocations: 113 kB / 1.373 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.5108, allocations: 29.7 kB / 1.373 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.5109, allocations: 96.05 kB / 1.373 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.5109, allocations: 19.83 kB / 1.373 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.511, allocations: 0 / 1.373 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.5111, allocations: 322.8 kB / 1.373 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.5113, allocations: 35.97 kB / 1.373 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.5114, allocations: 77.98 kB / 1.373 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.5116, allocations: 43.92 kB / 1.373 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5116, allocations: 0 / 1.373 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003733/0.512, allocations: 145.6 kB / 1.373 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.512, allocations: 8 kB / 1.373 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.512, allocations: 0 / 1.373 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.512, allocations: 4 kB / 1.373 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.5122, allocations: 19.98 kB / 1.373 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.5122, allocations: 7.891 kB / 1.373 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.5124, allocations: 15.89 kB / 1.373 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.5124, allocations: 12.06 kB / 1.373 GB, free: 15 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 0.0001007/0.5125, allocations: 117.8 kB / 1.374 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.5125, allocations: 0 / 1.374 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.5126, allocations: 12.38 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.5126, allocations: 0 / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.5126, allocations: 3.984 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.5126, allocations: 7.891 kB / 1.374 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.5132, allocations: 382.4 kB / 1.374 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5132, allocations: 0 / 1.374 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.572e-05/0.5133, allocations: 11.98 kB / 1.374 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5133, allocations: 0 / 1.374 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.5133, allocations: 8 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.5133, allocations: 3.953 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5133, allocations: 4 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.5136, allocations: 215.3 kB / 1.374 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.5137, allocations: 81.11 kB / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.5137, allocations: 3.984 kB / 1.374 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.204e-05/0.5138, allocations: 11.98 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.5139, allocations: 15.88 kB / 1.374 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.5139, allocations: 0 / 1.374 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.928e-05/0.5139, allocations: 91.27 kB / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5139, allocations: 0 / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002667/0.5142, allocations: 31.84 kB / 1.374 GB, free: 13.91 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.000178/0.5144, allocations: 120 kB / 1.375 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002797/0.5147, allocations: 88.27 kB / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.5147, allocations: 4.062 kB / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.5148, allocations: 43.89 kB / 1.375 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.515, allocations: 8 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003563/0.5154, allocations: 169.4 kB / 1.375 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.5157, allocations: 0.6926 MB / 1.375 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.758e-05/0.5157, allocations: 11.77 kB / 1.375 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.49e-05/0.5157, allocations: 11.44 kB / 1.376 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of SimCode: time 2.154e-06/0.5158, allocations: 0 / 1.376 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of Templates: time 0.003466/0.5192, allocations: 0.8417 MB / 1.376 GB, free: 11.91 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","../files/Buildings_9_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,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