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.001346/0.001346, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001461/0.001461, allocations: 212.3 kB / 22.99 MB, free: 4.984 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.161/3.161, allocations: 0.49 GB / 0.7959 GB, free: 35.52 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.002013/0.002013, allocations: 68.53 kB / 1.155 GB, free: 25.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.327, allocations: 176.1 MB / 1.327 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001935/0.3289, allocations: 0.7421 MB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.3303, allocations: 1.096 MB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.746e-05/0.3303, allocations: 0 / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.104e-05/0.3304, allocations: 3.938 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.631e-05/0.3304, allocations: 15.86 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.3307, allocations: 51.83 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001083/0.3308, allocations: 67.83 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.645e-05/0.3309, allocations: 24.17 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.331, allocations: 31.86 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.337e-05/0.3311, allocations: 31.91 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.3311, allocations: 7.984 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.321e-05/0.3311, allocations: 19.92 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.991e-05/0.3312, allocations: 12 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.3312, allocations: 27.86 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.3313, allocations: 83.56 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3313, allocations: 4 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3313, allocations: 0 / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3313, allocations: 4 kB / 1.329 GB, free: 14.79 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.0005329/0.3319, allocations: 302.1 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.3319, allocations: 8.031 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.332, allocations: 8.891 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.3321, allocations: 114.4 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.3321, allocations: 8.375 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.3321, allocations: 4.375 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.3323, allocations: 70.16 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.3323, allocations: 3.938 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.3323, allocations: 4 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3323, allocations: 0 / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.3325, allocations: 43.95 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006012/0.3331, allocations: 264.4 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.3333, allocations: 62.36 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3334, allocations: 28.97 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.3334, allocations: 4 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.3336, allocations: 71.38 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3336, allocations: 4 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004161/0.334, allocations: 129.5 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.334, allocations: 59.39 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.3341, allocations: 125.8 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.3342, allocations: 29.7 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.3342, allocations: 92.09 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.3342, allocations: 15.89 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.3343, allocations: 33.7 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3344, allocations: 318.8 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3345, allocations: 27.97 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3347, allocations: 73.98 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.3349, allocations: 109.8 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3349, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003183/0.3353, allocations: 133.5 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.3353, allocations: 8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3353, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3353, allocations: 4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.3354, allocations: 23.91 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3354, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.654e-05/0.3355, allocations: 7.938 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.3355, allocations: 4 kB / 1.331 GB, free: 12.42 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.0001041/0.3356, allocations: 135.9 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.3357, allocations: 7.891 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.655e-05/0.3357, allocations: 8.375 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3357, allocations: 3.938 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3357, allocations: 0 / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3357, allocations: 0 / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004483/0.3361, allocations: 322.1 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3361, allocations: 0 / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.2e-05/0.3362, allocations: 15.92 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3362, allocations: 0 / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3362, allocations: 4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3362, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3362, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.3365, allocations: 211.4 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.287e-05/0.3365, allocations: 7.891 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.3365, allocations: 4 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.3366, allocations: 7.984 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.3367, allocations: 11.92 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3367, allocations: 11.94 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.927e-05/0.3367, allocations: 91.27 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3367, allocations: 0 / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002496/0.337, allocations: 12 kB / 1.332 GB, free: 11.52 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.0001356/0.3371, allocations: 107.2 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3374, allocations: 84.05 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3374, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.3375, allocations: 31.97 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.3378, allocations: 9.234 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003238/0.3381, allocations: 158 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.738e-05/0.3382, allocations: 75.52 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.309e-05/0.3382, allocations: 12 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.3383, allocations: 19.42 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of SimCode: time 4.3e-07/0.3383, allocations: 0 / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of Templates: time 0.00366/0.3419, allocations: 1.061 MB / 1.334 GB, free: 9.973 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 -s gbode -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: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.721801357998629]