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.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.00149/0.00149, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.001913/0.001913, allocations: 199.5 kB / 22.17 MB, free: 5.211 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.564/1.564, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.901/2.901, allocations: 476.7 MB / 0.7645 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_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 0.002033/0.002033, allocations: 63.91 kB / 1.109 GB, free: 6.559 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065/1.067, allocations: 168.7 MB / 1.274 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002285/1.07, allocations: 0.6835 MB / 1.275 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001643/1.071, allocations: 1.057 MB / 1.276 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.921e-05/1.071, allocations: 0 / 1.276 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/1.071, allocations: 7.922 kB / 1.276 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.452e-05/1.071, allocations: 11.88 kB / 1.276 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/1.072, allocations: 39.89 kB / 1.276 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001185/1.072, allocations: 43.86 kB / 1.276 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/1.072, allocations: 11.98 kB / 1.276 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.566e-05/1.072, allocations: 19.92 kB / 1.276 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.332e-05/1.072, allocations: 23.91 kB / 1.276 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/1.072, allocations: 4 kB / 1.276 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/1.072, allocations: 15.98 kB / 1.276 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.61e-05/1.072, allocations: 11.98 kB / 1.276 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.983e-05/1.072, allocations: 19.88 kB / 1.276 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/1.072, allocations: 58.45 kB / 1.276 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/1.072, allocations: 0 / 1.276 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.252e-06/1.072, allocations: 4 kB / 1.276 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.321e-05/1.072, allocations: 3.984 kB / 1.276 GB, free: 2.512 MB / 0.9669 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.000698/1.073, allocations: 367.3 kB / 1.276 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/1.073, allocations: 8.031 kB / 1.276 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/1.073, allocations: 4.938 kB / 1.276 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/1.073, allocations: 168.3 kB / 1.277 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/1.073, allocations: 4.375 kB / 1.277 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/1.073, allocations: 8.359 kB / 1.277 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/1.074, allocations: 58.23 kB / 1.277 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/1.074, allocations: 192 / 1.277 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/1.074, allocations: 7.938 kB / 1.277 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/1.074, allocations: 0 / 1.277 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/1.074, allocations: 47.88 kB / 1.277 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/1.074, allocations: 280.8 kB / 1.277 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/1.075, allocations: 54.48 kB / 1.277 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/1.075, allocations: 30.52 kB / 1.277 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/1.075, allocations: 3.984 kB / 1.277 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/1.075, allocations: 79.31 kB / 1.277 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/1.075, allocations: 3.938 kB / 1.277 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004336/1.075, allocations: 125.6 kB / 1.277 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/1.075, allocations: 51.41 kB / 1.277 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/1.075, allocations: 105.8 kB / 1.277 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/1.075, allocations: 29.7 kB / 1.277 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/1.076, allocations: 84.14 kB / 1.277 GB, free: 0.8164 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/1.076, allocations: 15.89 kB / 1.277 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/1.076, allocations: 17.72 kB / 1.277 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001893/1.076, allocations: 318.8 kB / 1.278 GB, free: 468 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/1.076, allocations: 23.97 kB / 1.278 GB, free: 444 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/1.076, allocations: 55.34 kB / 1.278 GB, free: 376 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/1.076, allocations: 87.27 kB / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/1.076, allocations: 0 / 1.278 GB, free: 276 kB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000277/1.077, allocations: 101.5 kB / 1.278 GB, free: 168 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.077, allocations: 9.562 kB / 1.278 GB, free: 160 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/1.077, allocations: 0 / 1.278 GB, free: 160 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/1.077, allocations: 4 kB / 1.278 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/1.077, allocations: 12.48 kB / 1.278 GB, free: 144 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/1.077, allocations: 3.984 kB / 1.278 GB, free: 140 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.281e-05/1.077, allocations: 8 kB / 1.278 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/1.077, allocations: 8.094 kB / 1.278 GB, free: 124 kB / 0.9669 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.0001517/1.077, allocations: 126.2 kB / 1.278 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.928e-05/1.077, allocations: 11.94 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/1.077, allocations: 98.09 kB / 1.278 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/1.077, allocations: 4 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.077, allocations: 0 / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.077, allocations: 0 / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006106/1.078, allocations: 362.4 kB / 1.279 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.078, allocations: 0 / 1.279 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/1.078, allocations: 8 kB / 1.279 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/1.078, allocations: 3.984 kB / 1.279 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/1.078, allocations: 7.938 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/1.078, allocations: 0 / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.078, allocations: 4 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003583/1.078, allocations: 199.3 kB / 1.279 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/1.078, allocations: 81.09 kB / 1.279 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/1.078, allocations: 4 kB / 1.279 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/1.079, allocations: 7.984 kB / 1.279 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/1.079, allocations: 0 / 1.279 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/1.079, allocations: 7.938 kB / 1.279 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.384e-05/1.079, allocations: 91.45 kB / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/1.079, allocations: 0 / 1.279 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002575/1.079, allocations: 15.94 kB / 1.279 GB, free: 15 MB / 0.9825 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.0001942/1.079, allocations: 101.9 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000281/1.079, allocations: 64.06 kB / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.079, allocations: 192 / 1.279 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/1.08, allocations: 39.92 kB / 1.279 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/1.08, allocations: 11.98 kB / 1.279 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/1.08, allocations: 145.9 kB / 1.279 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/1.081, allocations: 0.6807 MB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.461e-05/1.081, allocations: 11.92 kB / 1.28 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.205e-05/1.081, allocations: 15.44 kB / 1.28 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/1.081, allocations: 0 / 1.28 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of Templates: time 0.00381/1.085, allocations: 0.8023 MB / 1.281 GB, free: 13.08 MB / 0.9825 GB " [Timeout remaining time 299] 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.546115355566144]