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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 109.3 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 189.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.817/2.817, allocations: 469.4 MB / 0.7428 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 59.91 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.151/1.153, allocations: 159.1 MB / 1.221 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002146/1.155, allocations: 0.6642 MB / 1.222 GB, free: 1.688 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001522/1.157, allocations: 1.057 MB / 1.223 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.423e-05/1.157, allocations: 0 / 1.223 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.894e-05/1.157, allocations: 3.938 kB / 1.223 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.005e-05/1.157, allocations: 11.92 kB / 1.223 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/1.157, allocations: 31.91 kB / 1.223 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/1.157, allocations: 59.77 kB / 1.223 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/1.157, allocations: 8 kB / 1.223 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/1.158, allocations: 19.92 kB / 1.223 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.839e-05/1.158, allocations: 23.92 kB / 1.223 GB, free: 472 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/1.158, allocations: 4 kB / 1.223 GB, free: 468 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.219e-05/1.158, allocations: 15.98 kB / 1.223 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/1.158, allocations: 15.97 kB / 1.223 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.215e-05/1.158, allocations: 23.86 kB / 1.223 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001562/1.158, allocations: 47.84 kB / 1.223 GB, free: 364 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/1.158, allocations: 0 / 1.223 GB, free: 364 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/1.158, allocations: 0 / 1.223 GB, free: 364 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.562e-06/1.158, allocations: 0 / 1.223 GB, free: 364 kB / 0.9356 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.0006856/1.159, allocations: 373.8 kB / 1.223 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.159, allocations: 8.625 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/1.159, allocations: 4.844 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/1.159, allocations: 172.3 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/1.159, allocations: 384 / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/1.159, allocations: 8.375 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/1.159, allocations: 54.23 kB / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/1.159, allocations: 192 / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/1.159, allocations: 15.94 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/1.159, allocations: 0 / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/1.159, allocations: 39.95 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/1.16, allocations: 278.6 kB / 1.224 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/1.16, allocations: 58.48 kB / 1.224 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/1.16, allocations: 36.91 kB / 1.224 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/1.16, allocations: 8.047 kB / 1.224 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/1.16, allocations: 71.39 kB / 1.224 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/1.16, allocations: 0 / 1.224 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0004521/1.161, allocations: 121.6 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/1.161, allocations: 55.34 kB / 1.224 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.447e-05/1.161, allocations: 105.8 kB / 1.224 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/1.161, allocations: 29.7 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.642e-05/1.161, allocations: 88.05 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/1.161, allocations: 15.83 kB / 1.224 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/1.161, allocations: 21.72 kB / 1.224 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001693/1.161, allocations: 318.8 kB / 1.225 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/1.161, allocations: 23.98 kB / 1.225 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/1.162, allocations: 55.39 kB / 1.225 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/1.162, allocations: 79.33 kB / 1.225 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/1.162, allocations: 3.938 kB / 1.225 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000273/1.162, allocations: 105.4 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/1.162, allocations: 7.984 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/1.162, allocations: 4 kB / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/1.162, allocations: 4.094 kB / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/1.162, allocations: 12.48 kB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/1.162, allocations: 4 kB / 1.225 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.979e-05/1.162, allocations: 8 kB / 1.225 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/1.162, allocations: 4 kB / 1.225 GB, free: 13.96 MB / 0.9512 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.0001031/1.163, allocations: 125.7 kB / 1.225 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/1.163, allocations: 7.906 kB / 1.225 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/1.163, allocations: 110 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/1.163, allocations: 0 / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.163, allocations: 0 / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/1.163, allocations: 77.11 kB / 1.225 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/1.163, allocations: 4 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.034e-05/1.163, allocations: 7.984 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/1.163, allocations: 15.92 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003087/1.163, allocations: 176.9 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000316/1.164, allocations: 266.7 kB / 1.226 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001146/1.164, allocations: 27.98 kB / 1.226 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.172e-05/1.164, allocations: 91.2 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of Backend: time 4.4e-07/1.164, allocations: 8 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004787/1.164, allocations: 112.8 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0005877/1.165, allocations: 0.5965 MB / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of Templates: time 0.003575/1.169, allocations: 0.9025 MB / 1.227 GB, free: 11.35 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) 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) Reference file matches