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.001641/0.001641, allocations: 115.6 kB / 17.08 MB, free: 5.977 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.002127/0.002127, allocations: 192.7 kB / 20.03 MB, free: 3.047 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.519/1.519, allocations: 222.9 MB / 245.7 MB, free: 4.211 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 3.217/3.217, allocations: 489.3 MB / 0.7687 GB, free: 3.754 MB / 0.6075 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.00197/0.00197, allocations: 68.12 kB / 1.103 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046/1.048, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001858/1.049, allocations: 0.6746 MB / 1.263 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001455/1.051, allocations: 1.049 MB / 1.264 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.82e-05/1.051, allocations: 2.156 kB / 1.264 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.469e-05/1.051, allocations: 5.609 kB / 1.264 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.523e-05/1.051, allocations: 5.281 kB / 1.264 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/1.051, allocations: 49.86 kB / 1.264 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/1.052, allocations: 41.36 kB / 1.264 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.892e-05/1.052, allocations: 10.75 kB / 1.264 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.079e-05/1.052, allocations: 26.59 kB / 1.264 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/1.052, allocations: 24.16 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/1.052, allocations: 3.844 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.918e-05/1.052, allocations: 13.81 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.616e-05/1.052, allocations: 13.03 kB / 1.264 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.421e-05/1.052, allocations: 22.86 kB / 1.264 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001726/1.052, allocations: 61.52 kB / 1.265 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.052, allocations: 0.9062 kB / 1.265 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/1.052, allocations: 0 / 1.265 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.031e-06/1.052, allocations: 0 / 1.265 GB, free: 6.668 MB / 0.9981 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.0005815/1.053, allocations: 360.7 kB / 1.265 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.053, allocations: 9.812 kB / 1.265 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/1.053, allocations: 7.984 kB / 1.265 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.016e-05/1.053, allocations: 179 kB / 1.265 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/1.053, allocations: 2.672 kB / 1.265 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/1.053, allocations: 6.828 kB / 1.265 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/1.053, allocations: 66.39 kB / 1.265 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/1.053, allocations: 0.75 kB / 1.265 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/1.053, allocations: 4.656 kB / 1.265 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/1.053, allocations: 1.469 kB / 1.265 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/1.053, allocations: 42.3 kB / 1.265 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/1.054, allocations: 280.8 kB / 1.265 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/1.054, allocations: 60.28 kB / 1.265 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/1.054, allocations: 29.56 kB / 1.266 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/1.054, allocations: 1.297 kB / 1.266 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/1.054, allocations: 79.61 kB / 1.266 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/1.054, allocations: 0 / 1.266 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0004394/1.055, allocations: 118.4 kB / 1.266 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/1.055, allocations: 57.67 kB / 1.266 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.946e-05/1.055, allocations: 104.7 kB / 1.266 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/1.055, allocations: 30.52 kB / 1.266 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.79e-05/1.055, allocations: 86.89 kB / 1.266 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/1.055, allocations: 19.62 kB / 1.266 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/1.055, allocations: 21.06 kB / 1.266 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.219e-05/1.055, allocations: 318.5 kB / 1.266 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/1.055, allocations: 23.22 kB / 1.266 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/1.055, allocations: 50.84 kB / 1.266 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/1.056, allocations: 81.27 kB / 1.266 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/1.056, allocations: 0 / 1.266 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002545/1.056, allocations: 106.5 kB / 1.267 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.056, allocations: 13.64 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/1.056, allocations: 1.938 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/1.056, allocations: 0.9375 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/1.056, allocations: 14.28 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/1.056, allocations: 1.766 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.799e-05/1.056, allocations: 11.75 kB / 1.267 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/1.056, allocations: 6.125 kB / 1.267 GB, free: 4.773 MB / 0.9981 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.096e-05/1.056, allocations: 122.5 kB / 1.267 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/1.056, allocations: 6.812 kB / 1.267 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002791/1.056, allocations: 104.9 kB / 1.267 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/1.057, allocations: 0.8438 kB / 1.267 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/1.057, allocations: 1.641 kB / 1.267 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/1.057, allocations: 64 / 1.267 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003781/1.057, allocations: 360.2 kB / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/1.057, allocations: 0 / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.223e-05/1.057, allocations: 9.5 kB / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/1.057, allocations: 0.7188 kB / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/1.057, allocations: 1.672 kB / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/1.057, allocations: 1.031 kB / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.057, allocations: 0 / 1.267 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/1.057, allocations: 203.4 kB / 1.267 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/1.057, allocations: 79.73 kB / 1.267 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/1.057, allocations: 5.422 kB / 1.267 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/1.057, allocations: 12.17 kB / 1.267 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/1.058, allocations: 8.828 kB / 1.267 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/1.058, allocations: 6.078 kB / 1.267 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.036e-05/1.058, allocations: 90.33 kB / 1.268 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.058, allocations: 0 / 1.268 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002532/1.058, allocations: 10.3 kB / 1.268 GB, free: 3.902 MB / 0.9981 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.000142/1.058, allocations: 99.91 kB / 1.268 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002837/1.058, allocations: 66.03 kB / 1.268 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.058, allocations: 192 / 1.268 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/1.058, allocations: 33.59 kB / 1.268 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/1.059, allocations: 13.81 kB / 1.268 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/1.059, allocations: 161.5 kB / 1.268 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/1.059, allocations: 0.6856 MB / 1.269 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.973e-05/1.059, allocations: 10.88 kB / 1.269 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/1.059, allocations: 0 / 1.269 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of Templates: time 0.002974/1.062, allocations: 0.8672 MB / 1.269 GB, free: 2.863 MB / 0.9981 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 -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_2/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: 11.835181999951601]