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.001257/0.001257, allocations: 108.5 kB / 16.41 MB, free: 6.492 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.001218/0.001218, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.52/2.52, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.89 kB / 1.055 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7002/0.7016, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001562/0.7032, allocations: 0.6791 MB / 1.209 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.7043, allocations: 1.053 MB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.639e-05/0.7044, allocations: 0 / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.7044, allocations: 3.938 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.113e-05/0.7045, allocations: 3.938 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.7047, allocations: 43.83 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.818e-05/0.7048, allocations: 47.91 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.7049, allocations: 8 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.391e-05/0.705, allocations: 23.92 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.923e-05/0.7051, allocations: 19.91 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.7051, allocations: 4 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.7051, allocations: 19.98 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.937e-05/0.7052, allocations: 11.92 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.221e-05/0.7052, allocations: 23.88 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.7053, allocations: 47.84 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7053, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7053, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.7054, allocations: 4 kB / 1.21 GB, free: 11.66 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.0005399/0.7059, allocations: 367.2 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.7059, allocations: 12.03 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.472e-05/0.706, allocations: 8.781 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.7061, allocations: 164.4 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-06/0.7061, allocations: 384 / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.7061, allocations: 12.36 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.7063, allocations: 62.17 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.7063, allocations: 192 / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.7064, allocations: 7.938 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.7064, allocations: 0 / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.7065, allocations: 43.95 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003943/0.707, allocations: 274.7 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.7071, allocations: 62.47 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.441e-05/0.7072, allocations: 36.91 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.7072, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.7074, allocations: 75.38 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.7074, allocations: 4 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003955/0.7078, allocations: 117.7 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.7079, allocations: 51.41 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.33e-05/0.7079, allocations: 113.8 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.708, allocations: 29.64 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.708, allocations: 88.14 kB / 1.212 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.708, allocations: 19.73 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.7081, allocations: 25.72 kB / 1.212 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.7082, allocations: 310.8 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-05/0.7083, allocations: 27.97 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.7084, allocations: 51.41 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.7086, allocations: 83.27 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.7086, allocations: 0 / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002499/0.7089, allocations: 101.6 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.7089, allocations: 10.03 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.7089, allocations: 4 kB / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.7089, allocations: 0 / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.709, allocations: 15.92 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.709, allocations: 7.984 kB / 1.212 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.7091, allocations: 8 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.7091, allocations: 4 kB / 1.212 GB, free: 9.266 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 7.695e-05/0.7092, allocations: 119.3 kB / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.7092, allocations: 11.92 kB / 1.213 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.7095, allocations: 106 kB / 1.213 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.7095, allocations: 0 / 1.213 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.7095, allocations: 0 / 1.213 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.7095, allocations: 0 / 1.213 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000405/0.7099, allocations: 358.5 kB / 1.213 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7099, allocations: 4 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.735e-05/0.71, allocations: 4 kB / 1.213 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.71, allocations: 7.984 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.71, allocations: 0 / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.71, allocations: 4.312 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.71, allocations: 0 / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002671/0.7103, allocations: 195.5 kB / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/0.7104, allocations: 92.94 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.7104, allocations: 0 / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.66e-05/0.7105, allocations: 7.984 kB / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.7105, allocations: 8 kB / 1.213 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.7106, allocations: 3.938 kB / 1.213 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.739e-05/0.7106, allocations: 87.27 kB / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7106, allocations: 0 / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002368/0.7108, allocations: 12 kB / 1.213 GB, free: 8.156 MB / 0.9356 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.0001332/0.711, allocations: 107.2 kB / 1.214 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002459/0.7112, allocations: 67.88 kB / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7113, allocations: 0 / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.7114, allocations: 31.92 kB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.7116, allocations: 8.312 kB / 1.214 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000309/0.712, allocations: 163.8 kB / 1.214 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.7122, allocations: 0.6846 MB / 1.214 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.7122, allocations: 11.42 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.7122, allocations: 0 / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of Templates: time 0.002176/0.7144, allocations: 0.8661 MB / 1.215 GB, free: 6.164 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