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 12.0.0-master/package.mo", uses=false) 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=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.001621/0.001621, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002177/0.002177, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.523/1.523, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 63.55 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3559, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002644/0.3587, allocations: 0.6638 MB / 1.069 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3602, allocations: 1.055 MB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.3603, allocations: 0 / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.3603, allocations: 3.938 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.7e-05/0.3604, allocations: 11.92 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.3608, allocations: 43.83 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.593e-05/0.3609, allocations: 43.92 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.361, allocations: 8 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.3611, allocations: 23.91 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.206e-05/0.3612, allocations: 31.91 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.3612, allocations: 4 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.329e-05/0.3613, allocations: 15.92 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.3613, allocations: 8 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.3614, allocations: 23.86 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.3615, allocations: 51.84 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3615, allocations: 0 / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3615, allocations: 0 / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.3615, allocations: 0 / 1.07 GB, free: 8.445 MB / 0.8262 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.0006558/0.3622, allocations: 367.7 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3623, allocations: 8.031 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.162e-05/0.3623, allocations: 12.83 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.3624, allocations: 164.4 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.3625, allocations: 384 / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.3625, allocations: 4.375 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.3627, allocations: 70.19 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3627, allocations: 8.188 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.3628, allocations: 3.938 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3628, allocations: 7.922 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.363, allocations: 43.95 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.3635, allocations: 268.8 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.3637, allocations: 66.48 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.3638, allocations: 28.95 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.3638, allocations: 4 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.3641, allocations: 79.25 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.3641, allocations: 0 / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0004716/0.3646, allocations: 121.5 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.3647, allocations: 63.39 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.3648, allocations: 97.86 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.3648, allocations: 29.7 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.3649, allocations: 84.12 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.365, allocations: 19.75 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.59e-05/0.3651, allocations: 29.64 kB / 1.072 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001949/0.3653, allocations: 314.8 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.3654, allocations: 23.98 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.3655, allocations: 51.47 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.3657, allocations: 87.27 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3658, allocations: 0 / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002847/0.366, allocations: 105.5 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.3661, allocations: 8.094 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3661, allocations: 4 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3661, allocations: 0 / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.3663, allocations: 15.98 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3663, allocations: 3.938 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.334e-05/0.3664, allocations: 7.984 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.3664, allocations: 4 kB / 1.072 GB, free: 6.031 MB / 0.8262 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.0001211/0.3665, allocations: 122.2 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3665, allocations: 0 / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003309/0.3669, allocations: 106 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3669, allocations: 0 / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.3669, allocations: 0 / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.3669, allocations: 4 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004657/0.3674, allocations: 354.3 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3674, allocations: 0.625 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.3675, allocations: 15.98 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3675, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.3675, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3675, allocations: 4 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3675, allocations: 0 / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003198/0.3678, allocations: 199.4 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.247e-05/0.3679, allocations: 88.95 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.3679, allocations: 4 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.622e-05/0.368, allocations: 7.984 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.3681, allocations: 8.031 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.3681, allocations: 11.92 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.097e-05/0.3682, allocations: 83.28 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3682, allocations: 0 / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002538/0.3684, allocations: 8 kB / 1.073 GB, free: 4.93 MB / 0.8262 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.0002172/0.3687, allocations: 111.2 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003007/0.369, allocations: 63.83 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.369, allocations: 0 / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.3691, allocations: 39.91 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.3694, allocations: 4 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004534/0.3699, allocations: 142.2 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3702, allocations: 0.682 MB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.767e-05/0.3703, allocations: 4 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.3703, allocations: 15.44 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.3703, allocations: 0 / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of Templates: time 0.003772/0.3741, allocations: 0.7929 MB / 1.075 GB, free: 3.035 MB / 0.8262 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/jenkins/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