Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001096/0.001096, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00157/0.002666, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007004/0.0007004, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009168/0.001617, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9652/0.9652, allocations: 177.2 MB / 189.8 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1078/1.073, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.893/1.893, allocations: 378.4 MB / 0.6079 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5154/2.408, allocations: 123.3 MB / 0.7283 GB, free: 5.719 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 0.7296 GB, free: 4.434 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.081e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.43 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001395/0.001416, allocations: 0.7343 MB / 0.7303 GB, free: 3.73 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0009575/0.002373, allocations: 1.115 MB / 0.7314 GB, free: 2.605 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.888e-05/0.002412, allocations: 4 kB / 0.7314 GB, free: 2.602 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.384e-05/0.002436, allocations: 3.938 kB / 0.7314 GB, free: 2.598 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 3.876e-05/0.002475, allocations: 9.234 kB / 0.7314 GB, free: 2.594 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.00265, allocations: 47.7 kB / 0.7315 GB, free: 2.547 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.585e-05/0.002746, allocations: 45.06 kB / 0.7315 GB, free: 2.512 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 7.629e-05/0.002822, allocations: 15.97 kB / 0.7316 GB, free: 2.496 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.919e-05/0.002921, allocations: 30.5 kB / 0.7316 GB, free: 2.469 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.593e-05/0.002977, allocations: 18.08 kB / 0.7316 GB, free: 2.453 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.002991, allocations: 4 kB / 0.7316 GB, free: 2.449 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.003068, allocations: 21.25 kB / 0.7316 GB, free: 2.43 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.00309, allocations: 10.83 kB / 0.7316 GB, free: 2.422 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.218e-05/0.003112, allocations: 13.73 kB / 0.7316 GB, free: 2.41 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.003224, allocations: 42.58 kB / 0.7317 GB, free: 2.371 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.198e-05/0.003236, allocations: 3.828 kB / 0.7317 GB, free: 2.371 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.91e-07/0.003236, allocations: 0.5 kB / 0.7317 GB, free: 2.371 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.378e-05/0.00325, allocations: 4.781 kB / 0.7317 GB, free: 2.367 MB / 0.698 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.0004399/0.00369, allocations: 269.1 kB / 0.732 GB, free: 2.078 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.003721, allocations: 8.938 kB / 0.732 GB, free: 2.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.003843, allocations: 86.05 kB / 0.732 GB, free: 1.969 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.089e-05/0.003924, allocations: 114.4 kB / 0.7322 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.003934, allocations: 4.375 kB / 0.7322 GB, free: 1.828 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.003946, allocations: 1.781 kB / 0.7322 GB, free: 1.828 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.004053, allocations: 70.88 kB / 0.7322 GB, free: 1.75 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.00406, allocations: 192 / 0.7322 GB, free: 1.75 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.004067, allocations: 384 / 0.7322 GB, free: 1.75 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.004073, allocations: 4.906 kB / 0.7322 GB, free: 1.746 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.456e-05/0.004098, allocations: 13.45 kB / 0.7322 GB, free: 1.734 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002371/0.004335, allocations: 164.2 kB / 0.7324 GB, free: 1.559 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.325e-05/0.004408, allocations: 38.56 kB / 0.7324 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.5e-05/0.004423, allocations: 9.859 kB / 0.7324 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.00444, allocations: 0 / 0.7324 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.915e-05/0.004519, allocations: 60.14 kB / 0.7325 GB, free: 1.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.00452, allocations: 0 / 0.7325 GB, free: 1.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001111/0.004631, allocations: 59.06 kB / 0.7326 GB, free: 1.367 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.004669, allocations: 59.34 kB / 0.7326 GB, free: 1.297 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.76e-05/0.004726, allocations: 110.7 kB / 0.7327 GB, free: 1.176 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.004741, allocations: 25.7 kB / 0.7327 GB, free: 1.145 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.064e-05/0.004771, allocations: 81.73 kB / 0.7328 GB, free: 1.062 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.00479, allocations: 23.88 kB / 0.7328 GB, free: 1.039 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.004818, allocations: 13.72 kB / 0.7329 GB, free: 1.02 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/0.004893, allocations: 326.8 kB / 0.7332 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.236e-05/0.004905, allocations: 4.75 kB / 0.7332 GB, free: 0.6875 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.004929, allocations: 27.44 kB / 0.7332 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.66e-05/0.004976, allocations: 52.64 kB / 0.7333 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.004979, allocations: 1.688 kB / 0.7333 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 6.789e-05/0.005046, allocations: 57.61 kB / 0.7333 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.00506, allocations: 11.94 kB / 0.7333 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.005064, allocations: 1.281 kB / 0.7333 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.005076, allocations: 3.938 kB / 0.7333 GB, free: 0.5078 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.707e-05/0.005153, allocations: 19.94 kB / 0.7333 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.005157, allocations: 4.641 kB / 0.7333 GB, free: 496 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.499e-05/0.005182, allocations: 11.89 kB / 0.7334 GB, free: 484 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.005189, allocations: 5.125 kB / 0.7334 GB, free: 480 kB / 0.698 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 5.802e-05/0.005247, allocations: 109.9 kB / 0.7335 GB, free: 360 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-06/0.005256, allocations: 8.859 kB / 0.7335 GB, free: 352 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.005331, allocations: 58.05 kB / 0.7335 GB, free: 284 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.005335, allocations: 7.938 kB / 0.7335 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.005336, allocations: 1.25 kB / 0.7335 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.00534, allocations: 0 / 0.7335 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.005492, allocations: 199.4 kB / 0.7337 GB, free: 52 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.005495, allocations: 5.234 kB / 0.7337 GB, free: 48 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-05/0.005528, allocations: 7.938 kB / 0.7337 GB, free: 40 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-06/0.005535, allocations: 11.89 kB / 0.7338 GB, free: 28 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.005538, allocations: 1.031 kB / 0.7338 GB, free: 28 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.005544, allocations: 4 kB / 0.7338 GB, free: 24 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.005546, allocations: 0 / 0.7338 GB, free: 24 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.005547, allocations: 0.5312 kB / 0.7338 GB, free: 24 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.556e-05/0.005642, allocations: 148.7 kB / 0.7339 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.005658, allocations: 7.938 kB / 0.7339 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.209e-05/0.0057, allocations: 7.984 kB / 0.7339 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/0.005732, allocations: 4.781 kB / 0.7339 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.005742, allocations: 0 / 0.7339 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.682e-05/0.005758, allocations: 14.06 kB / 0.7339 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.005758, allocations: 0 / 0.7339 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001325/0.005891, allocations: 19.94 kB / 0.734 GB, free: 15.81 MB / 0.7136 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.0001292/0.00602, allocations: 85.66 kB / 0.734 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.699e-05/0.006097, allocations: 29.55 kB / 0.7341 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.006104, allocations: 7.984 kB / 0.7341 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.029e-05/0.006134, allocations: 18.7 kB / 0.7341 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001648/0.006299, allocations: 64.02 kB / 0.7342 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005835/0.006882, allocations: 149.8 kB / 0.7343 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.296e-05/0.006915, allocations: 55.36 kB / 0.7343 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.777e-05/0.006943, allocations: 8.641 kB / 0.7344 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.958e-05/0.006993, allocations: 52.69 kB / 0.7344 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of SimCode: time 1.102e-06/0.006994, allocations: 0 / 0.7344 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of Templates: time 0.002522/0.009516, allocations: 0.8584 MB / 0.7352 GB, free: 14.47 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.969216281548142]