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.001387/0.001387, allocations: 113.8 kB / 17.61 MB, free: 4.703 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.001368/0.001368, allocations: 186 kB / 20.78 MB, free: 1.547 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.574/1.574, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.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 3.04/3.04, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 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.002033/0.002033, allocations: 67.89 kB / 1.107 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23/1.232, allocations: 168.7 MB / 1.272 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002132/1.235, allocations: 0.766 MB / 1.273 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001511/1.236, allocations: 1.083 MB / 1.274 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.438e-05/1.236, allocations: 1.531 kB / 1.274 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/1.236, allocations: 4.781 kB / 1.274 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.109e-05/1.236, allocations: 11.34 kB / 1.274 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/1.236, allocations: 55.62 kB / 1.274 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001402/1.237, allocations: 69.39 kB / 1.274 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/1.237, allocations: 16.55 kB / 1.274 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.653e-05/1.237, allocations: 30.31 kB / 1.274 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.973e-05/1.237, allocations: 29.31 kB / 1.274 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/1.237, allocations: 9.125 kB / 1.274 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/1.237, allocations: 25.23 kB / 1.274 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.24e-05/1.237, allocations: 13.56 kB / 1.274 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/1.237, allocations: 26.2 kB / 1.274 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/1.237, allocations: 89.92 kB / 1.274 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.237, allocations: 1.031 kB / 1.274 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.833e-06/1.237, allocations: 0 / 1.274 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.763e-06/1.237, allocations: 3.938 kB / 1.274 GB, free: 6.441 MB / 0.9981 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.0004805/1.238, allocations: 382.2 kB / 1.275 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/1.238, allocations: 12.91 kB / 1.275 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/1.238, allocations: 8.328 kB / 1.275 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/1.238, allocations: 172.3 kB / 1.275 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/1.238, allocations: 3 kB / 1.275 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/1.238, allocations: 8.984 kB / 1.275 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/1.238, allocations: 72.48 kB / 1.275 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/1.238, allocations: 3.938 kB / 1.275 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/1.238, allocations: 0.875 kB / 1.275 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/1.238, allocations: 1.875 kB / 1.275 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/1.238, allocations: 48.17 kB / 1.275 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005683/1.239, allocations: 322.1 kB / 1.275 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/1.239, allocations: 52.8 kB / 1.275 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.615e-05/1.239, allocations: 37.59 kB / 1.275 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/1.239, allocations: 1.094 kB / 1.275 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/1.239, allocations: 74.2 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/1.239, allocations: 0 / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004143/1.24, allocations: 138.4 kB / 1.275 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/1.24, allocations: 54.33 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/1.24, allocations: 118 kB / 1.276 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/1.24, allocations: 32.58 kB / 1.276 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.284e-05/1.24, allocations: 94.88 kB / 1.276 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/1.24, allocations: 14.09 kB / 1.276 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/1.24, allocations: 34.83 kB / 1.276 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.988e-05/1.24, allocations: 321 kB / 1.276 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/1.24, allocations: 31.3 kB / 1.276 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/1.24, allocations: 70.75 kB / 1.276 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/1.241, allocations: 115.6 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.241, allocations: 0 / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003245/1.241, allocations: 127.2 kB / 1.276 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/1.241, allocations: 6 kB / 1.276 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/1.241, allocations: 1.281 kB / 1.276 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/1.241, allocations: 2.875 kB / 1.276 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/1.241, allocations: 20.61 kB / 1.276 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/1.241, allocations: 4.859 kB / 1.276 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.646e-05/1.241, allocations: 26.27 kB / 1.276 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/1.241, allocations: 8.406 kB / 1.276 GB, free: 4.422 MB / 0.9981 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 7.283e-05/1.241, allocations: 125.2 kB / 1.277 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/1.241, allocations: 6.578 kB / 1.277 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/1.241, allocations: 10.16 kB / 1.277 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/1.241, allocations: 1.062 kB / 1.277 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/1.241, allocations: 0 / 1.277 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/1.241, allocations: 0 / 1.277 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004509/1.242, allocations: 377 kB / 1.277 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.242, allocations: 0 / 1.277 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.619e-05/1.242, allocations: 11.97 kB / 1.277 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/1.242, allocations: 0.75 kB / 1.277 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/1.242, allocations: 2.297 kB / 1.277 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.242, allocations: 4.688 kB / 1.277 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.242, allocations: 1.141 kB / 1.277 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/1.242, allocations: 207.3 kB / 1.277 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.656e-05/1.242, allocations: 84.48 kB / 1.277 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/1.242, allocations: 0.75 kB / 1.277 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/1.242, allocations: 14.25 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/1.242, allocations: 5.531 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/1.242, allocations: 2.094 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.474e-05/1.242, allocations: 104 kB / 1.277 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.242, allocations: 0 / 1.277 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002589/1.243, allocations: 13.06 kB / 1.277 GB, free: 3.578 MB / 0.9981 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.000192/1.243, allocations: 108 kB / 1.277 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003311/1.243, allocations: 80.56 kB / 1.278 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.243, allocations: 448 / 1.278 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/1.243, allocations: 34.95 kB / 1.278 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/1.244, allocations: 11.81 kB / 1.278 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004859/1.244, allocations: 176.7 kB / 1.278 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/1.244, allocations: 0.6886 MB / 1.278 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.833e-05/1.244, allocations: 12.77 kB / 1.278 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/1.244, allocations: 10.91 kB / 1.278 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/1.244, allocations: 0.9062 kB / 1.278 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of Templates: time 0.004662/1.249, allocations: 0.9865 MB / 1.279 GB, free: 2.488 MB / 0.9981 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/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.973216557875276]