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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_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.005917/0.005917, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001387/0.001387, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 472.7 MB / 0.7453 GB, free: 4.504 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 63.91 kB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2885, allocations: 159.9 MB / 1.225 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001914/0.2905, allocations: 0.6742 MB / 1.226 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2918, allocations: 1.053 MB / 1.227 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.131e-05/0.2919, allocations: 0 / 1.227 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.24e-05/0.292, allocations: 3.938 kB / 1.227 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.2921, allocations: 11.86 kB / 1.227 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.2924, allocations: 39.89 kB / 1.227 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.451e-05/0.2925, allocations: 43.86 kB / 1.227 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.631e-05/0.2926, allocations: 19.98 kB / 1.227 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.495e-05/0.2926, allocations: 15.92 kB / 1.227 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.719e-05/0.2927, allocations: 19.92 kB / 1.227 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.2927, allocations: 4 kB / 1.227 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.096e-05/0.2928, allocations: 23.97 kB / 1.227 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.048e-05/0.2928, allocations: 7.984 kB / 1.227 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.139e-05/0.2929, allocations: 19.88 kB / 1.227 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.293, allocations: 59.72 kB / 1.227 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.293, allocations: 0 / 1.227 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2931, allocations: 4 kB / 1.227 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2931, allocations: 0 / 1.227 GB, free: 7.648 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.0005811/0.2936, allocations: 367.3 kB / 1.227 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2937, allocations: 8.031 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.2937, allocations: 38.75 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.2938, allocations: 0.9375 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.2939, allocations: 172.3 kB / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.2939, allocations: 4.375 kB / 1.228 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.2939, allocations: 8.359 kB / 1.228 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.2941, allocations: 62.22 kB / 1.228 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.2942, allocations: 3.938 kB / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.2942, allocations: 0 / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.2942, allocations: 7.938 kB / 1.228 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.2944, allocations: 51.88 kB / 1.228 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.2948, allocations: 280.8 kB / 1.228 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.295, allocations: 50.55 kB / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.756e-05/0.2951, allocations: 28.97 kB / 1.228 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.2952, allocations: 3.938 kB / 1.228 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.2954, allocations: 83.31 kB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.2954, allocations: 0 / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004255/0.2958, allocations: 121.6 kB / 1.228 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.2959, allocations: 51.41 kB / 1.228 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.724e-05/0.296, allocations: 106.1 kB / 1.229 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.296, allocations: 25.7 kB / 1.229 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.296, allocations: 92.14 kB / 1.229 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.2961, allocations: 11.89 kB / 1.229 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.2961, allocations: 25.66 kB / 1.229 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2962, allocations: 318.8 kB / 1.229 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.2963, allocations: 28.22 kB / 1.229 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.2965, allocations: 55.41 kB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.2967, allocations: 79.33 kB / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2967, allocations: 0 / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002657/0.2969, allocations: 105.5 kB / 1.229 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.297, allocations: 4 kB / 1.229 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.297, allocations: 4 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.297, allocations: 0 / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2971, allocations: 11.98 kB / 1.229 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2971, allocations: 11.92 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.766e-05/0.2972, allocations: 7.938 kB / 1.229 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.2972, allocations: 4 kB / 1.229 GB, free: 5.199 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.634e-05/0.2973, allocations: 125.2 kB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.2973, allocations: 7.938 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.2976, allocations: 102 kB / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2976, allocations: 0 / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2977, allocations: 0 / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.2977, allocations: 0 / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2981, allocations: 362.5 kB / 1.23 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2981, allocations: 0 / 1.23 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.297e-05/0.2982, allocations: 11.98 kB / 1.23 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.2982, allocations: 7.938 kB / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.2982, allocations: 0 / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2982, allocations: 0 / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2982, allocations: 0 / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.2985, allocations: 199.3 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.2986, allocations: 85.09 kB / 1.23 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.2986, allocations: 192 / 1.23 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.2987, allocations: 11.98 kB / 1.23 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.2987, allocations: 7.938 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.2987, allocations: 0 / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.393e-05/0.2988, allocations: 95.2 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2988, allocations: 4 kB / 1.23 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002477/0.2991, allocations: 8 kB / 1.23 GB, free: 4.086 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.000574/0.2996, allocations: 0.7319 MB / 1.231 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002662/0.2999, allocations: 71.88 kB / 1.231 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2999, allocations: 0 / 1.231 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.3, allocations: 31.97 kB / 1.231 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.3003, allocations: 9.5 kB / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.3018, allocations: 1.381 MB / 1.232 GB, free: 1.742 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.3021, allocations: 0.6807 MB / 1.233 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.559e-05/0.3021, allocations: 11.98 kB / 1.233 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.3022, allocations: 11.44 kB / 1.233 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.3022, allocations: 0 / 1.233 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.3199, allocations: 1.756 MB / 1.235 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.36/7.68, allocations: 18.33 kB / 1.235 GB, free: 15.34 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/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