Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 194.8 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.864/2.864, allocations: 476.7 MB / 0.7645 GB, free: 10.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_11_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_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 67.91 kB / 1.109 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9082/0.9102, allocations: 168.7 MB / 1.274 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002224/0.9125, allocations: 0.7642 MB / 1.275 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.9141, allocations: 1.082 MB / 1.276 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.071e-05/0.9142, allocations: 4 kB / 1.276 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.002e-05/0.9142, allocations: 3.938 kB / 1.276 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.338e-05/0.9143, allocations: 11.86 kB / 1.276 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.9146, allocations: 55.81 kB / 1.276 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.9148, allocations: 71.78 kB / 1.276 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.9149, allocations: 12.17 kB / 1.276 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.32e-05/0.915, allocations: 27.92 kB / 1.276 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.581e-05/0.9151, allocations: 35.83 kB / 1.276 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.9151, allocations: 4 kB / 1.276 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.9151, allocations: 20 kB / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.9152, allocations: 19.92 kB / 1.276 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.014e-05/0.9152, allocations: 27.86 kB / 1.276 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.9154, allocations: 86.3 kB / 1.276 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.9154, allocations: 0 / 1.276 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9154, allocations: 0 / 1.276 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.9154, allocations: 0 / 1.276 GB, free: 2.312 MB / 0.9669 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.000716/0.9161, allocations: 383.1 kB / 1.277 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.9162, allocations: 12.03 kB / 1.277 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.9162, allocations: 12.89 kB / 1.277 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.9164, allocations: 180.2 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.9164, allocations: 4.359 kB / 1.277 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.9165, allocations: 4.375 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.9167, allocations: 74.17 kB / 1.277 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.9167, allocations: 3.938 kB / 1.277 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.9167, allocations: 0 / 1.277 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.9168, allocations: 4 kB / 1.277 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.9169, allocations: 51.89 kB / 1.277 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007474/0.9177, allocations: 316.7 kB / 1.277 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.9179, allocations: 58.53 kB / 1.277 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.918, allocations: 28.97 kB / 1.277 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.918, allocations: 0 / 1.277 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.9183, allocations: 79.33 kB / 1.277 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.9183, allocations: 0 / 1.277 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004676/0.9188, allocations: 137.6 kB / 1.278 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.9188, allocations: 51.41 kB / 1.278 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.919, allocations: 129.7 kB / 1.278 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.919, allocations: 25.7 kB / 1.278 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.9191, allocations: 92.14 kB / 1.278 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.9191, allocations: 15.84 kB / 1.278 GB, free: 492 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.9191, allocations: 29.7 kB / 1.278 GB, free: 456 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.9193, allocations: 322.8 kB / 1.278 GB, free: 124 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.9194, allocations: 31.97 kB / 1.278 GB, free: 92 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.9196, allocations: 70.09 kB / 1.278 GB, free: 16 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.9199, allocations: 113.8 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.9199, allocations: 3.828 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003567/0.9202, allocations: 133.5 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.9202, allocations: 4 kB / 1.278 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.9202, allocations: 4 kB / 1.279 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.9203, allocations: 0 / 1.279 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.9204, allocations: 23.92 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.9204, allocations: 4 kB / 1.279 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.763e-05/0.9205, allocations: 20.16 kB / 1.279 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.9205, allocations: 8 kB / 1.279 GB, free: 15.66 MB / 0.9825 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.0001204/0.9207, allocations: 123.8 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.9207, allocations: 7.953 kB / 1.279 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.675e-05/0.9207, allocations: 12.36 kB / 1.279 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.9207, allocations: 0 / 1.279 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9207, allocations: 0 / 1.279 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.9207, allocations: 4 kB / 1.279 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.9213, allocations: 378.3 kB / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.9213, allocations: 0 / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.9214, allocations: 8 kB / 1.279 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.9214, allocations: 3.984 kB / 1.279 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.9214, allocations: 0 / 1.279 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.9214, allocations: 3.938 kB / 1.279 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.9214, allocations: 0 / 1.279 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.9217, allocations: 203.8 kB / 1.279 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.943e-05/0.9218, allocations: 88.98 kB / 1.279 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.9218, allocations: 4 kB / 1.279 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.9219, allocations: 7.938 kB / 1.279 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.9219, allocations: 7.984 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.9219, allocations: 0 / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.052e-05/0.922, allocations: 103.8 kB / 1.279 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.922, allocations: 4 kB / 1.279 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002734/0.9223, allocations: 16 kB / 1.279 GB, free: 14.6 MB / 0.9825 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.0002025/0.9225, allocations: 111.7 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000315/0.9228, allocations: 71.89 kB / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.9228, allocations: 448 / 1.28 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.9229, allocations: 43.91 kB / 1.28 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.9232, allocations: 4 kB / 1.28 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/0.9237, allocations: 174 kB / 1.28 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.9241, allocations: 0.6885 MB / 1.281 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.948e-05/0.9241, allocations: 11.98 kB / 1.281 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.9242, allocations: 15.44 kB / 1.281 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of SimCode: time 4.6e-07/0.9242, allocations: 0 / 1.281 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of Templates: time 0.004206/0.9284, allocations: 0.9839 MB / 1.282 GB, free: 12.45 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 9.06248134886846]