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.001735/0.001735, allocations: 83.69 kB / 20.23 MB, free: 4.184 MB / 18.57 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.001933/0.001933, allocations: 161.3 kB / 23.55 MB, free: 0.8672 MB / 18.57 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.576/1.576, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.927/2.927, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 2.395e-06/2.395e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.234e-05/3.474e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001979/0.002013, allocations: 0.6687 MB / 0.787 GB, free: 12.15 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001981/0.003995, allocations: 1.091 MB / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/0.004036, allocations: 4 kB / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.004066, allocations: 7.922 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.338e-05/0.004149, allocations: 5.156 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003029/0.004452, allocations: 43.77 kB / 0.7881 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.004575, allocations: 51.84 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.49e-05/0.004669, allocations: 8.609 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.004771, allocations: 27.98 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.004824, allocations: 17.31 kB / 0.7882 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.004844, allocations: 4 kB / 0.7882 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.325e-05/0.004917, allocations: 19.98 kB / 0.7883 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.687e-05/0.004944, allocations: 12.83 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.004982, allocations: 15.92 kB / 0.7883 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.005158, allocations: 63.78 kB / 0.7883 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.005164, allocations: 4.562 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.71e-07/0.005165, allocations: 0.6875 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.005169, allocations: 0 / 0.7884 GB, free: 10.77 MB / 0.7448 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.0006798/0.005849, allocations: 393.7 kB / 0.7887 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.005887, allocations: 8.031 kB / 0.7887 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.006002, allocations: 14.48 kB / 0.7887 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.006138, allocations: 116.6 kB / 0.7889 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.00616, allocations: 8.375 kB / 0.7889 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.006171, allocations: 384 / 0.7889 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.006349, allocations: 59.77 kB / 0.7889 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.00636, allocations: 192 / 0.7889 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.006373, allocations: 4.375 kB / 0.7889 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.006383, allocations: 4.359 kB / 0.7889 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.006518, allocations: 32.52 kB / 0.789 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.007059, allocations: 275.2 kB / 0.7892 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.007225, allocations: 58.98 kB / 0.7893 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.826e-05/0.007303, allocations: 23.8 kB / 0.7893 GB, free: 9.684 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.007332, allocations: 4 kB / 0.7893 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.007499, allocations: 80.94 kB / 0.7894 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.0075, allocations: 0 / 0.7894 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0003666/0.007867, allocations: 106.3 kB / 0.7895 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.007934, allocations: 51.41 kB / 0.7895 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.008086, allocations: 166.9 kB / 0.7897 GB, free: 9.234 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.008119, allocations: 33.7 kB / 0.7897 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.605e-05/0.008215, allocations: 132.2 kB / 0.7899 GB, free: 9.062 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.008249, allocations: 19.92 kB / 0.7899 GB, free: 9.043 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.008307, allocations: 31.36 kB / 0.7899 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002885/0.008596, allocations: 0.4895 MB / 0.7904 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.008672, allocations: 19.98 kB / 0.7904 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.008784, allocations: 58.73 kB / 0.7905 GB, free: 8.41 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.008966, allocations: 77.27 kB / 0.7905 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.008971, allocations: 8.062 kB / 0.7905 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002328/0.009204, allocations: 94.27 kB / 0.7906 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.009224, allocations: 13.28 kB / 0.7906 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.00923, allocations: 0 / 0.7906 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.009246, allocations: 3.938 kB / 0.7906 GB, free: 8.199 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.122e-05/0.009337, allocations: 12 kB / 0.7907 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.009346, allocations: 4.484 kB / 0.7907 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.897e-05/0.009395, allocations: 8.5 kB / 0.7907 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.009409, allocations: 4.562 kB / 0.7907 GB, free: 8.172 MB / 0.7448 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.0001328/0.009541, allocations: 161.7 kB / 0.7908 GB, free: 8.004 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.009566, allocations: 11.89 kB / 0.7908 GB, free: 7.992 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002605/0.009827, allocations: 94.03 kB / 0.7909 GB, free: 7.898 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.009829, allocations: 0.7812 kB / 0.7909 GB, free: 7.898 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.009833, allocations: 0 / 0.7909 GB, free: 7.898 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.009839, allocations: 5.281 kB / 0.7909 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/0.0103, allocations: 337.4 kB / 0.7913 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.01031, allocations: 3.938 kB / 0.7913 GB, free: 7.52 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-05/0.01036, allocations: 13.3 kB / 0.7913 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.01036, allocations: 0 / 0.7913 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.01037, allocations: 0 / 0.7913 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.01037, allocations: 0.5312 kB / 0.7913 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01037, allocations: 0.6875 kB / 0.7913 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.01069, allocations: 240.7 kB / 0.7915 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.331e-05/0.0107, allocations: 7.938 kB / 0.7915 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.01073, allocations: 4.984 kB / 0.7915 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.01081, allocations: 8 kB / 0.7915 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.01086, allocations: 12.8 kB / 0.7915 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.01088, allocations: 0 / 0.7915 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.89e-05/0.01097, allocations: 132.1 kB / 0.7917 GB, free: 7.094 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.01097, allocations: 0 / 0.7917 GB, free: 7.094 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002268/0.01119, allocations: 12 kB / 0.7917 GB, free: 7.082 MB / 0.7448 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.0001876/0.01138, allocations: 104.5 kB / 0.7918 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.01162, allocations: 72.55 kB / 0.7918 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01162, allocations: 2.281 kB / 0.7918 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.01173, allocations: 31.67 kB / 0.7919 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.012, allocations: 21.55 kB / 0.7919 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.0124, allocations: 139.2 kB / 0.792 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.355e-05/0.01248, allocations: 70.62 kB / 0.7921 GB, free: 6.59 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.059e-05/0.01251, allocations: 3.984 kB / 0.7921 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.284e-05/0.01254, allocations: 12.5 kB / 0.7921 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of SimCode: time 6.71e-07/0.01254, allocations: 3.938 kB / 0.7921 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of Templates: time 0.004061/0.01661, allocations: 0.8372 MB / 0.7929 GB, free: 5.77 MB / 0.7448 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] 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: 7.964496687054634]