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.001366/0.001366, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00149/0.00149, allocations: 212.8 kB / 22.99 MB, free: 4.945 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.258/3.258, allocations: 0.5107 GB / 0.8166 GB, free: 17.8 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.002098/0.002098, allocations: 66.92 kB / 1.187 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3763, allocations: 181.9 MB / 1.365 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002148/0.3785, allocations: 0.7504 MB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.3801, allocations: 1.086 MB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.151e-05/0.3801, allocations: 4 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.725e-05/0.3801, allocations: 3.938 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.702e-05/0.3802, allocations: 15.86 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003127/0.3805, allocations: 51.83 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.3807, allocations: 75.77 kB / 1.367 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.3808, allocations: 12.17 kB / 1.367 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.772e-05/0.3809, allocations: 31.92 kB / 1.367 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.988e-05/0.3809, allocations: 31.78 kB / 1.367 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.381, allocations: 8 kB / 1.367 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.684e-05/0.381, allocations: 19.98 kB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.3811, allocations: 11.92 kB / 1.367 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.3811, allocations: 23.92 kB / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.3813, allocations: 91.5 kB / 1.367 GB, free: 11.36 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3813, allocations: 0 / 1.367 GB, free: 11.36 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.013e-06/0.3813, allocations: 0 / 1.367 GB, free: 11.36 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.3813, allocations: 0 / 1.367 GB, free: 11.36 MB / 1.061 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.0006031/0.3819, allocations: 303.6 kB / 1.367 GB, free: 11.04 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3819, allocations: 8.031 kB / 1.367 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.176e-05/0.382, allocations: 12.88 kB / 1.367 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.3821, allocations: 114.5 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3821, allocations: 8.375 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.3821, allocations: 4.375 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.3823, allocations: 70.16 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3823, allocations: 3.938 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.3824, allocations: 4 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3824, allocations: 4 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.3825, allocations: 43.95 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.3831, allocations: 260.3 kB / 1.368 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.3833, allocations: 46.56 kB / 1.368 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3834, allocations: 32.95 kB / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.3834, allocations: 8 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.3837, allocations: 75.38 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3837, allocations: 0 / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004195/0.3841, allocations: 133.6 kB / 1.368 GB, free: 10.14 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.3841, allocations: 55.41 kB / 1.368 GB, free: 10.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3842, allocations: 117.8 kB / 1.368 GB, free: 9.945 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.3843, allocations: 25.7 kB / 1.368 GB, free: 9.914 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.534e-05/0.3843, allocations: 104.1 kB / 1.368 GB, free: 9.809 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.3844, allocations: 7.906 kB / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.3844, allocations: 33.7 kB / 1.368 GB, free: 9.762 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3846, allocations: 326.7 kB / 1.369 GB, free: 9.434 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.3847, allocations: 23.98 kB / 1.369 GB, free: 9.41 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.3848, allocations: 77.97 kB / 1.369 GB, free: 9.312 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.3851, allocations: 109.8 kB / 1.369 GB, free: 9.184 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/0.3851, allocations: 8 kB / 1.369 GB, free: 9.176 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003056/0.3854, allocations: 133.7 kB / 1.369 GB, free: 9.039 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3854, allocations: 4 kB / 1.369 GB, free: 9.035 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3854, allocations: 4.312 kB / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3854, allocations: 0 / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.3856, allocations: 19.92 kB / 1.369 GB, free: 9.012 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3856, allocations: 4 kB / 1.369 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.3857, allocations: 15.88 kB / 1.369 GB, free: 8.992 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3857, allocations: 11.98 kB / 1.369 GB, free: 8.98 MB / 1.061 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.0001099/0.3858, allocations: 125.7 kB / 1.369 GB, free: 8.848 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.3858, allocations: 8.016 kB / 1.369 GB, free: 8.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.3858, allocations: 16.36 kB / 1.369 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3858, allocations: 0 / 1.369 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3858, allocations: 0 / 1.369 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3858, allocations: 0 / 1.369 GB, free: 8.82 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000458/0.3863, allocations: 314.1 kB / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3863, allocations: 0 / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.196e-05/0.3864, allocations: 11.97 kB / 1.369 GB, free: 8.465 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.3864, allocations: 8 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3864, allocations: 4 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3864, allocations: 0 / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3864, allocations: 0 / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.3867, allocations: 203.4 kB / 1.37 GB, free: 8.238 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.45e-05/0.3867, allocations: 11.89 kB / 1.37 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.3867, allocations: 0 / 1.37 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.197e-05/0.3868, allocations: 7.984 kB / 1.37 GB, free: 8.219 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.3868, allocations: 7.938 kB / 1.37 GB, free: 8.211 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.3868, allocations: 11.94 kB / 1.37 GB, free: 8.199 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.854e-05/0.3869, allocations: 99.8 kB / 1.37 GB, free: 8.102 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3869, allocations: 0 / 1.37 GB, free: 8.102 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000255/0.3872, allocations: 20 kB / 1.37 GB, free: 8.082 MB / 1.061 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.0001573/0.3873, allocations: 99.23 kB / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002783/0.3876, allocations: 76.25 kB / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3876, allocations: 64 / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3877, allocations: 39.91 kB / 1.37 GB, free: 7.863 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.388, allocations: 13.7 kB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004137/0.3884, allocations: 187.8 kB / 1.37 GB, free: 7.633 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.678e-05/0.3885, allocations: 83.2 kB / 1.37 GB, free: 7.531 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.488e-05/0.3885, allocations: 11.44 kB / 1.37 GB, free: 7.52 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.3885, allocations: 4 kB / 1.37 GB, free: 7.516 MB / 1.061 GB Notification: Performance of Templates: time 0.003003/0.3915, allocations: 1.067 MB / 1.371 GB, free: 6.461 MB / 1.061 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.272900445852429]