Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001422/0.001422, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001484/0.001484, allocations: 214.2 kB / 23.01 MB, free: 4.566 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.111/3.111, allocations: 0.49 GB / 0.7958 GB, free: 33.49 MB / 0.6231 GB " [Timeout remaining time 177] 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.SampleTriggerNegativeStartTime,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.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_12_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.002026/0.002026, allocations: 68.17 kB / 1.155 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3535, allocations: 176.1 MB / 1.327 GB, free: 1.465 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002065/0.3556, allocations: 0.7616 MB / 1.328 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.3571, allocations: 1.116 MB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.625e-05/0.3572, allocations: 0 / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.122e-05/0.3572, allocations: 3.938 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.63e-05/0.3573, allocations: 15.86 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.3577, allocations: 51.83 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.3578, allocations: 63.84 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.3579, allocations: 28.11 kB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.636e-05/0.358, allocations: 39.84 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.311e-05/0.3581, allocations: 31.84 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.3581, allocations: 4 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.846e-05/0.3582, allocations: 19.98 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.3582, allocations: 11.98 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.259e-05/0.3583, allocations: 35.8 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.3584, allocations: 87.61 kB / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3584, allocations: 0 / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3584, allocations: 0 / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.3584, allocations: 0 / 1.329 GB, free: 15.19 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.0006004/0.359, allocations: 302.1 kB / 1.33 GB, free: 14.87 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3591, allocations: 11.97 kB / 1.33 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.3591, allocations: 8.891 kB / 1.33 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3593, allocations: 118.4 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.3593, allocations: 8.375 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.3593, allocations: 4.375 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3595, allocations: 58.23 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3595, allocations: 3.938 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.3595, allocations: 16 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3595, allocations: 3.984 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.3597, allocations: 39.91 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006696/0.3604, allocations: 295.7 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.3606, allocations: 54.55 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.99e-05/0.3607, allocations: 29.06 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.3607, allocations: 3.938 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.3609, allocations: 79.36 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.3609, allocations: 0 / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004255/0.3613, allocations: 129.6 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.3614, allocations: 55.41 kB / 1.331 GB, free: 13.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3615, allocations: 121.8 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3615, allocations: 25.7 kB / 1.331 GB, free: 13.69 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.254e-05/0.3616, allocations: 99.97 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.3616, allocations: 15.91 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.534e-05/0.3617, allocations: 33.7 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3618, allocations: 326.8 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.3619, allocations: 27.97 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.3621, allocations: 73.97 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.3623, allocations: 105.9 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3623, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000315/0.3626, allocations: 137.4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3626, allocations: 8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3627, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3627, allocations: 4 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3628, allocations: 20.2 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3628, allocations: 3.938 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.811e-05/0.3629, allocations: 15.92 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.3629, allocations: 4 kB / 1.331 GB, free: 12.77 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.000101/0.363, allocations: 127.8 kB / 1.332 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.363, allocations: 7.953 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.3631, allocations: 12.36 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3631, allocations: 4 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3631, allocations: 4 kB / 1.332 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3631, allocations: 0 / 1.332 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.3636, allocations: 337.5 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3636, allocations: 4 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.3636, allocations: 7.984 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3636, allocations: 0 / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3636, allocations: 0 / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3637, allocations: 3.938 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3637, allocations: 8 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.364, allocations: 211.3 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.364, allocations: 11.89 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.364, allocations: 8 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.925e-05/0.3641, allocations: 11.92 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.3641, allocations: 7.984 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.3641, allocations: 4 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.469e-05/0.3642, allocations: 95.86 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3642, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002608/0.3645, allocations: 16 kB / 1.332 GB, free: 11.82 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.0001521/0.3646, allocations: 99.25 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002905/0.3649, allocations: 79.94 kB / 1.333 GB, free: 11.64 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3649, allocations: 3.938 kB / 1.333 GB, free: 11.64 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.365, allocations: 35.97 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3653, allocations: 8 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003999/0.3657, allocations: 184.4 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.366, allocations: 0.6927 MB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.249e-05/0.3661, allocations: 11.44 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3661, allocations: 0 / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of Templates: time 0.003145/0.3692, allocations: 1.049 MB / 1.334 GB, free: 9.605 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 10.823501405015122]