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.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.001512/0.001512, allocations: 79.78 kB / 19.18 MB, free: 2.527 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.002165/0.002165, allocations: 163.6 kB / 22.46 MB, free: 5.359 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.543/1.543, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3/3, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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 2.715e-06/2.715e-06, allocations: 0 / 1 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.197e-05/3.469e-05, allocations: 6.281 kB / 1 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002053/0.002088, allocations: 0.6748 MB / 1.001 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.003774, allocations: 1.073 MB / 1.002 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.003836, allocations: 4 kB / 1.002 GB, free: 5.551 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.003864, allocations: 7.938 kB / 1.002 GB, free: 5.543 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.794e-05/0.003942, allocations: 7.922 kB / 1.002 GB, free: 5.535 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.004279, allocations: 47.77 kB / 1.002 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.004402, allocations: 47.84 kB / 1.002 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.257e-05/0.004494, allocations: 4 kB / 1.002 GB, free: 5.438 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.004602, allocations: 31.91 kB / 1.002 GB, free: 5.406 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.586e-05/0.004658, allocations: 15.97 kB / 1.002 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.004679, allocations: 4 kB / 1.002 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.219e-05/0.004761, allocations: 23.98 kB / 1.002 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.005e-05/0.004791, allocations: 11.92 kB / 1.002 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.91e-05/0.00483, allocations: 15.98 kB / 1.002 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.005004, allocations: 67.77 kB / 1.002 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.005008, allocations: 0 / 1.002 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.653e-06/0.005009, allocations: 0 / 1.002 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.005013, allocations: 3.938 kB / 1.002 GB, free: 5.266 MB / 0.9512 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.0006614/0.005675, allocations: 286.2 kB / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.005721, allocations: 12.03 kB / 1.002 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.005827, allocations: 8.875 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.005958, allocations: 113.7 kB / 1.002 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.005978, allocations: 8.375 kB / 1.003 GB, free: 4.789 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.005991, allocations: 384 / 1.003 GB, free: 4.789 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.006231, allocations: 66.22 kB / 1.003 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.006242, allocations: 192 / 1.003 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.006253, allocations: 384 / 1.003 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.006263, allocations: 384 / 1.003 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.006473, allocations: 51.77 kB / 1.003 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.007002, allocations: 224.5 kB / 1.003 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.007209, allocations: 46.56 kB / 1.003 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.007322, allocations: 28.95 kB / 1.003 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.007351, allocations: 7.984 kB / 1.003 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.007606, allocations: 79.25 kB / 1.003 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.007607, allocations: 0 / 1.003 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0004711/0.008078, allocations: 121.6 kB / 1.003 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.008128, allocations: 51.41 kB / 1.003 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.008236, allocations: 110.1 kB / 1.003 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.008259, allocations: 29.7 kB / 1.003 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.821e-05/0.008317, allocations: 84.09 kB / 1.003 GB, free: 3.809 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.008342, allocations: 19.84 kB / 1.003 GB, free: 3.789 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.966e-05/0.008392, allocations: 25.7 kB / 1.003 GB, free: 3.758 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.008551, allocations: 310.8 kB / 1.004 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.00866, allocations: 23.97 kB / 1.004 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.008789, allocations: 63.3 kB / 1.004 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.009019, allocations: 75.39 kB / 1.004 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.009021, allocations: 0 / 1.004 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002985/0.00932, allocations: 105.5 kB / 1.004 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.009343, allocations: 14.12 kB / 1.004 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.00935, allocations: 0 / 1.004 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.009369, allocations: 0 / 1.004 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.009495, allocations: 15.98 kB / 1.004 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.009502, allocations: 0 / 1.004 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.88e-05/0.009581, allocations: 11.98 kB / 1.004 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.009595, allocations: 4 kB / 1.004 GB, free: 3.109 MB / 0.9512 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.0001182/0.009714, allocations: 117.8 kB / 1.004 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.009734, allocations: 15.95 kB / 1.004 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/0.01005, allocations: 98.08 kB / 1.004 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.01007, allocations: 4 kB / 1.004 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.01007, allocations: 0 / 1.004 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.01008, allocations: 0 / 1.004 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006481/0.01072, allocations: 298.2 kB / 1.005 GB, free: 2.535 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.01073, allocations: 0 / 1.005 GB, free: 2.535 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.499e-05/0.0108, allocations: 15.98 kB / 1.005 GB, free: 2.52 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.01081, allocations: 0 / 1.005 GB, free: 2.52 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.01082, allocations: 4 kB / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.01082, allocations: 0 / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01082, allocations: 0 / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003855/0.01121, allocations: 199.7 kB / 1.005 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.171e-05/0.01122, allocations: 4.062 kB / 1.005 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.01124, allocations: 11.94 kB / 1.005 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.01136, allocations: 11.98 kB / 1.005 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.01141, allocations: 4 kB / 1.005 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.01143, allocations: 0 / 1.005 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.64e-05/0.01149, allocations: 87.27 kB / 1.005 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.01149, allocations: 0 / 1.005 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003454/0.01184, allocations: 15.94 kB / 1.005 GB, free: 2.172 MB / 0.9512 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.0002471/0.01209, allocations: 107.2 kB / 1.005 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002988/0.01239, allocations: 67.89 kB / 1.005 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.01239, allocations: 3.938 kB / 1.005 GB, free: 1.984 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.01251, allocations: 27.98 kB / 1.005 GB, free: 1.957 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.0128, allocations: 15.92 kB / 1.005 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004326/0.01323, allocations: 128.8 kB / 1.005 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.661e-05/0.01331, allocations: 71.33 kB / 1.005 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.242e-05/0.01335, allocations: 8.188 kB / 1.005 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.0134, allocations: 8.5 kB / 1.005 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of SimCode: time 6.82e-07/0.0134, allocations: 0 / 1.005 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of Templates: time 0.004262/0.01766, allocations: 0.8245 MB / 1.006 GB, free: 0.8633 MB / 0.9512 GB " [Timeout remaining time 300] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800] 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: 8.612973935902119]