Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001154/0.001154, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001652/0.002806, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007505/0.0007505, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009934/0.001744, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.952/0.952, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09405/1.046, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.872/1.872, allocations: 378.2 MB / 0.6076 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4884/2.361, allocations: 123.3 MB / 0.728 GB, free: 5.797 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.7293 GB, free: 4.539 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.294e-05/1.457e-05, allocations: 2.312 kB / 0.7293 GB, free: 4.535 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001082/0.001097, allocations: 0.7209 MB / 0.73 GB, free: 3.836 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0009202/0.002017, allocations: 1.12 MB / 0.7311 GB, free: 2.711 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.056e-05/0.002047, allocations: 0 / 0.7311 GB, free: 2.711 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.942e-05/0.002067, allocations: 4.562 kB / 0.7311 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 3.014e-05/0.002097, allocations: 3.656 kB / 0.7311 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001396/0.002237, allocations: 52.22 kB / 0.7312 GB, free: 2.656 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.798e-05/0.002325, allocations: 49.06 kB / 0.7312 GB, free: 2.617 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 6.819e-05/0.002393, allocations: 8.609 kB / 0.7312 GB, free: 2.609 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.002473, allocations: 38.41 kB / 0.7312 GB, free: 2.574 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 4.507e-05/0.002518, allocations: 14.28 kB / 0.7313 GB, free: 2.562 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.002533, allocations: 6.156 kB / 0.7313 GB, free: 2.559 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.748e-05/0.00261, allocations: 23.97 kB / 0.7313 GB, free: 2.535 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.002628, allocations: 6.406 kB / 0.7313 GB, free: 2.531 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.955e-05/0.002647, allocations: 8.984 kB / 0.7313 GB, free: 2.523 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.002749, allocations: 50.19 kB / 0.7314 GB, free: 2.477 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.391e-05/0.002763, allocations: 0 / 0.7314 GB, free: 2.477 MB / 0.698 GB Notification: Performance of FrontEnd: time 8.21e-07/0.002764, allocations: 2.094 kB / 0.7314 GB, free: 2.477 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.514e-05/0.002779, allocations: 0 / 0.7314 GB, free: 2.477 MB / 0.698 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.0004093/0.003189, allocations: 272.5 kB / 0.7316 GB, free: 2.184 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.003217, allocations: 8.031 kB / 0.7316 GB, free: 2.176 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.003329, allocations: 90.53 kB / 0.7317 GB, free: 2.07 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.962e-05/0.003399, allocations: 106.4 kB / 0.7318 GB, free: 1.941 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.003408, allocations: 4.375 kB / 0.7318 GB, free: 1.938 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.003415, allocations: 6.094 kB / 0.7318 GB, free: 1.934 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.127e-05/0.003507, allocations: 70.84 kB / 0.7319 GB, free: 1.855 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.003513, allocations: 192 / 0.7319 GB, free: 1.855 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.00352, allocations: 4.375 kB / 0.7319 GB, free: 1.852 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.003524, allocations: 1.188 kB / 0.7319 GB, free: 1.852 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.651e-05/0.003551, allocations: 15.91 kB / 0.7319 GB, free: 1.836 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002158/0.003767, allocations: 164.8 kB / 0.7321 GB, free: 1.66 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.007e-05/0.003827, allocations: 35.17 kB / 0.7321 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.003842, allocations: 18.16 kB / 0.7321 GB, free: 1.598 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.003861, allocations: 4 kB / 0.7321 GB, free: 1.594 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/0.003929, allocations: 51.39 kB / 0.7322 GB, free: 1.531 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.00393, allocations: 0.875 kB / 0.7322 GB, free: 1.531 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001005/0.004031, allocations: 57.62 kB / 0.7322 GB, free: 1.469 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.004066, allocations: 55.97 kB / 0.7323 GB, free: 1.402 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.944e-05/0.004115, allocations: 110.7 kB / 0.7324 GB, free: 1.281 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.004125, allocations: 26.39 kB / 0.7324 GB, free: 1.25 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.514e-05/0.00415, allocations: 85.89 kB / 0.7325 GB, free: 1.164 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.004164, allocations: 15.89 kB / 0.7325 GB, free: 1.148 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.004191, allocations: 25.7 kB / 0.7325 GB, free: 1.117 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.783e-05/0.004259, allocations: 314.8 kB / 0.7328 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.205e-05/0.004271, allocations: 11.92 kB / 0.7328 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.364e-05/0.004294, allocations: 32.52 kB / 0.7329 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.015e-05/0.004334, allocations: 44.36 kB / 0.7329 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.004337, allocations: 4.516 kB / 0.7329 GB, free: 0.6875 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 5.709e-05/0.004394, allocations: 58.75 kB / 0.733 GB, free: 0.625 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.004404, allocations: 8 kB / 0.733 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.004409, allocations: 4.719 kB / 0.733 GB, free: 0.6133 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.004418, allocations: 3.938 kB / 0.733 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.097e-05/0.004479, allocations: 20.45 kB / 0.733 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/0.004482, allocations: 0.9375 kB / 0.733 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.385e-05/0.004505, allocations: 15.88 kB / 0.733 GB, free: 0.5742 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.004512, allocations: 4.875 kB / 0.733 GB, free: 0.5703 MB / 0.698 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 5.033e-05/0.004562, allocations: 113.8 kB / 0.7331 GB, free: 460 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-06/0.004567, allocations: 1.438 kB / 0.7331 GB, free: 460 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.516e-05/0.004633, allocations: 62.05 kB / 0.7332 GB, free: 388 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.004635, allocations: 3.938 kB / 0.7332 GB, free: 384 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-06/0.004637, allocations: 0 / 0.7332 GB, free: 384 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.004639, allocations: 0.6562 kB / 0.7332 GB, free: 384 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.004767, allocations: 198.8 kB / 0.7334 GB, free: 160 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.004768, allocations: 1.625 kB / 0.7334 GB, free: 160 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.004792, allocations: 11.92 kB / 0.7334 GB, free: 148 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-06/0.004798, allocations: 11.89 kB / 0.7334 GB, free: 136 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.004799, allocations: 0 / 0.7334 GB, free: 136 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.958e-06/0.004803, allocations: 0.5938 kB / 0.7334 GB, free: 136 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.004804, allocations: 1.125 kB / 0.7334 GB, free: 136 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.004805, allocations: 4 kB / 0.7334 GB, free: 132 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.731e-05/0.004882, allocations: 147.5 kB / 0.7336 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-06/0.004891, allocations: 4.844 kB / 0.7336 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.633e-05/0.004927, allocations: 4 kB / 0.7336 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.252e-05/0.00495, allocations: 9.422 kB / 0.7336 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.004958, allocations: 4 kB / 0.7336 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 9.699e-06/0.004968, allocations: 12.84 kB / 0.7336 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-08/0.004968, allocations: 0 / 0.7336 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001218/0.005089, allocations: 17.03 kB / 0.7336 GB, free: 15.92 MB / 0.7136 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 9.257e-05/0.005182, allocations: 84.86 kB / 0.7337 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.158e-05/0.005254, allocations: 42.56 kB / 0.7337 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.005258, allocations: 3.938 kB / 0.7337 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.387e-05/0.005281, allocations: 20.84 kB / 0.7338 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.005408, allocations: 11.22 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005452/0.005953, allocations: 145.3 kB / 0.7339 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.825e-05/0.005981, allocations: 59.94 kB / 0.734 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.928e-05/0.006, allocations: 4.75 kB / 0.734 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.006042, allocations: 59.36 kB / 0.734 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of SimCode: time 7.01e-07/0.006043, allocations: 1.062 kB / 0.734 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of Templates: time 0.00219/0.008233, allocations: 0.8816 MB / 0.7349 GB, free: 14.61 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.004640204831958]