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.001468/0.001468, allocations: 114.6 kB / 16.42 MB, free: 6.457 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.001528/0.001529, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.439/1.439, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.672/2.672, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 67.89 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.014, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002323/1.017, allocations: 0.6675 MB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001689/1.018, allocations: 1.049 MB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/1.018, allocations: 7.938 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.199e-05/1.019, allocations: 3.938 kB / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.126e-05/1.019, allocations: 7.922 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/1.019, allocations: 43.84 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001428/1.019, allocations: 43.91 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/1.019, allocations: 15.92 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.001e-05/1.019, allocations: 23.86 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.908e-05/1.019, allocations: 19.92 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/1.019, allocations: 8 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-05/1.02, allocations: 19.98 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/1.02, allocations: 11.97 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/1.02, allocations: 19.88 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/1.02, allocations: 47.86 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/1.02, allocations: 3.984 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.793e-06/1.02, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.125e-05/1.02, allocations: 0 / 1.21 GB, free: 11.59 MB / 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.0007597/1.021, allocations: 371.2 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/1.021, allocations: 12.03 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/1.021, allocations: 4.844 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/1.021, allocations: 164.4 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/1.021, allocations: 384 / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/1.021, allocations: 12.3 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/1.021, allocations: 58.23 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/1.021, allocations: 192 / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/1.021, allocations: 3.938 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/1.021, allocations: 11.94 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/1.022, allocations: 39.95 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/1.022, allocations: 274.7 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/1.022, allocations: 58.42 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/1.022, allocations: 32.97 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/1.022, allocations: 0 / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/1.023, allocations: 71.38 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.913e-06/1.023, allocations: 0 / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0004484/1.023, allocations: 133.5 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/1.023, allocations: 51.41 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.144e-05/1.023, allocations: 106.1 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/1.023, allocations: 25.7 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/1.023, allocations: 92.2 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/1.024, allocations: 15.73 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/1.024, allocations: 21.72 kB / 1.212 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001369/1.024, allocations: 314.8 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/1.024, allocations: 28.22 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/1.024, allocations: 47.41 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/1.024, allocations: 95.31 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/1.024, allocations: 3.938 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002957/1.024, allocations: 101.5 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/1.025, allocations: 4 kB / 1.212 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/1.025, allocations: 3.938 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/1.025, allocations: 4 kB / 1.212 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/1.025, allocations: 20.02 kB / 1.212 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/1.025, allocations: 7.984 kB / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.191e-05/1.025, allocations: 4 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/1.025, allocations: 0 / 1.212 GB, free: 9.195 MB / 0.9356 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.0001065/1.025, allocations: 117.8 kB / 1.213 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/1.025, allocations: 7.984 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/1.025, allocations: 110 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.025, allocations: 0 / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/1.025, allocations: 0 / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.057e-05/1.025, allocations: 81.02 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/1.025, allocations: 4 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/1.025, allocations: 11.98 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/1.025, allocations: 7.875 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003177/1.026, allocations: 184.9 kB / 1.213 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003293/1.026, allocations: 266.7 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001052/1.026, allocations: 23.98 kB / 1.213 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.079e-05/1.026, allocations: 91.45 kB / 1.213 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of Backend: time 4.91e-07/1.026, allocations: 0 / 1.213 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004939/1.027, allocations: 124 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005904/1.027, allocations: 0.5886 MB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of Templates: time 0.004016/1.031, allocations: 0.8979 MB / 1.215 GB, free: 6.594 MB / 0.9356 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