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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008275/0.008275, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.002163/0.002163, allocations: 191.9 kB / 16.67 MB, free: 5.48 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.695/2.695, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.91 kB / 1.065 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.686/0.6879, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001715/0.6896, allocations: 0.6705 MB / 1.221 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.691, allocations: 1.053 MB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.727e-05/0.691, allocations: 0 / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.873e-05/0.6911, allocations: 3.938 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.888e-05/0.6911, allocations: 11.92 kB / 1.222 GB, free: 324 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.6914, allocations: 39.83 kB / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.567e-05/0.6915, allocations: 51.86 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.445e-05/0.6916, allocations: 7.984 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.934e-05/0.6917, allocations: 31.84 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.557e-05/0.6917, allocations: 19.92 kB / 1.222 GB, free: 172 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.6918, allocations: 4 kB / 1.222 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.6918, allocations: 15.98 kB / 1.222 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.6919, allocations: 11.98 kB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.6919, allocations: 15.88 kB / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.692, allocations: 54.52 kB / 1.222 GB, free: 72 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.692, allocations: 4 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6921, allocations: 0 / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.6921, allocations: 0 / 1.222 GB, free: 68 kB / 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.0006189/0.6927, allocations: 372.3 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.6927, allocations: 8.031 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.6928, allocations: 30.75 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.723e-05/0.6928, allocations: 4.938 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.6929, allocations: 180.2 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.693, allocations: 16.34 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.693, allocations: 4.375 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.6932, allocations: 58.23 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.6932, allocations: 3.938 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.6932, allocations: 0 / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.6932, allocations: 0 / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.6934, allocations: 39.95 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004197/0.6939, allocations: 276.8 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.694, allocations: 62.48 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.6942, allocations: 28.97 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.6942, allocations: 3.938 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.6944, allocations: 75.38 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.6944, allocations: 0 / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0004378/0.6948, allocations: 125.5 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.6949, allocations: 51.41 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.576e-05/0.695, allocations: 113.8 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.695, allocations: 29.7 kB / 1.223 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.6951, allocations: 80.14 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.6951, allocations: 27.89 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.6951, allocations: 17.72 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.6953, allocations: 326.8 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.6954, allocations: 19.98 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.6955, allocations: 51.41 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.6958, allocations: 83.31 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6958, allocations: 0 / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002817/0.6961, allocations: 105.5 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.6961, allocations: 8 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.6961, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.6961, allocations: 7.984 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.6962, allocations: 15.98 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.6962, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.998e-05/0.6963, allocations: 8.594 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.6963, allocations: 4 kB / 1.224 GB, free: 13.61 MB / 0.9512 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 9.037e-05/0.6964, allocations: 121.8 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.6964, allocations: 7.953 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003027/0.6967, allocations: 106 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.6968, allocations: 4 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6968, allocations: 0 / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.6968, allocations: 0 / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004703/0.6973, allocations: 354.4 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.6973, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.085e-05/0.6973, allocations: 11.98 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6974, allocations: 0 / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.6974, allocations: 0 / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.6974, allocations: 0 / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6974, allocations: 4 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.6977, allocations: 199.3 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-05/0.6978, allocations: 81.09 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.6978, allocations: 4 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.6979, allocations: 11.98 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.6979, allocations: 7.875 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.698, allocations: 4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.484e-05/0.698, allocations: 91.27 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.698, allocations: 0 / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002523/0.6983, allocations: 15.94 kB / 1.225 GB, free: 12.5 MB / 0.9512 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.0006869/0.699, allocations: 0.7289 MB / 1.226 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000285/0.6993, allocations: 67.95 kB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.6993, allocations: 0 / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.6994, allocations: 35.91 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.6997, allocations: 13.81 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.7013, allocations: 1.381 MB / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.7017, allocations: 0.6884 MB / 1.228 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.061e-05/0.7017, allocations: 7.984 kB / 1.228 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.7018, allocations: 15.44 kB / 1.228 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.7018, allocations: 0 / 1.228 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.7245, allocations: 1.746 MB / 1.23 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/8.55, allocations: 16.52 kB / 1.23 GB, free: 7.754 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/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