Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 96.42 kB / 19.7 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 208.9 kB / 22.99 MB, free: 4.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.198/3.198, allocations: 0.49 GB / 0.7959 GB, free: 35.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 72.3 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3328, allocations: 176.1 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002185/0.3349, allocations: 0.7278 MB / 1.328 GB, free: 260 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3365, allocations: 1.096 MB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.32e-05/0.3366, allocations: 4 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.3366, allocations: 3.938 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.362e-05/0.3367, allocations: 19.84 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.337, allocations: 47.84 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.3372, allocations: 71.83 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3373, allocations: 16.17 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.361e-05/0.3373, allocations: 31.86 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.838e-05/0.3374, allocations: 35.83 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.3374, allocations: 8 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.321e-05/0.3375, allocations: 23.98 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.3375, allocations: 7.938 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.303e-05/0.3375, allocations: 27.86 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.3377, allocations: 91.56 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3377, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3377, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.698e-06/0.3377, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 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.0005548/0.3383, allocations: 302.1 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.3383, allocations: 8.031 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.3384, allocations: 8.891 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3385, allocations: 118.5 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3385, allocations: 4.375 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.3385, allocations: 4.375 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.3387, allocations: 74.16 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.3387, allocations: 3.938 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3387, allocations: 4 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3388, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.339, allocations: 47.95 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006314/0.3396, allocations: 260.3 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.3398, allocations: 58.55 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.3399, allocations: 24.97 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.3399, allocations: 4 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.3401, allocations: 75.38 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.3401, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004458/0.3406, allocations: 145.5 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.3406, allocations: 55.41 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3407, allocations: 121.8 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3407, allocations: 29.7 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.311e-05/0.3408, allocations: 92.09 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.3408, allocations: 11.89 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.3409, allocations: 29.72 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.341, allocations: 322.8 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.3411, allocations: 27.97 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.3413, allocations: 81.92 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.3415, allocations: 105.8 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.3415, allocations: 4 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003239/0.3419, allocations: 133.5 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3419, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3419, allocations: 0 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.3419, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.342, allocations: 19.92 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3421, allocations: 12.2 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.935e-05/0.3421, allocations: 11.94 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.3422, allocations: 4 kB / 1.331 GB, free: 12.38 MB / 1.029 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.0001067/0.3423, allocations: 128.5 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.3423, allocations: 7.891 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.3423, allocations: 12.38 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3423, allocations: 0 / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3423, allocations: 0 / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3423, allocations: 3.984 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004811/0.3428, allocations: 322 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3428, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.926e-05/0.3429, allocations: 15.92 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3429, allocations: 4 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.3429, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3429, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3429, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.3432, allocations: 203.4 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.3432, allocations: 15.89 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.3432, allocations: 0 / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.3433, allocations: 11.98 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.3434, allocations: 7.984 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3434, allocations: 7.938 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.767e-05/0.3434, allocations: 91.27 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3434, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002681/0.3437, allocations: 20 kB / 1.332 GB, free: 11.48 MB / 1.029 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.0001537/0.3439, allocations: 100.2 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3441, allocations: 83.86 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3441, allocations: 0 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.3443, allocations: 27.98 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.3446, allocations: 13.02 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.345, allocations: 166.4 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.059e-05/0.345, allocations: 79.27 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.609e-05/0.3451, allocations: 4 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.508e-05/0.3451, allocations: 11.44 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of SimCode: time 5.21e-07/0.3451, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of Templates: time 0.004304/0.3494, allocations: 1.064 MB / 1.334 GB, free: 9.902 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 8.681240359990625]