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.0007907/0.0007907, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.000813/0.000813, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 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.9015/0.9015, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.682/1.682, allocations: 359 MB / 0.6044 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 0 / 0.9517 GB, free: 3.066 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.656e-05/2.909e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.062 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001293/0.001322, allocations: 0.6651 MB / 0.9524 GB, free: 2.395 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.002607, allocations: 1.081 MB / 0.9534 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.237e-05/0.002649, allocations: 0 / 0.9534 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.781e-05/0.002677, allocations: 3.938 kB / 0.9534 GB, free: 1.297 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.154e-05/0.002738, allocations: 7.938 kB / 0.9534 GB, free: 1.289 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.003014, allocations: 43.77 kB / 0.9535 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.097e-05/0.003105, allocations: 51.84 kB / 0.9535 GB, free: 1.195 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.585e-05/0.003191, allocations: 7.938 kB / 0.9535 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.036e-05/0.003261, allocations: 23.97 kB / 0.9535 GB, free: 1.164 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.256e-05/0.003303, allocations: 23.91 kB / 0.9536 GB, free: 1.141 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.003321, allocations: 4 kB / 0.9536 GB, free: 1.137 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.671e-05/0.003377, allocations: 19.98 kB / 0.9536 GB, free: 1.117 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.003399, allocations: 11.98 kB / 0.9536 GB, free: 1.105 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.003428, allocations: 15.92 kB / 0.9536 GB, free: 1.09 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.003566, allocations: 63.83 kB / 0.9537 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.003569, allocations: 0 / 0.9537 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.262e-06/0.00357, allocations: 4 kB / 0.9537 GB, free: 1.023 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.003575, allocations: 0 / 0.9537 GB, free: 1.023 MB / 0.9011 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.0004557/0.00403, allocations: 298.1 kB / 0.954 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.004068, allocations: 8.031 kB / 0.954 GB, free: 0.6914 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.419e-05/0.004142, allocations: 12.86 kB / 0.954 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.486e-05/0.004217, allocations: 113.7 kB / 0.9541 GB, free: 0.543 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.004228, allocations: 384 / 0.9541 GB, free: 0.543 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.001e-05/0.004238, allocations: 4.375 kB / 0.9541 GB, free: 0.5391 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.004381, allocations: 66.22 kB / 0.9542 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.00439, allocations: 192 / 0.9542 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.004401, allocations: 4.359 kB / 0.9542 GB, free: 476 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.004406, allocations: 4.375 kB / 0.9542 GB, free: 472 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.709e-05/0.004503, allocations: 43.89 kB / 0.9542 GB, free: 428 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003405/0.004844, allocations: 216.5 kB / 0.9544 GB, free: 180 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.004951, allocations: 50.55 kB / 0.9545 GB, free: 120 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.267e-05/0.005003, allocations: 32.95 kB / 0.9545 GB, free: 84 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.005022, allocations: 0 / 0.9545 GB, free: 84 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001628/0.005185, allocations: 83.31 kB / 0.9546 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=6): time 9.81e-07/0.005186, allocations: 0 / 0.9546 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of matching and sorting (n=6): time 0.0002611/0.005447, allocations: 121.5 kB / 0.9547 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.005485, allocations: 55.41 kB / 0.9547 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.951e-05/0.005544, allocations: 109.8 kB / 0.9549 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.005557, allocations: 29.7 kB / 0.9549 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.005591, allocations: 84.14 kB / 0.955 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.005609, allocations: 19.84 kB / 0.955 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/0.005642, allocations: 21.7 kB / 0.955 GB, free: 15.51 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.398e-05/0.005716, allocations: 318.8 kB / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.523e-05/0.005771, allocations: 23.97 kB / 0.9553 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-05/0.005828, allocations: 43.42 kB / 0.9554 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.005936, allocations: 83.33 kB / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.005939, allocations: 0 / 0.9554 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001423/0.006081, allocations: 113.5 kB / 0.9556 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.006095, allocations: 7.938 kB / 0.9556 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.0061, allocations: 3.938 kB / 0.9556 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.006113, allocations: 8.094 kB / 0.9556 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.059e-05/0.006184, allocations: 11.98 kB / 0.9556 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.00619, allocations: 7.938 kB / 0.9556 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.163e-05/0.006221, allocations: 7.984 kB / 0.9556 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.006229, allocations: 0 / 0.9556 GB, free: 14.86 MB / 0.9167 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.276e-05/0.006292, allocations: 124 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.006301, allocations: 7.891 kB / 0.9557 GB, free: 14.72 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001698/0.006471, allocations: 106.1 kB / 0.9558 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.006473, allocations: 0 / 0.9558 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.006477, allocations: 0 / 0.9558 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.00648, allocations: 0 / 0.9558 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.006733, allocations: 306.7 kB / 0.9561 GB, free: 14.27 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.006734, allocations: 0 / 0.9561 GB, free: 14.27 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.978e-05/0.006764, allocations: 8.047 kB / 0.9561 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.006767, allocations: 4 kB / 0.9561 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.006774, allocations: 4 kB / 0.9561 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.006776, allocations: 4 kB / 0.9561 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.006776, allocations: 0 / 0.9561 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.006932, allocations: 199.4 kB / 0.9563 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.006938, allocations: 3.953 kB / 0.9563 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.00695, allocations: 0 / 0.9563 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.755e-05/0.006998, allocations: 11.98 kB / 0.9563 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.007031, allocations: 8.031 kB / 0.9564 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.007043, allocations: 4 kB / 0.9564 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.851e-05/0.007071, allocations: 83.27 kB / 0.9564 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007071, allocations: 4 kB / 0.9564 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000163/0.007234, allocations: 15.94 kB / 0.9565 GB, free: 13.91 MB / 0.9167 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.000118/0.007352, allocations: 103.2 kB / 0.9566 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.0075, allocations: 63.89 kB / 0.9566 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.007502, allocations: 0 / 0.9566 GB, free: 13.74 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.488e-05/0.007557, allocations: 24.17 kB / 0.9566 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.007745, allocations: 15.92 kB / 0.9567 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002826/0.008028, allocations: 162.4 kB / 0.9568 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.286e-05/0.00807, allocations: 75.27 kB / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.008096, allocations: 12.5 kB / 0.9569 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of SimCode: time 8.11e-07/0.008097, allocations: 3.938 kB / 0.9569 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of Templates: time 0.001764/0.009861, allocations: 0.8852 MB / 0.9578 GB, free: 12.52 MB / 0.9167 GB " [Timeout remaining time 300] 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/jenkins/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: 6.3716321885585785]