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.00133/0.00133, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.001496/0.001496, allocations: 158.1 kB / 23.01 MB, free: 4.602 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.514/1.514, allocations: 177.2 MB / 203.4 MB, free: 8.914 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 2.948/2.948, allocations: 394.2 MB / 0.6386 GB, free: 11.96 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: 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.002153/0.002153, allocations: 63.91 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9853/0.9874, allocations: 181.8 MB / 1.187 GB, free: 16.24 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002003/0.9894, allocations: 0.6688 MB / 1.187 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.9907, allocations: 1.081 MB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.9908, allocations: 1.375 kB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.824e-05/0.9908, allocations: 3.938 kB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.611e-05/0.9908, allocations: 6.531 kB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.9911, allocations: 46.69 kB / 1.188 GB, free: 15.01 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.9912, allocations: 49.56 kB / 1.188 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.933e-05/0.9913, allocations: 9.078 kB / 1.188 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 5.972e-05/0.9914, allocations: 22.94 kB / 1.188 GB, free: 14.97 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.19e-05/0.9914, allocations: 20.67 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.9914, allocations: 4.125 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.95e-05/0.9915, allocations: 22.19 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.412e-05/0.9915, allocations: 8.234 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.9916, allocations: 20.22 kB / 1.188 GB, free: 14.94 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.9917, allocations: 58.56 kB / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.9917, allocations: 1.312 kB / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.142e-06/0.9917, allocations: 0 / 1.189 GB, free: 14.92 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.9917, allocations: 4 kB / 1.189 GB, free: 14.91 MB / 1.076 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.0005132/0.9922, allocations: 289.5 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.9923, allocations: 10.03 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.262e-05/0.9924, allocations: 5.188 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.233e-05/0.9924, allocations: 114.5 kB / 1.189 GB, free: 14.51 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.9924, allocations: 10.06 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.9924, allocations: 3.25 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.9926, allocations: 67.08 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.9926, allocations: 192 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.9927, allocations: 4.938 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.9927, allocations: 1.375 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.9928, allocations: 38.45 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.9932, allocations: 220.3 kB / 1.189 GB, free: 14.23 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.9933, allocations: 54.2 kB / 1.189 GB, free: 14.2 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.83e-05/0.9934, allocations: 35.33 kB / 1.189 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.9935, allocations: 2.812 kB / 1.189 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.9936, allocations: 71.42 kB / 1.189 GB, free: 14.12 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.9936, allocations: 0 / 1.189 GB, free: 14.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0003923/0.994, allocations: 123 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.994, allocations: 53.17 kB / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.619e-05/0.9941, allocations: 113.5 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.888e-06/0.9941, allocations: 33.7 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.9941, allocations: 83.38 kB / 1.19 GB, free: 13.77 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.9941, allocations: 19.88 kB / 1.19 GB, free: 13.76 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.9942, allocations: 21.86 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.641e-05/0.9942, allocations: 318 kB / 1.19 GB, free: 13.42 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.9943, allocations: 23.86 kB / 1.19 GB, free: 13.42 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.9944, allocations: 47.39 kB / 1.19 GB, free: 13.38 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.9946, allocations: 81.7 kB / 1.19 GB, free: 13.33 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.9946, allocations: 1.312 kB / 1.19 GB, free: 13.33 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002425/0.9949, allocations: 105.9 kB / 1.19 GB, free: 13.28 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.9949, allocations: 5.547 kB / 1.19 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.9949, allocations: 8.984 kB / 1.19 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.9949, allocations: 11.16 kB / 1.19 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.995, allocations: 16.48 kB / 1.19 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.995, allocations: 2.188 kB / 1.19 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.566e-05/0.9951, allocations: 7 kB / 1.19 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.9951, allocations: 3.203 kB / 1.19 GB, free: 13.26 MB / 1.076 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.84e-05/0.9951, allocations: 119.5 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.9952, allocations: 5.969 kB / 1.191 GB, free: 13.13 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002745/0.9954, allocations: 106 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.9954, allocations: 4 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9954, allocations: 1.25 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.9954, allocations: 0.75 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.9958, allocations: 300.8 kB / 1.191 GB, free: 12.81 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.9958, allocations: 0 / 1.191 GB, free: 12.81 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.712e-05/0.9959, allocations: 9.547 kB / 1.191 GB, free: 12.81 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.9959, allocations: 2.078 kB / 1.191 GB, free: 12.81 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.9959, allocations: 0 / 1.191 GB, free: 12.81 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.9959, allocations: 5.859 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.9959, allocations: 384 / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.9961, allocations: 200.6 kB / 1.191 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-06/0.9961, allocations: 2.906 kB / 1.191 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.9961, allocations: 1.688 kB / 1.191 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.441e-05/0.9962, allocations: 7.438 kB / 1.191 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.9963, allocations: 5.031 kB / 1.191 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.9963, allocations: 10.19 kB / 1.191 GB, free: 12.64 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.665e-05/0.9963, allocations: 87.19 kB / 1.191 GB, free: 12.56 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.9963, allocations: 4 kB / 1.191 GB, free: 12.56 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002474/0.9966, allocations: 18.53 kB / 1.191 GB, free: 12.55 MB / 1.076 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.0001026/0.9967, allocations: 96.47 kB / 1.191 GB, free: 12.46 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.9969, allocations: 65.2 kB / 1.191 GB, free: 12.45 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.9969, allocations: 0 / 1.191 GB, free: 12.45 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.997, allocations: 32.53 kB / 1.192 GB, free: 12.44 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.9973, allocations: 11.45 kB / 1.192 GB, free: 12.44 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.9975, allocations: 135.4 kB / 1.192 GB, free: 12.32 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.478e-05/0.9976, allocations: 70.02 kB / 1.192 GB, free: 12.24 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.673e-05/0.9976, allocations: 3.766 kB / 1.192 GB, free: 12.24 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.9976, allocations: 16.58 kB / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of SimCode: time 2.9e-07/0.9976, allocations: 0 / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of Templates: time 0.003563/1.001, allocations: 0.824 MB / 1.193 GB, free: 12.12 MB / 1.076 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=800 -s ida -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/jenkins1/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: 9.043606469989754]