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/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.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/Buildings 10.0.0-master/package.mo): time 2.348/2.348, 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.001194/0.001194, allocations: 190.2 kB / 0.4902 GB, free: 2.141 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.663/1.663, allocations: 223.1 MB / 0.7992 GB, free: 15.7 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.0009273/0.0009274, allocations: 102.8 kB / 0.9396 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003807, allocations: 10.25 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2917, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1984/0.4901, allocations: 150.1 MB / 1.376 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.4904, allocations: 71.95 kB / 1.376 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.007809/0.4983, allocations: 2.512 MB / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.106e-06/0.4983, allocations: 3.938 kB / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.263e-05/0.4983, allocations: 0 / 1.378 GB, free: 12.63 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.0006356/0.499, allocations: 379.1 kB / 1.379 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.4991, allocations: 8.562 kB / 1.379 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.385e-05/0.4991, allocations: 11.91 kB / 1.379 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.4993, allocations: 174.9 kB / 1.379 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.4993, allocations: 4 kB / 1.379 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.4994, allocations: 4 kB / 1.379 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.4996, allocations: 69.66 kB / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4996, allocations: 0 / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.4996, allocations: 4 kB / 1.379 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.4996, allocations: 8 kB / 1.379 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.4998, allocations: 55.88 kB / 1.379 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006909/0.5005, allocations: 312.7 kB / 1.379 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.5008, allocations: 58.64 kB / 1.379 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.5008, allocations: 11.88 kB / 1.379 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.5011, allocations: 91.58 kB / 1.379 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.795e-06/0.5011, allocations: 0 / 1.379 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004788/0.5016, allocations: 149.5 kB / 1.38 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.5016, allocations: 51.41 kB / 1.38 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.5017, allocations: 120.8 kB / 1.38 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.5018, allocations: 29.7 kB / 1.38 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.5018, allocations: 88.08 kB / 1.38 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.5019, allocations: 23.73 kB / 1.38 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.5019, allocations: 0 / 1.38 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.502, allocations: 322.8 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.5022, allocations: 35.97 kB / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.5023, allocations: 73.98 kB / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.5024, allocations: 43.98 kB / 1.38 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5025, allocations: 0 / 1.38 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003197/0.5028, allocations: 145.4 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.5028, allocations: 7.984 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5028, allocations: 0 / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.5028, allocations: 8.219 kB / 1.381 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.503, allocations: 19.98 kB / 1.381 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.503, allocations: 3.953 kB / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.441e-05/0.5031, allocations: 19.89 kB / 1.381 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.5031, allocations: 8 kB / 1.381 GB, free: 10.1 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.0001108/0.5033, allocations: 117.8 kB / 1.381 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/0.5033, allocations: 4 kB / 1.381 GB, free: 9.969 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.5033, allocations: 12.38 kB / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.5033, allocations: 0 / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5033, allocations: 0 / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.5034, allocations: 7.938 kB / 1.381 GB, free: 9.945 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005018/0.5039, allocations: 378.4 kB / 1.381 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5039, allocations: 4 kB / 1.381 GB, free: 9.516 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.929e-05/0.5039, allocations: 11.98 kB / 1.381 GB, free: 9.504 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.504, allocations: 4 kB / 1.381 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.504, allocations: 7.938 kB / 1.381 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.504, allocations: 3.953 kB / 1.381 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.504, allocations: 0 / 1.381 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.5043, allocations: 223.7 kB / 1.381 GB, free: 9.254 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.5043, allocations: 77.11 kB / 1.381 GB, free: 9.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.5044, allocations: 4 kB / 1.381 GB, free: 9.156 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.5044, allocations: 11.98 kB / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.5045, allocations: 15.94 kB / 1.381 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.5045, allocations: 0 / 1.381 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.372e-05/0.5046, allocations: 99.2 kB / 1.381 GB, free: 9.031 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5046, allocations: 0 / 1.381 GB, free: 9.031 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002468/0.5048, allocations: 19.94 kB / 1.382 GB, free: 9.012 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.0001769/0.505, allocations: 112 kB / 1.382 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003144/0.5053, allocations: 91.88 kB / 1.382 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5053, allocations: 0 / 1.382 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.5055, allocations: 40.34 kB / 1.382 GB, free: 8.766 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.5057, allocations: 12 kB / 1.382 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004262/0.5062, allocations: 169.3 kB / 1.382 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.5065, allocations: 0.7005 MB / 1.383 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.149e-05/0.5065, allocations: 11.77 kB / 1.383 GB, free: 7.816 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.5066, allocations: 11.44 kB / 1.383 GB, free: 7.805 MB / 0.8855 GB Notification: Performance of SimCode: time 6.21e-07/0.5066, allocations: 0 / 1.383 GB, free: 7.805 MB / 0.8855 GB Notification: Performance of Templates: time 0.003386/0.51, allocations: 0.83 MB / 1.383 GB, free: 7.016 MB / 0.8855 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","../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: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