Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,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.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_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001251/0.001251, allocations: 183.2 kB / 498.1 MB, free: 5.742 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.657/1.657, allocations: 223.2 MB / 0.7949 GB, free: 18.82 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.0009292/0.0009291, allocations: 100.1 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003756, allocations: 9.719 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3226, allocations: 142.4 MB / 1.223 GB, free: 89.57 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.5191, allocations: 149.3 MB / 1.369 GB, free: 4.109 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.5194, allocations: 75.95 kB / 1.369 GB, free: 4.035 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006614/0.526, allocations: 2.509 MB / 1.371 GB, free: 1.523 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.463e-06/0.526, allocations: 0 / 1.371 GB, free: 1.523 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.5261, allocations: 0 / 1.371 GB, free: 1.523 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.0004591/0.5265, allocations: 379 kB / 1.372 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.5266, allocations: 12.03 kB / 1.372 GB, free: 1.094 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.176e-05/0.5266, allocations: 15.84 kB / 1.372 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.5267, allocations: 175 kB / 1.372 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.5268, allocations: 4 kB / 1.372 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.5268, allocations: 7.984 kB / 1.372 GB, free: 0.8555 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.527, allocations: 73.61 kB / 1.372 GB, free: 0.7773 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.527, allocations: 0 / 1.372 GB, free: 0.7773 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.527, allocations: 0 / 1.372 GB, free: 0.7773 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.527, allocations: 4 kB / 1.372 GB, free: 0.7734 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.5272, allocations: 59.94 kB / 1.372 GB, free: 0.7148 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.5277, allocations: 308.7 kB / 1.372 GB, free: 372 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.5279, allocations: 62.59 kB / 1.372 GB, free: 300 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.5279, allocations: 0 / 1.372 GB, free: 300 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.5281, allocations: 87.59 kB / 1.372 GB, free: 200 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5282, allocations: 0 / 1.372 GB, free: 200 kB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004254/0.5286, allocations: 157.4 kB / 1.372 GB, free: 36 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.5286, allocations: 55.41 kB / 1.373 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.522e-05/0.5287, allocations: 116.9 kB / 1.373 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.5288, allocations: 25.7 kB / 1.373 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.5288, allocations: 92.05 kB / 1.373 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.5288, allocations: 15.84 kB / 1.373 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.5289, allocations: 0 / 1.373 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.529, allocations: 322.8 kB / 1.373 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.5291, allocations: 39.91 kB / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.5292, allocations: 81.98 kB / 1.373 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.5293, allocations: 39.92 kB / 1.373 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5293, allocations: 0 / 1.373 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002965/0.5296, allocations: 141.4 kB / 1.373 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.5297, allocations: 8 kB / 1.373 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.5297, allocations: 224 / 1.373 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.5297, allocations: 8 kB / 1.373 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.5298, allocations: 15.98 kB / 1.373 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.5299, allocations: 15.89 kB / 1.373 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.752e-05/0.5299, allocations: 19.89 kB / 1.373 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.53, allocations: 4 kB / 1.373 GB, free: 14.99 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 8.403e-05/0.5301, allocations: 115.4 kB / 1.374 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.09e-05/0.5301, allocations: 8 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.5301, allocations: 12.31 kB / 1.374 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5301, allocations: 7.984 kB / 1.374 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5301, allocations: 0 / 1.374 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.5301, allocations: 3.953 kB / 1.374 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004392/0.5306, allocations: 382.4 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.5306, allocations: 0 / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.629e-05/0.5307, allocations: 11.98 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.5307, allocations: 0 / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.5307, allocations: 4 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.5307, allocations: 7.953 kB / 1.374 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5307, allocations: 3.984 kB / 1.374 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.531, allocations: 211.7 kB / 1.374 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.531, allocations: 81.11 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.531, allocations: 3.984 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.52e-05/0.5311, allocations: 12 kB / 1.374 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.5312, allocations: 11.94 kB / 1.374 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.5312, allocations: 7.938 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.938e-05/0.5312, allocations: 91.27 kB / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5313, allocations: 0 / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002447/0.5315, allocations: 31.84 kB / 1.374 GB, free: 13.9 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.0001614/0.5317, allocations: 115 kB / 1.375 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002756/0.532, allocations: 91.89 kB / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.532, allocations: 0 / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.5321, allocations: 44.41 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/0.5323, allocations: 9.312 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.5326, allocations: 169.4 kB / 1.375 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.5329, allocations: 0.6926 MB / 1.375 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.57e-05/0.5329, allocations: 11.77 kB / 1.375 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.591e-05/0.5329, allocations: 11.44 kB / 1.376 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.533, allocations: 0 / 1.376 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of Templates: time 0.00286/0.5358, allocations: 0.8371 MB / 1.376 GB, free: 11.9 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","../files/Buildings_9_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: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