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.001685/0.001685, allocations: 115.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.001921/0.001921, allocations: 193.7 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.538/1.538, allocations: 225.6 MB / 250.9 MB, free: 13.28 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.79/2.79, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 177] 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.001985/0.001985, allocations: 71.89 kB / 1.109 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7835/0.7855, allocations: 168.7 MB / 1.274 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001938/0.7874, allocations: 0.7498 MB / 1.275 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.7888, allocations: 1.078 MB / 1.276 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.727e-05/0.7888, allocations: 0 / 1.276 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.112e-05/0.7889, allocations: 7.938 kB / 1.276 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.755e-05/0.7889, allocations: 11.88 kB / 1.276 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.7892, allocations: 51.81 kB / 1.276 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.7894, allocations: 71.78 kB / 1.276 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.7895, allocations: 24.16 kB / 1.276 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.734e-05/0.7895, allocations: 27.92 kB / 1.276 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.7896, allocations: 31.84 kB / 1.276 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.7896, allocations: 7.938 kB / 1.276 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.676e-05/0.7897, allocations: 23.92 kB / 1.276 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.993e-05/0.7897, allocations: 23.91 kB / 1.276 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.994e-05/0.7898, allocations: 23.88 kB / 1.276 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.7899, allocations: 86.34 kB / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.7899, allocations: 0 / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7899, allocations: 0 / 1.276 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.7899, allocations: 0 / 1.276 GB, free: 2.391 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.0005727/0.7905, allocations: 379.2 kB / 1.277 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.7905, allocations: 12.03 kB / 1.277 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.7906, allocations: 8.891 kB / 1.277 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.7907, allocations: 180.2 kB / 1.277 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.7907, allocations: 4.375 kB / 1.277 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.7908, allocations: 8.312 kB / 1.277 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.791, allocations: 70.22 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.791, allocations: 7.938 kB / 1.277 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.791, allocations: 4 kB / 1.277 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.791, allocations: 4 kB / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.7912, allocations: 35.97 kB / 1.277 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000648/0.7918, allocations: 324.7 kB / 1.277 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.792, allocations: 58.53 kB / 1.277 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.7921, allocations: 28.97 kB / 1.277 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.7921, allocations: 0 / 1.277 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.7923, allocations: 87.34 kB / 1.277 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.7923, allocations: 0 / 1.277 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004352/0.7928, allocations: 125.6 kB / 1.278 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.7928, allocations: 55.41 kB / 1.278 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.7929, allocations: 129.7 kB / 1.278 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.793, allocations: 25.7 kB / 1.278 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.793, allocations: 92.12 kB / 1.278 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.793, allocations: 19.83 kB / 1.278 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.358e-05/0.7931, allocations: 37.7 kB / 1.278 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.7932, allocations: 318.8 kB / 1.278 GB, free: 204 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.7934, allocations: 27.97 kB / 1.278 GB, free: 176 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.7935, allocations: 78.3 kB / 1.278 GB, free: 76 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.7938, allocations: 117.9 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7938, allocations: 0 / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003359/0.7941, allocations: 137.3 kB / 1.279 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.7941, allocations: 5.406 kB / 1.279 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.7941, allocations: 4 kB / 1.279 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.7942, allocations: 224 / 1.279 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.7943, allocations: 23.97 kB / 1.279 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.7943, allocations: 4 kB / 1.279 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.693e-05/0.7944, allocations: 7.953 kB / 1.279 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.7944, allocations: 8 kB / 1.279 GB, free: 15.74 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.0001093/0.7945, allocations: 129.7 kB / 1.279 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.7945, allocations: 7.953 kB / 1.279 GB, free: 15.6 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.052e-05/0.7946, allocations: 8.375 kB / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7946, allocations: 0 / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.7946, allocations: 4 kB / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.7946, allocations: 0 / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005027/0.7951, allocations: 378.3 kB / 1.279 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7951, allocations: 0 / 1.279 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.177e-05/0.7951, allocations: 11.98 kB / 1.279 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.7951, allocations: 0 / 1.279 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.7951, allocations: 4 kB / 1.279 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.7951, allocations: 7.938 kB / 1.279 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.7951, allocations: 0 / 1.279 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.7955, allocations: 203.4 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.7955, allocations: 81.06 kB / 1.279 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.7955, allocations: 0 / 1.279 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.387e-05/0.7956, allocations: 15.92 kB / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.7956, allocations: 8 kB / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.7956, allocations: 0 / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.422e-05/0.7957, allocations: 95.27 kB / 1.279 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7957, allocations: 0 / 1.279 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002598/0.796, allocations: 16 kB / 1.279 GB, free: 14.69 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.0001671/0.7961, allocations: 103.8 kB / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002946/0.7964, allocations: 75.95 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.7964, allocations: 3.938 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.7966, allocations: 39.89 kB / 1.28 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.7968, allocations: 11.98 kB / 1.28 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004167/0.7972, allocations: 174 kB / 1.28 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.7976, allocations: 0.6927 MB / 1.281 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.7976, allocations: 11.98 kB / 1.281 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.029e-05/0.7976, allocations: 11.44 kB / 1.281 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of SimCode: time 4.3e-07/0.7976, allocations: 0 / 1.281 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of Templates: time 0.003791/0.8014, allocations: 0.9859 MB / 1.282 GB, free: 12.53 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 gbode -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: 8.812517615035176]