Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.002158/0.002158, 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.002528/0.002528, allocations: 217.1 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.053/3.053, allocations: 476 MB / 0.7699 GB, free: 4.801 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.002155/0.002155, allocations: 67.62 kB / 1.117 GB, free: 41.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4041, allocations: 170 MB / 1.283 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002052/0.4062, allocations: 0.669 MB / 1.284 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.4077, allocations: 1.079 MB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.91e-05/0.4077, allocations: 0 / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.871e-05/0.4078, allocations: 3.938 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.161e-05/0.4078, allocations: 7.922 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.4082, allocations: 47.83 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.4083, allocations: 51.84 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.4084, allocations: 7.984 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.175e-05/0.4085, allocations: 15.94 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.078e-05/0.4085, allocations: 23.84 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.4085, allocations: 8 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.463e-05/0.4086, allocations: 19.98 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.977e-05/0.4086, allocations: 11.98 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.15e-05/0.4087, allocations: 23.92 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.4088, allocations: 59.72 kB / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4088, allocations: 0 / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.823e-06/0.4088, allocations: 0 / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.4088, allocations: 0 / 1.285 GB, free: 9.98 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006673/0.4095, allocations: 294.2 kB / 1.285 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.4096, allocations: 8.031 kB / 1.285 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.4097, allocations: 8.891 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.4098, allocations: 114.5 kB / 1.285 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.4098, allocations: 4.375 kB / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.4098, allocations: 8.375 kB / 1.285 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.41, allocations: 62.17 kB / 1.285 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.41, allocations: 4.172 kB / 1.285 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.41, allocations: 3.938 kB / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.4101, allocations: 4 kB / 1.285 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.4102, allocations: 39.95 kB / 1.286 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004827/0.4107, allocations: 224.5 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.4109, allocations: 58.48 kB / 1.286 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.411, allocations: 32.89 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.411, allocations: 0 / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.4112, allocations: 79.38 kB / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.4112, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004298/0.4117, allocations: 113.6 kB / 1.286 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.4117, allocations: 55.39 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.831e-05/0.4118, allocations: 101.9 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.4118, allocations: 33.7 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.4119, allocations: 88.08 kB / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.4119, allocations: 15.91 kB / 1.286 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.412, allocations: 21.72 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4121, allocations: 326.8 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.052e-05/0.4122, allocations: 23.92 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.4123, allocations: 47.41 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.4125, allocations: 79.33 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4125, allocations: 4 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002614/0.4128, allocations: 105.5 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.4128, allocations: 4 kB / 1.287 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4128, allocations: 0 / 1.287 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.4128, allocations: 4 kB / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4129, allocations: 19.92 kB / 1.287 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.4129, allocations: 4 kB / 1.287 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.774e-05/0.413, allocations: 19.97 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.413, allocations: 0 / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001157/0.4131, allocations: 117.8 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.017e-05/0.4131, allocations: 4 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.4134, allocations: 106.5 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4134, allocations: 0 / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4134, allocations: 64 / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4134, allocations: 4 kB / 1.287 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.4139, allocations: 302.2 kB / 1.287 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4139, allocations: 0 / 1.287 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.62e-05/0.414, allocations: 7.938 kB / 1.287 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.414, allocations: 3.984 kB / 1.287 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.414, allocations: 4 kB / 1.287 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.414, allocations: 0 / 1.287 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.414, allocations: 0 / 1.287 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.4143, allocations: 195.4 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.4143, allocations: 11.94 kB / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.4143, allocations: 0 / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.608e-05/0.4144, allocations: 11.98 kB / 1.288 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.4144, allocations: 0 / 1.288 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.4145, allocations: 8 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.357e-05/0.4145, allocations: 83.27 kB / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4145, allocations: 0 / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002418/0.4148, allocations: 12 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001634/0.4149, allocations: 119.1 kB / 1.288 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002658/0.4152, allocations: 71.84 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4152, allocations: 0 / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.4153, allocations: 27.98 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.4156, allocations: 11.92 kB / 1.288 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.4159, allocations: 130.6 kB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.808e-05/0.416, allocations: 67.53 kB / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.632e-05/0.416, allocations: 7.984 kB / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.4161, allocations: 15.44 kB / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.4161, allocations: 0 / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of Templates: time 0.003968/0.42, allocations: 0.8405 MB / 1.289 GB, free: 5.562 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.721089392900467]