Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001407/0.001407, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001426/0.001426, allocations: 194.5 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.768/2.768, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.89 kB / 0.8686 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7009/0.7022, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00308/0.7053, allocations: 0.8166 MB / 1.017 GB, free: 1.945 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001794/0.7072, allocations: 1.07 MB / 1.018 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.196e-05/0.7072, allocations: 0 / 1.018 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.299e-05/0.7073, allocations: 15.86 kB / 1.018 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.782e-05/0.7074, allocations: 7.922 kB / 1.018 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.7078, allocations: 47.89 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.7079, allocations: 67.78 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.7081, allocations: 20.17 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.644e-05/0.7082, allocations: 23.92 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.404e-05/0.7083, allocations: 35.83 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.7083, allocations: 4 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.567e-05/0.7084, allocations: 19.92 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.013e-05/0.7084, allocations: 11.98 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.054e-05/0.7085, allocations: 27.8 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.7087, allocations: 71.81 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.7087, allocations: 8 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.213e-06/0.7087, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.7087, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 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.0006604/0.7094, allocations: 381.1 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.7095, allocations: 12.03 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.7095, allocations: 0.9375 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.7097, allocations: 180.2 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.7098, allocations: 8.375 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.7098, allocations: 8.375 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.71, allocations: 70.16 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.71, allocations: 3.938 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.7101, allocations: 4 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.7101, allocations: 0 / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.7103, allocations: 39.95 kB / 1.019 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007342/0.711, allocations: 336.5 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.7112, allocations: 50.56 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.727e-05/0.7113, allocations: 28.95 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.7113, allocations: 4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.7116, allocations: 79.38 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.7116, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004629/0.7121, allocations: 133.8 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.7121, allocations: 55.41 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.7123, allocations: 117.8 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.7123, allocations: 33.7 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.7124, allocations: 95.97 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.7124, allocations: 15.81 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.888e-05/0.7125, allocations: 25.7 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.7126, allocations: 326.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.7128, allocations: 23.98 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.7129, allocations: 85.86 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.7132, allocations: 105.9 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.7132, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003338/0.7135, allocations: 133.6 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.7135, allocations: 8 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.7136, allocations: 80 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.7136, allocations: 4 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.7137, allocations: 23.92 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.7138, allocations: 7.984 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.363e-05/0.7139, allocations: 15.92 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.7139, allocations: 4 kB / 1.021 GB, free: 13.86 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 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.714, allocations: 128.2 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.714, allocations: 7.906 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.7141, allocations: 12.38 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.7141, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7141, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.7141, allocations: 3.984 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.7147, allocations: 374.4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.7147, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-05/0.7148, allocations: 7.984 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.7148, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.7148, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7148, allocations: 3.938 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.7148, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.7151, allocations: 207.4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.375e-05/0.7152, allocations: 85.02 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.7152, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.896e-05/0.7153, allocations: 11.92 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.7154, allocations: 11.97 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.7154, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.189e-05/0.7155, allocations: 99.2 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7155, allocations: 3.938 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000268/0.7158, allocations: 20 kB / 1.022 GB, free: 12.8 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002033/0.716, allocations: 104.2 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002947/0.7163, allocations: 83.88 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7163, allocations: 0 / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.7164, allocations: 32.41 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.7167, allocations: 17.97 kB / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.7171, allocations: 167.8 kB / 1.022 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.7175, allocations: 0.6926 MB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.636e-05/0.7175, allocations: 8 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.141e-05/0.7175, allocations: 19.42 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.7175, allocations: 0 / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of Templates: time 0.003531/0.7211, allocations: 0.8744 MB / 1.024 GB, free: 10.79 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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