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.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002461/0.002462, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.82/2.82, allocations: 461.8 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 67.14 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3692, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002298/0.3715, allocations: 0.7209 MB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3729, allocations: 1.061 MB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.137e-05/0.373, allocations: 4 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.089e-05/0.373, allocations: 3.938 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.517e-05/0.3731, allocations: 7.984 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.3734, allocations: 31.91 kB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.068e-05/0.3735, allocations: 39.92 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3736, allocations: 11.98 kB / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.599e-05/0.3737, allocations: 23.86 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.002e-05/0.3737, allocations: 23.91 kB / 1.054 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.3737, allocations: 4 kB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.729e-05/0.3738, allocations: 15.98 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.351e-05/0.3739, allocations: 11.92 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.3739, allocations: 11.94 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.374, allocations: 55.84 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3741, allocations: 0 / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3741, allocations: 0 / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.3741, allocations: 4 kB / 1.054 GB, free: 6.809 MB / 0.8106 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.0007953/0.3749, allocations: 375.5 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3749, allocations: 8.031 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.375, allocations: 4.938 kB / 1.054 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.3751, allocations: 164.3 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3751, allocations: 8.375 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.3752, allocations: 4.359 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.3754, allocations: 70.16 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3754, allocations: 192 / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.3754, allocations: 7.875 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3754, allocations: 4 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3756, allocations: 43.95 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005162/0.3761, allocations: 276.8 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.3763, allocations: 66.42 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3765, allocations: 24.97 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.3765, allocations: 4 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.3767, allocations: 71.38 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.3767, allocations: 0 / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004558/0.3772, allocations: 129.5 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.3772, allocations: 55.41 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.215e-05/0.3773, allocations: 105.8 kB / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.3774, allocations: 25.7 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.3774, allocations: 84.14 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.3774, allocations: 11.81 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.3775, allocations: 21.7 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001825/0.3777, allocations: 322.8 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.3778, allocations: 23.97 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.3779, allocations: 47.41 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.3781, allocations: 87.28 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3781, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002859/0.3784, allocations: 97.58 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3784, allocations: 8 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3785, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3785, allocations: 4.094 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3786, allocations: 19.92 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3786, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.744e-05/0.3787, allocations: 11.89 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.3787, allocations: 4 kB / 1.056 GB, free: 4.41 MB / 0.8106 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.0001078/0.3788, allocations: 121.7 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.3788, allocations: 0 / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002969/0.3791, allocations: 110.5 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.3792, allocations: 3.984 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.3792, allocations: 8.062 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3792, allocations: 3.938 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004919/0.3797, allocations: 350.6 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3797, allocations: 3.938 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.267e-05/0.3798, allocations: 15.94 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3798, allocations: 0 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.3798, allocations: 7.984 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3798, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3798, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.3802, allocations: 199.4 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.245e-05/0.3802, allocations: 77.11 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3802, allocations: 7.984 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.3803, allocations: 8 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.3804, allocations: 3.984 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.3804, allocations: 7.938 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.73e-05/0.3805, allocations: 87.27 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3805, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002395/0.3807, allocations: 15.91 kB / 1.057 GB, free: 3.293 MB / 0.8106 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.000209/0.381, allocations: 111.2 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002812/0.3812, allocations: 55.95 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3813, allocations: 0 / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3814, allocations: 39.91 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.3817, allocations: 8.969 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003794/0.3821, allocations: 148 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3824, allocations: 0.6809 MB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.381e-05/0.3824, allocations: 4.422 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.3825, allocations: 11.44 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3825, allocations: 0 / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of Templates: time 0.003281/0.3858, allocations: 0.7128 MB / 1.059 GB, free: 1.473 MB / 0.8106 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