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) 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.1.0-maint.11.x/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_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.006635/0.006635, allocations: 96.75 kB / 15.73 MB, free: 6.488 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.001618/0.001618, allocations: 191.5 kB / 16.67 MB, free: 6.391 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.858/2.858, allocations: 469.8 MB / 0.7425 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.89 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3626, allocations: 159.1 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.0018/0.3644, allocations: 0.6724 MB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3657, allocations: 1.051 MB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.079e-05/0.3657, allocations: 0 / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.081e-05/0.3657, allocations: 7.938 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/0.3658, allocations: 11.86 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.3661, allocations: 35.91 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.3662, allocations: 47.84 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.451e-05/0.3663, allocations: 11.98 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.302e-05/0.3663, allocations: 23.92 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.232e-05/0.3664, allocations: 23.91 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.3664, allocations: 4 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.125e-05/0.3665, allocations: 12 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.3665, allocations: 7.984 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.3665, allocations: 31.84 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.3667, allocations: 55.73 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3667, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3667, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3667, allocations: 0 / 1.223 GB, free: 11.86 MB / 0.9825 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.0005932/0.3673, allocations: 364.5 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3673, allocations: 12.03 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.509e-05/0.3673, allocations: 0.9375 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3674, allocations: 184.2 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3675, allocations: 384 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.3675, allocations: 4.375 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.3677, allocations: 66.17 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3677, allocations: 4.172 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3677, allocations: 3.938 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3677, allocations: 7.984 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.3679, allocations: 39.91 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004196/0.3683, allocations: 276.8 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.3685, allocations: 54.48 kB / 1.224 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.3686, allocations: 32.95 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3686, allocations: 0 / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.3688, allocations: 75.33 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.3688, allocations: 0 / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004662/0.3692, allocations: 121.8 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.3693, allocations: 51.41 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.075e-05/0.3694, allocations: 109.9 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.3694, allocations: 25.7 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.3694, allocations: 92.12 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.3695, allocations: 15.97 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.3695, allocations: 25.72 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3696, allocations: 314.8 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.293e-05/0.3697, allocations: 27.92 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.3698, allocations: 51.41 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.37, allocations: 83.27 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.37, allocations: 4 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002475/0.3702, allocations: 101.5 kB / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.3703, allocations: 4.094 kB / 1.225 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3703, allocations: 8 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.3703, allocations: 0 / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.3704, allocations: 15.98 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3704, allocations: 0 / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.541e-05/0.3704, allocations: 11.94 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.3705, allocations: 11.92 kB / 1.225 GB, free: 9.449 MB / 0.9825 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 8.254e-05/0.3705, allocations: 121.5 kB / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.3705, allocations: 3.953 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.3708, allocations: 106 kB / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3708, allocations: 0 / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3708, allocations: 0 / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3708, allocations: 0 / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004788/0.3713, allocations: 354.4 kB / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3713, allocations: 0 / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.948e-05/0.3714, allocations: 15.98 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3714, allocations: 0 / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.3714, allocations: 3.938 kB / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3714, allocations: 4.312 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3714, allocations: 0 / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.3717, allocations: 203.3 kB / 1.225 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.3717, allocations: 85.11 kB / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.3718, allocations: 0 / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.831e-05/0.3719, allocations: 7.984 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.3719, allocations: 8 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3719, allocations: 7.969 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.639e-05/0.3719, allocations: 83.28 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3719, allocations: 0 / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002372/0.3722, allocations: 12 kB / 1.226 GB, free: 8.344 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.0001459/0.3723, allocations: 119.1 kB / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000245/0.3726, allocations: 63.89 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3726, allocations: 0 / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.3727, allocations: 27.92 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.3729, allocations: 7.984 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003317/0.3733, allocations: 150 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.3735, allocations: 0.6807 MB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.667e-05/0.3735, allocations: 4 kB / 1.227 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.351e-05/0.3736, allocations: 11.44 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/0.3736, allocations: 0 / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of Templates: time 0.002963/0.3765, allocations: 0.7959 MB / 1.227 GB, free: 6.445 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches