Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.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.Reals.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold",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.004964/0.004964, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001294/0.001294, allocations: 193.6 kB / 16.68 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.412/1.412, 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 12.0.0-master/package.mo): time 2.773/2.773, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.02 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2975, allocations: 162.2 MB / 1.242 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.001972/0.2995, allocations: 0.827 MB / 1.242 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.3006, allocations: 0.8624 MB / 1.243 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.405e-05/0.3007, allocations: 7.938 kB / 1.243 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.3009, allocations: 11.86 kB / 1.243 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.892e-05/0.3009, allocations: 11.88 kB / 1.243 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.3011, allocations: 27.97 kB / 1.243 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.3012, allocations: 79.7 kB / 1.243 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.3014, allocations: 29.38 kB / 1.243 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.612e-05/0.3015, allocations: 35.86 kB / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.3015, allocations: 31.8 kB / 1.243 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.3016, allocations: 4 kB / 1.243 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.909e-05/0.3016, allocations: 8 kB / 1.243 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.3016, allocations: 23.84 kB / 1.243 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.605e-05/0.3017, allocations: 27.8 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.3018, allocations: 75.97 kB / 1.244 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3018, allocations: 0 / 1.244 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3018, allocations: 0 / 1.244 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3019, allocations: 3.984 kB / 1.244 GB, free: 7.199 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005598/0.3024, allocations: 395 kB / 1.244 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3025, allocations: 8.031 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.3025, allocations: 38.73 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.3025, allocations: 8.891 kB / 1.244 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.3028, allocations: 200.2 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3028, allocations: 8.312 kB / 1.244 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.3028, allocations: 4.375 kB / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.303, allocations: 62.23 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.303, allocations: 3.938 kB / 1.244 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.303, allocations: 4 kB / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.303, allocations: 3.938 kB / 1.244 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.3032, allocations: 35.97 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.3037, allocations: 316.7 kB / 1.245 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.3038, allocations: 50.64 kB / 1.245 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.988e-05/0.3039, allocations: 24.94 kB / 1.245 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.3039, allocations: 0 / 1.245 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.3039, allocations: 30.56 kB / 1.245 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.3039, allocations: 0 / 1.245 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002483/0.3042, allocations: 77.62 kB / 1.245 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.3042, allocations: 51.41 kB / 1.245 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.3044, allocations: 131.5 kB / 1.245 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.3044, allocations: 33.7 kB / 1.245 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/0.3045, allocations: 100.1 kB / 1.245 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.3045, allocations: 7.891 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.3045, allocations: 17.72 kB / 1.245 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3047, allocations: 326.8 kB / 1.245 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.503e-05/0.3047, allocations: 19.92 kB / 1.245 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.552e-05/0.3048, allocations: 21.42 kB / 1.245 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.549e-05/0.3049, allocations: 24.84 kB / 1.245 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3049, allocations: 0 / 1.245 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001502/0.3051, allocations: 69.62 kB / 1.246 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.3051, allocations: 4 kB / 1.246 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3051, allocations: 4 kB / 1.246 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3051, allocations: 0 / 1.246 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.89e-05/0.3052, allocations: 7.984 kB / 1.246 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.3052, allocations: 3.938 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.827e-05/0.3053, allocations: 11.98 kB / 1.246 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.3053, allocations: 3.938 kB / 1.246 GB, free: 4.898 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.138e-05/0.3054, allocations: 114.4 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.3054, allocations: 8.281 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.3055, allocations: 12.25 kB / 1.246 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3055, allocations: 3.984 kB / 1.246 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3055, allocations: 0 / 1.246 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3055, allocations: 4 kB / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.3057, allocations: 189.6 kB / 1.246 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3057, allocations: 0 / 1.246 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-05/0.3057, allocations: 7.938 kB / 1.246 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.3058, allocations: 0 / 1.246 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.3058, allocations: 0 / 1.246 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3058, allocations: 0 / 1.246 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3058, allocations: 0 / 1.246 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.306, allocations: 167.4 kB / 1.246 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.865e-05/0.306, allocations: 89.05 kB / 1.246 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.3061, allocations: 4 kB / 1.246 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.3062, allocations: 7.984 kB / 1.246 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.3062, allocations: 4 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3062, allocations: 7.984 kB / 1.246 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.392e-05/0.3063, allocations: 108.9 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3063, allocations: 0 / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002249/0.3066, allocations: 8 kB / 1.246 GB, free: 4.082 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (les.y,lesHys.lesHys.y) * Number of discrete states: 1 (lesHys.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0005387/0.3071, allocations: 0.689 MB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.3073, allocations: 43.91 kB / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3073, allocations: 0 / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.684e-05/0.3073, allocations: 16 kB / 1.247 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3076, allocations: 13.53 kB / 1.247 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.3091, allocations: 1.393 MB / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3094, allocations: 0.6924 MB / 1.249 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.576e-05/0.3095, allocations: 4 kB / 1.249 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.537e-05/0.3095, allocations: 23.42 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.3095, allocations: 0 / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.3317, allocations: 1.994 MB / 1.251 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/7.962, allocations: 3.938 kB / 1.251 GB, free: 15.19 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches