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.001495/0.001495, 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.001778/0.001778, allocations: 213.8 kB / 22.25 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.601/1.601, allocations: 230.6 MB / 256 MB, free: 7.793 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.427/3.427, allocations: 0.4892 GB / 0.7943 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 176] 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.002955/0.002955, allocations: 62.62 kB / 1.154 GB, free: 25.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4124, allocations: 176.1 MB / 1.326 GB, free: 1.867 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002138/0.4146, allocations: 0.7375 MB / 1.326 GB, free: 1.137 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.4162, allocations: 1.085 MB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.846e-05/0.4162, allocations: 3.938 kB / 1.327 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.676e-05/0.4163, allocations: 3.938 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.373e-05/0.4164, allocations: 19.84 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.4167, allocations: 43.91 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.4169, allocations: 75.75 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.417, allocations: 20.19 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.571e-05/0.4171, allocations: 31.86 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.668e-05/0.4171, allocations: 31.89 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.4172, allocations: 4 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/0.4172, allocations: 19.92 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.706e-05/0.4172, allocations: 15.98 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.173e-05/0.4173, allocations: 23.88 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.4175, allocations: 83.61 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4175, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.522e-06/0.4175, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.4175, allocations: 4 kB / 1.328 GB, free: 15.66 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.0006001/0.4181, allocations: 306 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.4181, allocations: 8.031 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.4182, allocations: 8.891 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.4183, allocations: 118.5 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.4183, allocations: 8.375 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.4183, allocations: 4.375 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.4185, allocations: 70.17 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4185, allocations: 3.938 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.4186, allocations: 4 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.4186, allocations: 7.922 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.4187, allocations: 39.97 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.4194, allocations: 264.3 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.4196, allocations: 58.52 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.4198, allocations: 32.95 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.4198, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.4201, allocations: 75.38 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.4201, allocations: 0 / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0005747/0.4206, allocations: 137.5 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.48e-05/0.4207, allocations: 59.39 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.4209, allocations: 117.8 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.4209, allocations: 33.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.745e-05/0.421, allocations: 92.08 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.815e-05/0.4211, allocations: 15.91 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.328e-05/0.4211, allocations: 29.7 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000238/0.4214, allocations: 322.8 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.4215, allocations: 27.97 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.4216, allocations: 69.98 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.4219, allocations: 113.8 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4219, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003239/0.4222, allocations: 133.5 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.4223, allocations: 8 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.4223, allocations: 0 / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.4223, allocations: 4 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.4224, allocations: 23.91 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.4224, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.003e-05/0.4225, allocations: 11.94 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.4225, allocations: 7.984 kB / 1.33 GB, free: 13.27 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.0001873/0.4227, allocations: 126.5 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.4227, allocations: 11.89 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.4228, allocations: 8.375 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4228, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.4228, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4228, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006264/0.4234, allocations: 322 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4234, allocations: 3.984 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/0.4235, allocations: 8 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4235, allocations: 3.938 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.4235, allocations: 0 / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.4235, allocations: 4 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4235, allocations: 7.922 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.424, allocations: 203.4 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.424, allocations: 7.891 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.4241, allocations: 11.98 kB / 1.33 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.694e-05/0.4241, allocations: 0 / 1.33 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.4242, allocations: 11.98 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.4242, allocations: 11.94 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.908e-05/0.4243, allocations: 91.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4243, allocations: 0 / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002883/0.4246, allocations: 12 kB / 1.331 GB, free: 12.38 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.0002887/0.4249, allocations: 111.5 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003579/0.4252, allocations: 84.06 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4252, allocations: 0 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.4254, allocations: 31.97 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.4257, allocations: 8 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005687/0.4263, allocations: 155.8 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.4264, allocations: 79.2 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.331e-05/0.4264, allocations: 12.17 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.4265, allocations: 15.44 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4265, allocations: 0 / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of Templates: time 0.005315/0.4318, allocations: 1.049 MB / 1.332 GB, free: 10.84 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/jenkins/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: 9.78396730683744]