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.001392/0.001392, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001577/0.001577, allocations: 221.5 kB / 23 MB, free: 4.906 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.816 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 2.799/2.799, allocations: 476 MB / 0.7707 GB, free: 4.746 MB / 0.6231 GB " [Timeout remaining time 177] 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.0021/0.0021, allocations: 63.55 kB / 1.118 GB, free: 41.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3389, allocations: 170 MB / 1.284 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002065/0.3409, allocations: 0.6661 MB / 1.284 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3425, allocations: 1.075 MB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.3426, allocations: 4 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/0.3426, allocations: 3.938 kB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.145e-05/0.3426, allocations: 11.86 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.3429, allocations: 43.84 kB / 1.286 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.3431, allocations: 47.89 kB / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.562e-05/0.3432, allocations: 8 kB / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.713e-05/0.3433, allocations: 23.86 kB / 1.286 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.3433, allocations: 19.91 kB / 1.286 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.3433, allocations: 4 kB / 1.286 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.511e-05/0.3434, allocations: 20 kB / 1.286 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.44e-05/0.3434, allocations: 19.97 kB / 1.286 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.3435, allocations: 19.86 kB / 1.286 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.3436, allocations: 59.78 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3436, allocations: 0 / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3436, allocations: 0 / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.3436, allocations: 0 / 1.286 GB, free: 10.01 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.0006609/0.3443, allocations: 290.2 kB / 1.286 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3443, allocations: 8.031 kB / 1.286 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.629e-05/0.3444, allocations: 12.89 kB / 1.286 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.3445, allocations: 118.5 kB / 1.286 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.3446, allocations: 384 / 1.286 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.3446, allocations: 8.312 kB / 1.286 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.3448, allocations: 58.23 kB / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3448, allocations: 192 / 1.286 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.3448, allocations: 3.938 kB / 1.286 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3448, allocations: 4 kB / 1.286 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.345, allocations: 43.95 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.3455, allocations: 224.5 kB / 1.286 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.3456, allocations: 54.48 kB / 1.287 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3458, allocations: 32.89 kB / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3458, allocations: 3.938 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.346, allocations: 71.39 kB / 1.287 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.346, allocations: 0 / 1.287 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004389/0.3464, allocations: 125.6 kB / 1.287 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.3465, allocations: 55.41 kB / 1.287 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.3466, allocations: 101.8 kB / 1.287 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.3466, allocations: 29.7 kB / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.384e-05/0.3467, allocations: 92.08 kB / 1.287 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.3467, allocations: 11.91 kB / 1.287 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.3468, allocations: 17.72 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.3469, allocations: 322.8 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.347, allocations: 23.98 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.3472, allocations: 55.39 kB / 1.287 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.3474, allocations: 79.33 kB / 1.288 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3474, allocations: 3.938 kB / 1.288 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002842/0.3477, allocations: 113.5 kB / 1.288 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3477, allocations: 4 kB / 1.288 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3477, allocations: 0 / 1.288 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3477, allocations: 4 kB / 1.288 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.3478, allocations: 15.92 kB / 1.288 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3478, allocations: 4 kB / 1.288 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.3479, allocations: 11.89 kB / 1.288 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.3479, allocations: 7.984 kB / 1.288 GB, free: 7.84 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.0001008/0.348, allocations: 121.9 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.348, allocations: 0.5 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.3483, allocations: 106 kB / 1.288 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3483, allocations: 64 / 1.288 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3484, allocations: 4 kB / 1.288 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3484, allocations: 0 / 1.288 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004458/0.3488, allocations: 298.2 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3488, allocations: 7.984 kB / 1.288 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.77e-05/0.3489, allocations: 4 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3489, allocations: 4 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.3489, allocations: 0 / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.3489, allocations: 3.984 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3489, allocations: 0 / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003231/0.3492, allocations: 199.3 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.048e-05/0.3492, allocations: 3.953 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.3492, allocations: 3.984 kB / 1.288 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3493, allocations: 16 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.3494, allocations: 3.984 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3494, allocations: 4 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.124e-05/0.3495, allocations: 91.2 kB / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3495, allocations: 0 / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000261/0.3497, allocations: 12 kB / 1.289 GB, free: 6.902 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.0001493/0.3499, allocations: 103.2 kB / 1.289 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002718/0.3501, allocations: 71.83 kB / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3501, allocations: 0 / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.3503, allocations: 27.97 kB / 1.289 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.3505, allocations: 12.38 kB / 1.289 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000385/0.3509, allocations: 159.8 kB / 1.289 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.812e-05/0.351, allocations: 67.53 kB / 1.289 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.351, allocations: 11.44 kB / 1.289 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.351, allocations: 0 / 1.289 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of Templates: time 0.002862/0.3539, allocations: 0.8815 MB / 1.29 GB, free: 5.523 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/jenkins1/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: 11.12470154510811]