Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.00249/0.00249, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.004353/0.004353, allocations: 212.4 kB / 22.24 MB, free: 4.859 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.613/1.613, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.949/2.949, allocations: 475.9 MB / 0.7699 GB, free: 4.875 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") [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.00231/0.00231, allocations: 69.98 kB / 1.117 GB, free: 41.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.4288, allocations: 170 MB / 1.283 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002267/0.4311, allocations: 0.7457 MB / 1.284 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001712/0.4328, allocations: 1.075 MB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.03e-05/0.4328, allocations: 4 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.4329, allocations: 7.922 kB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.736e-05/0.433, allocations: 11.88 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.4333, allocations: 55.83 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.4334, allocations: 75.77 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.4335, allocations: 8.188 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.4336, allocations: 39.84 kB / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.348e-05/0.4337, allocations: 27.84 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.4337, allocations: 8 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.4338, allocations: 19.98 kB / 1.285 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.901e-05/0.4338, allocations: 15.92 kB / 1.285 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.4339, allocations: 23.91 kB / 1.285 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.4341, allocations: 87.56 kB / 1.285 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4341, allocations: 0 / 1.285 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.893e-06/0.4341, allocations: 0 / 1.285 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.4341, allocations: 0 / 1.285 GB, free: 9.801 MB / 0.9825 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.0006119/0.4347, allocations: 302.1 kB / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4347, allocations: 12.03 kB / 1.285 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.208e-05/0.4348, allocations: 4.891 kB / 1.285 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.4349, allocations: 126.4 kB / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.4349, allocations: 384 / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.4349, allocations: 4.375 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.4352, allocations: 74.22 kB / 1.286 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.4352, allocations: 7.875 kB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.4352, allocations: 0 / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.4352, allocations: 4 kB / 1.286 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.4354, allocations: 51.89 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006288/0.436, allocations: 252.3 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.4362, allocations: 50.56 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.4363, allocations: 32.95 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.4364, allocations: 8.031 kB / 1.286 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.4366, allocations: 79.36 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.4366, allocations: 0 / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004581/0.4371, allocations: 129.8 kB / 1.286 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.4371, allocations: 51.41 kB / 1.286 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.4373, allocations: 125.7 kB / 1.286 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.4373, allocations: 29.7 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.59e-05/0.4374, allocations: 100.1 kB / 1.287 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.4374, allocations: 15.84 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.4374, allocations: 29.7 kB / 1.287 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4376, allocations: 326.7 kB / 1.287 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.4377, allocations: 27.98 kB / 1.287 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.4379, allocations: 74.05 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.4382, allocations: 113.9 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4382, allocations: 0 / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003256/0.4385, allocations: 137.5 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.4385, allocations: 4 kB / 1.287 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.4385, allocations: 7.984 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.4385, allocations: 0 / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4387, allocations: 15.98 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.4387, allocations: 7.938 kB / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.814e-05/0.4388, allocations: 15.92 kB / 1.287 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.4388, allocations: 4 kB / 1.287 GB, free: 7.406 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.0001131/0.4389, allocations: 121.8 kB / 1.287 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.4389, allocations: 12.02 kB / 1.287 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/0.439, allocations: 8.375 kB / 1.287 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.439, allocations: 0 / 1.287 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.439, allocations: 0 / 1.287 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.439, allocations: 3.984 kB / 1.287 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.4395, allocations: 318 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.4395, allocations: 0 / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.4396, allocations: 8 kB / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.4396, allocations: 7.969 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.4396, allocations: 4 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4396, allocations: 3.938 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4396, allocations: 0 / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.4399, allocations: 207.3 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.506e-05/0.4399, allocations: 11.92 kB / 1.288 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.4399, allocations: 4 kB / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.362e-05/0.44, allocations: 8 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.4401, allocations: 11.92 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.4401, allocations: 7.938 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.259e-05/0.4401, allocations: 91.27 kB / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4401, allocations: 0 / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002781/0.4404, allocations: 23.95 kB / 1.288 GB, free: 6.504 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.0001636/0.4406, allocations: 103.2 kB / 1.288 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003007/0.4409, allocations: 72.27 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4409, allocations: 4.062 kB / 1.288 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.441, allocations: 31.91 kB / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.4413, allocations: 14.66 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.4417, allocations: 158.1 kB / 1.288 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.4418, allocations: 81.33 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.25e-05/0.4419, allocations: 11.98 kB / 1.289 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.4419, allocations: 11.44 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.4419, allocations: 0 / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of Templates: time 0.004271/0.4462, allocations: 1.064 MB / 1.29 GB, free: 4.973 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.731072049587965]