Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.00162/0.00162, 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.002075/0.002075, allocations: 208.7 kB / 23 MB, free: 4.57 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.256/3.256, allocations: 0.505 GB / 0.8108 GB, free: 22.01 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") [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.002036/0.002036, allocations: 63.25 kB / 1.178 GB, free: 16.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3751, allocations: 180.2 MB / 1.354 GB, free: 7.922 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002105/0.3772, allocations: 0.7597 MB / 1.355 GB, free: 7.164 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.3788, allocations: 1.116 MB / 1.356 GB, free: 6.035 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.312e-05/0.3789, allocations: 0 / 1.356 GB, free: 6.035 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.124e-05/0.3789, allocations: 11.86 kB / 1.356 GB, free: 6.023 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.435e-05/0.379, allocations: 7.938 kB / 1.356 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.3793, allocations: 51.83 kB / 1.356 GB, free: 5.965 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.3794, allocations: 67.83 kB / 1.356 GB, free: 5.898 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.3796, allocations: 20.17 kB / 1.356 GB, free: 5.875 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.365e-05/0.3796, allocations: 31.8 kB / 1.356 GB, free: 5.844 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.835e-05/0.3797, allocations: 35.91 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.3797, allocations: 4 kB / 1.356 GB, free: 5.805 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.072e-05/0.3798, allocations: 19.98 kB / 1.356 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3798, allocations: 19.91 kB / 1.356 GB, free: 5.766 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.3799, allocations: 31.86 kB / 1.356 GB, free: 5.734 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.38, allocations: 83.62 kB / 1.356 GB, free: 5.652 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3801, allocations: 0 / 1.356 GB, free: 5.652 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3801, allocations: 3.938 kB / 1.356 GB, free: 5.648 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.3801, allocations: 0 / 1.356 GB, free: 5.648 MB / 1.045 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.0006061/0.3807, allocations: 306 kB / 1.357 GB, free: 5.32 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.3807, allocations: 12.02 kB / 1.357 GB, free: 5.309 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/0.3808, allocations: 8.891 kB / 1.357 GB, free: 5.301 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.3809, allocations: 110.5 kB / 1.357 GB, free: 5.168 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.3809, allocations: 4.375 kB / 1.357 GB, free: 5.164 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.3809, allocations: 4.375 kB / 1.357 GB, free: 5.16 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.3812, allocations: 66.22 kB / 1.357 GB, free: 5.09 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3812, allocations: 3.938 kB / 1.357 GB, free: 5.086 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3812, allocations: 4 kB / 1.357 GB, free: 5.082 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3812, allocations: 4 kB / 1.357 GB, free: 5.078 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.3814, allocations: 47.89 kB / 1.357 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007427/0.3822, allocations: 295.7 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.3824, allocations: 58.58 kB / 1.357 GB, free: 4.633 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.3825, allocations: 28.91 kB / 1.357 GB, free: 4.602 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.3825, allocations: 4 kB / 1.357 GB, free: 4.598 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.3828, allocations: 75.38 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3828, allocations: 0 / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004798/0.3832, allocations: 129.6 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.3833, allocations: 55.34 kB / 1.357 GB, free: 4.312 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.3835, allocations: 129.8 kB / 1.358 GB, free: 4.176 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.3835, allocations: 25.7 kB / 1.358 GB, free: 4.145 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.3836, allocations: 92.12 kB / 1.358 GB, free: 4.051 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.3836, allocations: 19.89 kB / 1.358 GB, free: 4.031 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.3837, allocations: 29.7 kB / 1.358 GB, free: 3.996 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002022/0.3839, allocations: 322.8 kB / 1.358 GB, free: 3.672 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.384, allocations: 35.91 kB / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.3842, allocations: 69.98 kB / 1.358 GB, free: 3.547 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.3844, allocations: 109.8 kB / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3844, allocations: 0 / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003095/0.3847, allocations: 133.5 kB / 1.358 GB, free: 3.281 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3848, allocations: 8 kB / 1.358 GB, free: 3.273 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3848, allocations: 0 / 1.358 GB, free: 3.273 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3848, allocations: 4 kB / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.3849, allocations: 15.98 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3849, allocations: 12.14 kB / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.682e-05/0.385, allocations: 15.89 kB / 1.358 GB, free: 3.227 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.385, allocations: 4 kB / 1.358 GB, free: 3.223 MB / 1.045 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.0001207/0.3852, allocations: 135.8 kB / 1.359 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.3852, allocations: 4 kB / 1.359 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.3852, allocations: 4.375 kB / 1.359 GB, free: 3.074 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3852, allocations: 4 kB / 1.359 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3852, allocations: 0 / 1.359 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3852, allocations: 0 / 1.359 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.3858, allocations: 357.4 kB / 1.359 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3858, allocations: 0 / 1.359 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-05/0.3858, allocations: 11.98 kB / 1.359 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3858, allocations: 0 / 1.359 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3858, allocations: 0 / 1.359 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3858, allocations: 3.938 kB / 1.359 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3858, allocations: 4 kB / 1.359 GB, free: 2.652 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.3862, allocations: 203.8 kB / 1.359 GB, free: 2.438 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.695e-05/0.3862, allocations: 11.88 kB / 1.359 GB, free: 2.426 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.3862, allocations: 4 kB / 1.359 GB, free: 2.422 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.484e-05/0.3863, allocations: 11.94 kB / 1.359 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.3863, allocations: 3.984 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.3863, allocations: 7.938 kB / 1.359 GB, free: 2.398 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.767e-05/0.3864, allocations: 103.8 kB / 1.359 GB, free: 2.297 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3864, allocations: 0 / 1.359 GB, free: 2.297 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002579/0.3867, allocations: 16 kB / 1.359 GB, free: 2.281 MB / 1.045 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.000186/0.3868, allocations: 103.2 kB / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002885/0.3871, allocations: 76.14 kB / 1.359 GB, free: 2.098 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3871, allocations: 4.125 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.3873, allocations: 39.95 kB / 1.36 GB, free: 2.055 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.3875, allocations: 7.984 kB / 1.36 GB, free: 2.047 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004324/0.388, allocations: 191.8 kB / 1.36 GB, free: 1.824 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.3884, allocations: 0.6846 MB / 1.36 GB, free: 1.113 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.3884, allocations: 19.42 kB / 1.36 GB, free: 1.094 MB / 1.045 GB Notification: Performance of SimCode: time 2.91e-07/0.3884, allocations: 0 / 1.36 GB, free: 1.094 MB / 1.045 GB Notification: Performance of Templates: time 0.003238/0.3917, allocations: 1.055 MB / 1.361 GB, free: 52 kB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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: 11.3674615539785]