Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002377/0.002377, allocations: 196.7 kB / 16.14 MB, free: 6.629 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.655/1.655, allocations: 222.9 MB / 239.8 MB, free: 4.523 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.918/2.918, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 67.89 kB / 0.8686 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026/1.028, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.003025/1.031, allocations: 0.8127 MB / 1.017 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001931/1.033, allocations: 1.07 MB / 1.018 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.015e-05/1.033, allocations: 7.938 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.762e-05/1.033, allocations: 3.938 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.00011/1.033, allocations: 7.922 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004055/1.034, allocations: 43.91 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/1.034, allocations: 59.84 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/1.034, allocations: 28.14 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/1.034, allocations: 31.86 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.923e-05/1.034, allocations: 27.91 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/1.034, allocations: 4 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.74e-05/1.034, allocations: 23.92 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/1.035, allocations: 15.91 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/1.035, allocations: 23.88 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001858/1.035, allocations: 79.73 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.035, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.442e-06/1.035, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.743e-06/1.035, allocations: 0 / 1.019 GB, free: 0.5156 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.0007674/1.036, allocations: 377.2 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.036, allocations: 15.98 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.575e-05/1.036, allocations: 8.875 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/1.036, allocations: 176.2 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/1.036, allocations: 4.375 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/1.036, allocations: 8.359 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/1.036, allocations: 70.11 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/1.037, allocations: 7.922 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/1.037, allocations: 8 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/1.037, allocations: 4 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/1.037, allocations: 35.97 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008406/1.038, allocations: 332.5 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/1.038, allocations: 54.55 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/1.038, allocations: 28.97 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/1.038, allocations: 3.984 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/1.038, allocations: 79.38 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/1.038, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000491/1.039, allocations: 133.6 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/1.039, allocations: 51.41 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/1.039, allocations: 121.8 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/1.039, allocations: 29.7 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.936e-05/1.039, allocations: 92.05 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/1.039, allocations: 23.78 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/1.039, allocations: 29.7 kB / 1.02 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001949/1.039, allocations: 318.8 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/1.04, allocations: 31.97 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/1.04, allocations: 78.36 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004393/1.04, allocations: 113.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.04, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000392/1.041, allocations: 125.4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/1.041, allocations: 4 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/1.041, allocations: 4.219 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/1.041, allocations: 7.938 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000325/1.041, allocations: 19.92 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/1.041, allocations: 7.984 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/1.041, allocations: 11.94 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/1.041, allocations: 4 kB / 1.021 GB, free: 13.88 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.0001776/1.041, allocations: 131.4 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.853e-05/1.041, allocations: 7.844 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/1.042, allocations: 16.38 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/1.042, allocations: 4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.042, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/1.042, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007969/1.042, allocations: 370.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.042, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.741e-05/1.042, allocations: 11.92 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.371e-06/1.042, allocations: 8 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/1.043, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/1.043, allocations: 3.938 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.043, allocations: 80 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/1.043, allocations: 199.4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/1.043, allocations: 85.02 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/1.043, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-05/1.043, allocations: 15.92 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/1.043, allocations: 4 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/1.043, allocations: 7.984 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.709e-05/1.043, allocations: 95.27 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.61e-07/1.043, allocations: 0 / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003381/1.044, allocations: 12 kB / 1.022 GB, free: 12.82 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.0003428/1.044, allocations: 115.7 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003699/1.045, allocations: 75.89 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/1.045, allocations: 4 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/1.045, allocations: 31.97 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/1.045, allocations: 13.88 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005865/1.046, allocations: 184.2 kB / 1.022 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/1.046, allocations: 0.6848 MB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.641e-05/1.046, allocations: 11.98 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/1.046, allocations: 11.44 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of SimCode: time 8.62e-07/1.046, allocations: 4 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of Templates: time 0.00511/1.051, allocations: 0.8699 MB / 1.024 GB, free: 10.77 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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