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.001499/0.001499, allocations: 88.39 kB / 20.23 MB, free: 4.176 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.001657/0.001657, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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.575/1.575, allocations: 177.1 MB / 203.9 MB, free: 5.602 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.846/2.846, allocations: 359 MB / 0.6048 GB, free: 10.92 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.695e-06/2.695e-06, allocations: 0 / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.916e-05/4.186e-05, allocations: 9.969 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001918/0.00196, allocations: 0.6682 MB / 0.787 GB, free: 12.14 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.003677, allocations: 1.083 MB / 0.7881 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.003721, allocations: 3.938 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.995e-05/0.003751, allocations: 0.6875 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.023e-05/0.003831, allocations: 11.88 kB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.004182, allocations: 44.7 kB / 0.7881 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.004297, allocations: 47.84 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.893e-05/0.004386, allocations: 10.03 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 9.647e-05/0.004483, allocations: 23.97 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.82e-05/0.004541, allocations: 23.91 kB / 0.7882 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.00456, allocations: 4 kB / 0.7882 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.004633, allocations: 19.98 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.004657, allocations: 7.984 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.233e-05/0.0047, allocations: 20.48 kB / 0.7883 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.004859, allocations: 56.78 kB / 0.7883 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.004868, allocations: 7.984 kB / 0.7883 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.203e-06/0.004869, allocations: 0 / 0.7883 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.004875, allocations: 1.094 kB / 0.7883 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.0006418/0.005517, allocations: 291.5 kB / 0.7886 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.005551, allocations: 8.031 kB / 0.7886 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.005669, allocations: 16.83 kB / 0.7886 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.005787, allocations: 110.8 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.005802, allocations: 4.359 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.005815, allocations: 4.375 kB / 0.7888 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.006044, allocations: 59.8 kB / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.006054, allocations: 4.188 kB / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.006066, allocations: 384 / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.00607, allocations: 2.031 kB / 0.7888 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.006275, allocations: 47.89 kB / 0.7889 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.00672, allocations: 218 kB / 0.7891 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.007, allocations: 50.55 kB / 0.7891 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.007111, allocations: 30.83 kB / 0.7892 GB, free: 9.848 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.007138, allocations: 4 kB / 0.7892 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.007368, allocations: 75.28 kB / 0.7892 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.007369, allocations: 0 / 0.7892 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0004683/0.007838, allocations: 127.9 kB / 0.7894 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.007892, allocations: 51.41 kB / 0.7894 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.008008, allocations: 105.8 kB / 0.7895 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.008031, allocations: 25.7 kB / 0.7895 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.008102, allocations: 92.75 kB / 0.7896 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.008126, allocations: 16.44 kB / 0.7896 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.008178, allocations: 21.72 kB / 0.7897 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.008366, allocations: 320.1 kB / 0.79 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.008475, allocations: 23.98 kB / 0.79 GB, free: 8.941 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.008614, allocations: 52.5 kB / 0.79 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.008855, allocations: 80.77 kB / 0.7901 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.008858, allocations: 1.75 kB / 0.7901 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003426/0.009201, allocations: 113.5 kB / 0.7902 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.009229, allocations: 10.41 kB / 0.7902 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.00924, allocations: 4 kB / 0.7902 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/0.009267, allocations: 1.281 kB / 0.7902 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.009395, allocations: 13.92 kB / 0.7902 GB, free: 8.648 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.009408, allocations: 4 kB / 0.7902 GB, free: 8.645 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.384e-05/0.009482, allocations: 8 kB / 0.7903 GB, free: 8.637 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.0095, allocations: 15.92 kB / 0.7903 GB, free: 8.621 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.0001321/0.009632, allocations: 117.8 kB / 0.7904 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.009656, allocations: 14.17 kB / 0.7904 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003603/0.01002, allocations: 98.08 kB / 0.7905 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.01002, allocations: 4 kB / 0.7905 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.01003, allocations: 0 / 0.7905 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01003, allocations: 0.7188 kB / 0.7905 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.01061, allocations: 298.7 kB / 0.7908 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.01061, allocations: 1.656 kB / 0.7908 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.389e-05/0.01067, allocations: 8 kB / 0.7908 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.01067, allocations: 0 / 0.7908 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.01069, allocations: 7.984 kB / 0.7908 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.0107, allocations: 0.9062 kB / 0.7908 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.0107, allocations: 160 / 0.7908 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004231/0.01112, allocations: 196.2 kB / 0.791 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.628e-05/0.01114, allocations: 13.22 kB / 0.791 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.01116, allocations: 3.984 kB / 0.791 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.01127, allocations: 8.656 kB / 0.791 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.01134, allocations: 3.984 kB / 0.791 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.01136, allocations: 4.844 kB / 0.791 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.348e-05/0.01144, allocations: 91.45 kB / 0.7911 GB, free: 7.711 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01144, allocations: 1.594 kB / 0.7911 GB, free: 7.711 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002801/0.01172, allocations: 8 kB / 0.7911 GB, free: 7.703 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.0002509/0.01197, allocations: 103.2 kB / 0.7912 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003248/0.0123, allocations: 68.22 kB / 0.7913 GB, free: 7.527 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.0123, allocations: 0 / 0.7913 GB, free: 7.527 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.01243, allocations: 23.98 kB / 0.7913 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.01277, allocations: 19.92 kB / 0.7913 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.01326, allocations: 132.5 kB / 0.7914 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.01336, allocations: 67.84 kB / 0.7915 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.563e-05/0.0134, allocations: 9.078 kB / 0.7915 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.01344, allocations: 8.5 kB / 0.7915 GB, free: 7.227 MB / 0.7448 GB Notification: Performance of SimCode: time 1.253e-06/0.01344, allocations: 4 kB / 0.7915 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of Templates: time 0.004235/0.01768, allocations: 0.8456 MB / 0.7924 GB, free: 6.414 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=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: 7.955382841988467]