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.001546/0.001546, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001688/0.001688, allocations: 217.9 kB / 23.01 MB, free: 4.609 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 8.035 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.723/2.723, allocations: 476.8 MB / 0.7714 GB, free: 4.25 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.001864/0.001864, allocations: 66.78 kB / 1.119 GB, free: 40.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3351, allocations: 170 MB / 1.285 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002014/0.3371, allocations: 0.6679 MB / 1.285 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3386, allocations: 1.098 MB / 1.286 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.572e-05/0.3387, allocations: 0 / 1.286 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.3387, allocations: 3.938 kB / 1.286 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.859e-05/0.3388, allocations: 3.938 kB / 1.286 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.3391, allocations: 47.83 kB / 1.286 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.3392, allocations: 47.91 kB / 1.286 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.3393, allocations: 7.984 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.855e-05/0.3394, allocations: 19.94 kB / 1.286 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.948e-05/0.3394, allocations: 23.89 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.3394, allocations: 11.94 kB / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.322e-05/0.3395, allocations: 27.92 kB / 1.287 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.3395, allocations: 11.94 kB / 1.287 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.123e-05/0.3396, allocations: 19.92 kB / 1.287 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.3397, allocations: 63.72 kB / 1.287 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3398, allocations: 0 / 1.287 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3398, allocations: 0 / 1.287 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3398, allocations: 0 / 1.287 GB, free: 9.238 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.0006263/0.3404, allocations: 294.2 kB / 1.287 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3404, allocations: 8.031 kB / 1.287 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.3405, allocations: 12.88 kB / 1.287 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.3407, allocations: 110.5 kB / 1.287 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.3407, allocations: 384 / 1.287 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.3407, allocations: 8.375 kB / 1.287 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.3409, allocations: 66.14 kB / 1.287 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.341, allocations: 192 / 1.287 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.341, allocations: 15.92 kB / 1.287 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.341, allocations: 8 kB / 1.287 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.3412, allocations: 35.95 kB / 1.287 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004656/0.3416, allocations: 247.9 kB / 1.287 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.3418, allocations: 58.42 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3419, allocations: 32.95 kB / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.3419, allocations: 0 / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.3422, allocations: 71.39 kB / 1.288 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.3422, allocations: 0 / 1.288 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004254/0.3426, allocations: 125.6 kB / 1.288 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.3426, allocations: 51.41 kB / 1.288 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.3428, allocations: 109.8 kB / 1.288 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.3428, allocations: 25.7 kB / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.3428, allocations: 92.12 kB / 1.288 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.3429, allocations: 7.906 kB / 1.288 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.3429, allocations: 21.72 kB / 1.288 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3431, allocations: 318.8 kB / 1.288 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.3432, allocations: 28.06 kB / 1.288 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3433, allocations: 51.39 kB / 1.288 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.3435, allocations: 87.27 kB / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3435, allocations: 0 / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002688/0.3438, allocations: 105.5 kB / 1.289 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3438, allocations: 4 kB / 1.289 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3438, allocations: 4 kB / 1.289 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3438, allocations: 0 / 1.289 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.344, allocations: 20.02 kB / 1.289 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.344, allocations: 7.938 kB / 1.289 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.078e-05/0.344, allocations: 15.88 kB / 1.289 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.344, allocations: 4 kB / 1.289 GB, free: 7.02 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.0001162/0.3442, allocations: 121.3 kB / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.3442, allocations: 0 / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.3445, allocations: 106.5 kB / 1.289 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3445, allocations: 4 kB / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3445, allocations: 0 / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3445, allocations: 0 / 1.289 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004703/0.3449, allocations: 329.6 kB / 1.289 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3449, allocations: 0 / 1.289 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.452e-05/0.345, allocations: 15.92 kB / 1.289 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.345, allocations: 4 kB / 1.289 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.345, allocations: 4 kB / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.345, allocations: 0 / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.345, allocations: 0 / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.3453, allocations: 191.4 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-06/0.3453, allocations: 7.953 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.3453, allocations: 0 / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3455, allocations: 11.98 kB / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.3455, allocations: 8.031 kB / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.3455, allocations: 7.922 kB / 1.289 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.294e-05/0.3456, allocations: 87.28 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3456, allocations: 0 / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002449/0.3458, allocations: 8 kB / 1.289 GB, free: 6.051 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.0001716/0.346, allocations: 115.1 kB / 1.29 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002563/0.3462, allocations: 55.95 kB / 1.29 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3462, allocations: 7.938 kB / 1.29 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3463, allocations: 27.98 kB / 1.29 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.3466, allocations: 10.48 kB / 1.29 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.347, allocations: 163.8 kB / 1.29 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.3473, allocations: 0.6848 MB / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.3474, allocations: 15.44 kB / 1.29 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3474, allocations: 0 / 1.29 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of Templates: time 0.00281/0.3502, allocations: 0.8583 MB / 1.291 GB, free: 4.059 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: 10.849757033982314]