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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 199.5 kB / 22.17 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 225.6 MB / 250.9 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.804/2.804, allocations: 476.7 MB / 0.7645 GB, free: 10.08 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 63.89 kB / 1.109 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7787/0.7808, allocations: 168.7 MB / 1.274 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002013/0.7828, allocations: 0.6745 MB / 1.275 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.7843, allocations: 1.057 MB / 1.276 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.535e-05/0.7843, allocations: 0 / 1.276 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.427e-05/0.7843, allocations: 3.938 kB / 1.276 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.264e-05/0.7844, allocations: 11.94 kB / 1.276 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.7847, allocations: 39.83 kB / 1.276 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.7849, allocations: 51.84 kB / 1.276 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.672e-05/0.7849, allocations: 4 kB / 1.276 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.468e-05/0.785, allocations: 27.86 kB / 1.276 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.359e-05/0.7851, allocations: 23.91 kB / 1.276 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.7851, allocations: 4 kB / 1.276 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.7852, allocations: 15.98 kB / 1.276 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.247e-05/0.7852, allocations: 11.98 kB / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.7853, allocations: 15.88 kB / 1.276 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.7854, allocations: 58.52 kB / 1.276 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.7854, allocations: 3.984 kB / 1.276 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.132e-06/0.7854, allocations: 0 / 1.276 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.7854, allocations: 0 / 1.276 GB, free: 2.367 MB / 0.9669 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.0006872/0.7861, allocations: 371.3 kB / 1.276 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.7861, allocations: 8.031 kB / 1.276 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.7862, allocations: 4.938 kB / 1.276 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.7863, allocations: 172.3 kB / 1.277 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.7864, allocations: 384 / 1.277 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.7864, allocations: 12.3 kB / 1.277 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.7866, allocations: 58.23 kB / 1.277 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.7866, allocations: 4.188 kB / 1.277 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.7866, allocations: 3.938 kB / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.7866, allocations: 0 / 1.277 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.7868, allocations: 43.95 kB / 1.277 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.7873, allocations: 280.8 kB / 1.277 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.7875, allocations: 62.36 kB / 1.277 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.7876, allocations: 26.52 kB / 1.277 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.7876, allocations: 7.938 kB / 1.277 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.7878, allocations: 75.38 kB / 1.277 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.7878, allocations: 0 / 1.277 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004529/0.7883, allocations: 125.5 kB / 1.277 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.7883, allocations: 55.41 kB / 1.277 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.7884, allocations: 113.8 kB / 1.277 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.7885, allocations: 25.7 kB / 1.277 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.867e-05/0.7885, allocations: 80.14 kB / 1.277 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.7885, allocations: 19.89 kB / 1.277 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.7886, allocations: 17.72 kB / 1.277 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.7887, allocations: 322.8 kB / 1.278 GB, free: 304 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.856e-05/0.7888, allocations: 19.98 kB / 1.278 GB, free: 284 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.7889, allocations: 51.41 kB / 1.278 GB, free: 220 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.7892, allocations: 83.27 kB / 1.278 GB, free: 124 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.7892, allocations: 0 / 1.278 GB, free: 124 kB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002698/0.7894, allocations: 105.5 kB / 1.278 GB, free: 12 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.7895, allocations: 8 kB / 1.278 GB, free: 4 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.7895, allocations: 0 / 1.278 GB, free: 4 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.7895, allocations: 3.984 kB / 1.278 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.7896, allocations: 16.05 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.096e-06/0.7896, allocations: 3.984 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.7897, allocations: 4.094 kB / 1.278 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.7897, allocations: 8.5 kB / 1.278 GB, free: 15.96 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.0001023/0.7898, allocations: 126.2 kB / 1.278 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.7898, allocations: 7.953 kB / 1.278 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.7901, allocations: 106 kB / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.7901, allocations: 0 / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.7901, allocations: 4 kB / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.7901, allocations: 0 / 1.278 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004736/0.7906, allocations: 358.6 kB / 1.279 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7906, allocations: 3.938 kB / 1.279 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.7906, allocations: 11.98 kB / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.7906, allocations: 0 / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.7907, allocations: 0 / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7907, allocations: 160 / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7907, allocations: 0 / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.791, allocations: 203.2 kB / 1.279 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.791, allocations: 81.09 kB / 1.279 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.791, allocations: 0 / 1.279 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.7912, allocations: 15.98 kB / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.697e-05/0.7912, allocations: 3.938 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.7912, allocations: 7.938 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.778e-05/0.7913, allocations: 91.27 kB / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.7913, allocations: 3.938 kB / 1.279 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002474/0.7915, allocations: 12 kB / 1.279 GB, free: 14.84 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.0001543/0.7917, allocations: 95.25 kB / 1.279 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002828/0.7919, allocations: 67.88 kB / 1.279 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7919, allocations: 192 / 1.279 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.7921, allocations: 32.36 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.7924, allocations: 17.53 kB / 1.279 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.7927, allocations: 150 kB / 1.279 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.793, allocations: 0.6807 MB / 1.28 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.7931, allocations: 11.92 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.752e-05/0.7931, allocations: 15.44 kB / 1.28 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of SimCode: time 3.71e-07/0.7931, allocations: 0 / 1.28 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of Templates: time 0.003614/0.7967, allocations: 0.7987 MB / 1.281 GB, free: 12.93 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.539741116110235]