Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,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.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_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009166/0.0009166, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009023/0.0009023, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.733/2.733, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004997/0.0004998, allocations: 12 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8414/0.8419, allocations: 153.7 MB / 1.021 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001034/0.843, allocations: 477.5 kB / 1.021 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.8444, allocations: 1.05 MB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.429e-05/0.8444, allocations: 0 / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.8445, allocations: 3.938 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.458e-05/0.8446, allocations: 11.97 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.8448, allocations: 39.84 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.358e-05/0.8449, allocations: 43.94 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.8451, allocations: 24.14 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.549e-05/0.8452, allocations: 23.92 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.42e-05/0.8452, allocations: 23.86 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.8453, allocations: 4 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.867e-05/0.8453, allocations: 19.97 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.8454, allocations: 7.984 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.8454, allocations: 41.64 kB / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.8455, allocations: 47.88 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.8455, allocations: 3.938 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8456, allocations: 0 / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.8456, allocations: 4 kB / 1.023 GB, free: 15.39 MB / 0.7794 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.000586/0.8462, allocations: 373.2 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.8462, allocations: 11.98 kB / 1.023 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.8462, allocations: 7.906 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.8464, allocations: 171 kB / 1.023 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.8464, allocations: 4 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.8464, allocations: 4 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.8467, allocations: 81.5 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.8467, allocations: 0 / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.8467, allocations: 3.984 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.8467, allocations: 4 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.8469, allocations: 51.97 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.8475, allocations: 336.6 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.8477, allocations: 62.55 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.8477, allocations: 4.125 kB / 1.024 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.848, allocations: 87.41 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.848, allocations: 0 / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004394/0.8484, allocations: 145.5 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.8485, allocations: 55.41 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.8486, allocations: 125.8 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.8486, allocations: 25.7 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.8487, allocations: 96.03 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.8487, allocations: 15.81 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.8487, allocations: 0 / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.8489, allocations: 322.8 kB / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.849, allocations: 39.91 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.8491, allocations: 85.92 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.8493, allocations: 39.98 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.8493, allocations: 0 / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003003/0.8496, allocations: 137.4 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.8496, allocations: 10.03 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.8496, allocations: 0 / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.8496, allocations: 7.984 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.8498, allocations: 28.14 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.8498, allocations: 4 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.044e-05/0.8499, allocations: 12 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.8499, allocations: 7.984 kB / 1.025 GB, free: 12.85 MB / 0.7794 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.0001056/0.85, allocations: 125.7 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.85, allocations: 7.906 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.8501, allocations: 12.38 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.8501, allocations: 4 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8501, allocations: 0 / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.8501, allocations: 0 / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004664/0.8506, allocations: 378.5 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8506, allocations: 4 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/0.8506, allocations: 15.92 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8507, allocations: 3.938 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.8507, allocations: 4 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8507, allocations: 4 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.8507, allocations: 0 / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.851, allocations: 215.3 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.851, allocations: 85.02 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.8511, allocations: 0 / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.429e-05/0.8511, allocations: 11.98 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.8512, allocations: 3.984 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.8512, allocations: 8 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.056e-05/0.8513, allocations: 95.88 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8513, allocations: 0 / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002532/0.8515, allocations: 15.98 kB / 1.026 GB, free: 11.77 MB / 0.7794 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.0001943/0.8517, allocations: 115.5 kB / 1.026 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002856/0.852, allocations: 87.88 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.852, allocations: 0 / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.8522, allocations: 35.98 kB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.8524, allocations: 20.38 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003508/0.8528, allocations: 169.2 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.853, allocations: 0.6887 MB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.286e-05/0.853, allocations: 8 kB / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.8531, allocations: 15.42 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.8531, allocations: 0 / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of Templates: time 0.003263/0.8563, allocations: 0.8379 MB / 1.028 GB, free: 9.785 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","../files/Buildings_latest_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,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