Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001807/0.001807, allocations: 106.5 kB / 17.6 MB, free: 4.703 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.00199/0.00199, allocations: 190.7 kB / 20.78 MB, free: 1.543 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.539/1.539, allocations: 225.6 MB / 249.4 MB, free: 3.141 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.98/2.98, allocations: 496.2 MB / 0.7819 GB, free: 12.25 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 67.89 kB / 1.136 GB, free: 12.46 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227/1.229, allocations: 173.6 MB / 1.305 GB, free: 33.4 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00193/1.231, allocations: 0.6754 MB / 1.306 GB, free: 32.98 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001206/1.232, allocations: 1.06 MB / 1.307 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.672e-05/1.232, allocations: 2.938 kB / 1.307 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/1.232, allocations: 3.938 kB / 1.307 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.29e-05/1.233, allocations: 7.938 kB / 1.307 GB, free: 32.19 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003095/1.233, allocations: 42.08 kB / 1.307 GB, free: 32.16 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/1.233, allocations: 47.56 kB / 1.307 GB, free: 32.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/1.233, allocations: 12.94 kB / 1.307 GB, free: 32.14 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.004e-05/1.233, allocations: 20.72 kB / 1.307 GB, free: 32.12 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.631e-05/1.233, allocations: 27.02 kB / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/1.233, allocations: 2.875 kB / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/1.233, allocations: 18.41 kB / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/1.233, allocations: 7.422 kB / 1.307 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.297e-05/1.233, allocations: 21.12 kB / 1.307 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/1.233, allocations: 53.83 kB / 1.307 GB, free: 32.07 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.233, allocations: 4 kB / 1.307 GB, free: 32.07 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.383e-06/1.233, allocations: 0 / 1.307 GB, free: 32.07 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.172e-06/1.233, allocations: 0 / 1.307 GB, free: 32.07 MB / 1.061 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.0005905/1.234, allocations: 368.9 kB / 1.308 GB, free: 31.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/1.234, allocations: 9 kB / 1.308 GB, free: 31.7 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/1.234, allocations: 7.188 kB / 1.308 GB, free: 31.7 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.456e-05/1.234, allocations: 171.3 kB / 1.308 GB, free: 31.5 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/1.234, allocations: 12.31 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/1.234, allocations: 3.469 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/1.234, allocations: 61.94 kB / 1.308 GB, free: 31.45 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.234, allocations: 192 / 1.308 GB, free: 31.45 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/1.234, allocations: 7 kB / 1.308 GB, free: 31.44 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/1.234, allocations: 0 / 1.308 GB, free: 31.44 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/1.235, allocations: 40.58 kB / 1.308 GB, free: 31.44 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003968/1.235, allocations: 278 kB / 1.308 GB, free: 31.15 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/1.235, allocations: 62.69 kB / 1.308 GB, free: 31.11 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.724e-05/1.235, allocations: 25.67 kB / 1.308 GB, free: 31.1 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/1.235, allocations: 0 / 1.308 GB, free: 31.1 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001945/1.235, allocations: 81.45 kB / 1.308 GB, free: 31.04 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/1.235, allocations: 0 / 1.308 GB, free: 31.04 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003971/1.236, allocations: 125.5 kB / 1.309 GB, free: 30.98 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/1.236, allocations: 54.73 kB / 1.309 GB, free: 30.91 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.203e-05/1.236, allocations: 105.8 kB / 1.309 GB, free: 30.81 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/1.236, allocations: 29.7 kB / 1.309 GB, free: 30.78 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.811e-05/1.236, allocations: 84.14 kB / 1.309 GB, free: 30.69 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/1.236, allocations: 10.72 kB / 1.309 GB, free: 30.68 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/1.236, allocations: 29.56 kB / 1.309 GB, free: 30.66 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.654e-05/1.236, allocations: 314.8 kB / 1.309 GB, free: 30.34 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.022e-05/1.236, allocations: 24.78 kB / 1.309 GB, free: 30.34 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.767e-05/1.236, allocations: 58.64 kB / 1.309 GB, free: 30.29 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/1.236, allocations: 81.84 kB / 1.309 GB, free: 30.24 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/1.236, allocations: 0 / 1.309 GB, free: 30.24 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002192/1.237, allocations: 107.2 kB / 1.309 GB, free: 30.19 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/1.237, allocations: 6.094 kB / 1.309 GB, free: 30.19 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/1.237, allocations: 0 / 1.309 GB, free: 30.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.237, allocations: 3.938 kB / 1.309 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/1.237, allocations: 15.3 kB / 1.309 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/1.237, allocations: 0 / 1.309 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/1.237, allocations: 13.3 kB / 1.309 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/1.237, allocations: 6.938 kB / 1.309 GB, free: 30.18 MB / 1.061 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 6.053e-05/1.237, allocations: 124 kB / 1.31 GB, free: 30.05 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/1.237, allocations: 7.234 kB / 1.31 GB, free: 30.05 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/1.237, allocations: 102.5 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/1.237, allocations: 64 / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.237, allocations: 4 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/1.237, allocations: 6.062 kB / 1.31 GB, free: 29.99 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003492/1.238, allocations: 360.1 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/1.238, allocations: 3.281 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.43e-05/1.238, allocations: 5.719 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/1.238, allocations: 3.328 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/1.238, allocations: 2.969 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.238, allocations: 0 / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/1.238, allocations: 0 / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/1.238, allocations: 196.9 kB / 1.31 GB, free: 29.5 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.288e-05/1.238, allocations: 84.02 kB / 1.31 GB, free: 29.4 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/1.238, allocations: 3.375 kB / 1.31 GB, free: 29.4 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/1.238, allocations: 9.344 kB / 1.31 GB, free: 29.4 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/1.238, allocations: 2.812 kB / 1.31 GB, free: 29.4 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/1.238, allocations: 6.625 kB / 1.31 GB, free: 29.39 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.958e-05/1.238, allocations: 93.53 kB / 1.31 GB, free: 29.31 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.238, allocations: 0 / 1.31 GB, free: 29.31 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002416/1.238, allocations: 11.69 kB / 1.31 GB, free: 29.31 MB / 1.061 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.0001456/1.239, allocations: 104 kB / 1.311 GB, free: 29.22 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002359/1.239, allocations: 56.66 kB / 1.311 GB, free: 29.21 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/1.239, allocations: 2.844 kB / 1.311 GB, free: 29.21 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/1.239, allocations: 40.06 kB / 1.311 GB, free: 29.19 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/1.239, allocations: 13.27 kB / 1.311 GB, free: 29.19 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/1.239, allocations: 142.2 kB / 1.311 GB, free: 29.07 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/1.24, allocations: 0.6802 MB / 1.311 GB, free: 28.37 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.501e-05/1.24, allocations: 16.44 kB / 1.311 GB, free: 28.36 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/1.24, allocations: 12.75 kB / 1.311 GB, free: 28.36 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/1.24, allocations: 4 kB / 1.311 GB, free: 28.35 MB / 1.061 GB Notification: Performance of Templates: time 0.003564/1.243, allocations: 0.8054 MB / 1.312 GB, free: 28.25 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.019115349277854]