Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001848/0.001848, 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.002546/0.002546, allocations: 215.9 kB / 22.25 MB, free: 4.855 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.566/1.566, allocations: 230.6 MB / 256 MB, free: 7.781 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.604/3.604, allocations: 0.5107 GB / 0.8158 GB, free: 17.91 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.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [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.002294/0.002294, allocations: 68.38 kB / 1.186 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4776/0.4799, allocations: 181.9 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002536/0.4824, allocations: 0.7402 MB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.4844, allocations: 1.183 MB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.702e-05/0.4844, allocations: 4 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.889e-05/0.4845, allocations: 7.875 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.836e-05/0.4846, allocations: 7.875 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006281/0.4852, allocations: 152.6 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.4854, allocations: 119.8 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.4856, allocations: 20.17 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.4857, allocations: 51.84 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.4858, allocations: 39.88 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.4859, allocations: 15.94 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.486, allocations: 23.98 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.631e-05/0.486, allocations: 19.92 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.742e-05/0.4861, allocations: 39.84 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.4863, allocations: 139.5 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4864, allocations: 4 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4864, allocations: 0 / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.402e-05/0.4864, allocations: 0 / 1.366 GB, free: 11.03 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007419/0.4871, allocations: 339.8 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4872, allocations: 8.031 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.4873, allocations: 12.89 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.4874, allocations: 118.4 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.4874, allocations: 8.359 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.4875, allocations: 8.375 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.4877, allocations: 78.16 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.4877, allocations: 3.938 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.4877, allocations: 4 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4877, allocations: 0 / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.4879, allocations: 43.95 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.4885, allocations: 272.4 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.4887, allocations: 58.48 kB / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4888, allocations: 28.97 kB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.4888, allocations: 3.984 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.4891, allocations: 95.34 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 4.238e-06/0.4891, allocations: 3.984 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0004776/0.4896, allocations: 141.6 kB / 1.367 GB, free: 9.703 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.4896, allocations: 67.39 kB / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.4898, allocations: 121.8 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.4898, allocations: 25.7 kB / 1.368 GB, free: 9.465 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.4899, allocations: 96.09 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.4899, allocations: 23.83 kB / 1.368 GB, free: 9.344 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.49, allocations: 37.7 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4902, allocations: 326.8 kB / 1.368 GB, free: 8.973 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.4904, allocations: 77.67 kB / 1.368 GB, free: 8.891 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.4906, allocations: 118.8 kB / 1.368 GB, free: 8.75 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.4909, allocations: 162.7 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.654e-06/0.4909, allocations: 3.938 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005011/0.4914, allocations: 240.9 kB / 1.369 GB, free: 8.309 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.4915, allocations: 41.69 kB / 1.369 GB, free: 8.262 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4915, allocations: 4 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.4915, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.4916, allocations: 15.98 kB / 1.369 GB, free: 8.242 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4916, allocations: 3.938 kB / 1.369 GB, free: 8.238 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.4918, allocations: 35.91 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.4918, allocations: 16.06 kB / 1.369 GB, free: 8.188 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.000115/0.492, allocations: 125.7 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.492, allocations: 4 kB / 1.369 GB, free: 8.051 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.4923, allocations: 126.2 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.4923, allocations: 0 / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4923, allocations: 3.938 kB / 1.369 GB, free: 7.914 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4923, allocations: 0 / 1.369 GB, free: 7.914 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.4928, allocations: 330.2 kB / 1.369 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4928, allocations: 0 / 1.369 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.4928, allocations: 11.98 kB / 1.369 GB, free: 7.543 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.4928, allocations: 0 / 1.369 GB, free: 7.543 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.4928, allocations: 4 kB / 1.369 GB, free: 7.539 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4928, allocations: 0 / 1.369 GB, free: 7.539 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4928, allocations: 3.938 kB / 1.369 GB, free: 7.535 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.4932, allocations: 219.4 kB / 1.37 GB, free: 7.305 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.247e-05/0.4932, allocations: 8 kB / 1.37 GB, free: 7.297 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.4932, allocations: 0 / 1.37 GB, free: 7.297 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/0.4933, allocations: 7.984 kB / 1.37 GB, free: 7.289 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.4934, allocations: 11.98 kB / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.4934, allocations: 8 kB / 1.37 GB, free: 7.27 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.263e-05/0.4935, allocations: 95.2 kB / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4935, allocations: 0 / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002791/0.4937, allocations: 27.95 kB / 1.37 GB, free: 7.148 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000152/0.4939, allocations: 99.23 kB / 1.37 GB, free: 7.043 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004539/0.4943, allocations: 200.9 kB / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4943, allocations: 0 / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.4945, allocations: 35.97 kB / 1.37 GB, free: 6.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.4948, allocations: 20.73 kB / 1.37 GB, free: 6.773 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004452/0.4952, allocations: 175.5 kB / 1.37 GB, free: 6.578 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.557e-05/0.4953, allocations: 83.27 kB / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.859e-05/0.4954, allocations: 4 kB / 1.37 GB, free: 6.473 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.4954, allocations: 11.38 kB / 1.37 GB, free: 6.461 MB / 1.061 GB Notification: Performance of SimCode: time 3.7e-07/0.4954, allocations: 0 / 1.37 GB, free: 6.461 MB / 1.061 GB Notification: Performance of Templates: time 0.005356/0.5007, allocations: 1.594 MB / 1.372 GB, free: 4.902 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.936530759558082]