Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_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.001086/0.001087, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 197 kB / 16.53 MB, free: 6.664 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.261/1.261, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.622/2.622, allocations: 469.4 MB / 0.742 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 0.9083 GB, free: 34.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3015, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold): time 0.002106/0.3037, allocations: 0.709 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3048, allocations: 0.8351 MB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.284e-05/0.3049, allocations: 4 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.3049, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.442e-05/0.305, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001506/0.3052, allocations: 19.97 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.153e-05/0.3053, allocations: 51.86 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.3054, allocations: 15.98 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.475e-05/0.3055, allocations: 23.91 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.44e-05/0.3055, allocations: 23.92 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.3056, allocations: 4 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.316e-05/0.3056, allocations: 4 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.998e-05/0.3056, allocations: 7.984 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.3057, allocations: 23.86 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.3058, allocations: 39.86 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.3058, allocations: 0 / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3058, allocations: 4 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.3058, allocations: 0 / 1.065 GB, free: 12.76 MB / 0.8262 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.0005241/0.3063, allocations: 355.7 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3064, allocations: 12.03 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.396e-05/0.3064, allocations: 38.67 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.273e-05/0.3065, allocations: 8.844 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.3066, allocations: 164.3 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.3066, allocations: 8.375 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.3066, allocations: 4.375 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.3069, allocations: 73.58 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.3069, allocations: 0 / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3069, allocations: 0 / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.3069, allocations: 0 / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.3071, allocations: 55.88 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.3076, allocations: 292.7 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.3078, allocations: 66.47 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3079, allocations: 34.59 kB / 1.066 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.308, allocations: 0 / 1.066 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.308, allocations: 42.5 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.308, allocations: 0 / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0004308/0.3084, allocations: 105.6 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.3085, allocations: 55.41 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.783e-05/0.3086, allocations: 105.8 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.3086, allocations: 29.7 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.384e-05/0.3087, allocations: 88.05 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.3087, allocations: 7.906 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.3087, allocations: 25.64 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3089, allocations: 318.8 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.309, allocations: 23.97 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.656e-05/0.3091, allocations: 19.98 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.3093, allocations: 65.02 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3093, allocations: 0 / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00024/0.3095, allocations: 81.64 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3096, allocations: 8 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3096, allocations: 0 / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3096, allocations: 0 / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.3097, allocations: 11.98 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.3097, allocations: 0 / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.3098, allocations: 19.89 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.3098, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (reaToInt.y,intLesThr.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.422e-05/0.3099, allocations: 117.7 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.31, allocations: 4 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.769e-05/0.31, allocations: 11.89 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.31, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.31, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.31, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.3102, allocations: 181.6 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3102, allocations: 4 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.814e-05/0.3103, allocations: 15.92 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3103, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3103, allocations: 7.984 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3104, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3104, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.3106, allocations: 183.3 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.3107, allocations: 85.11 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.3107, allocations: 0 / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.3108, allocations: 7.984 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.3109, allocations: 15.92 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.3109, allocations: 4 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.854e-05/0.311, allocations: 83.28 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.311, allocations: 0 / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002165/0.3112, allocations: 11.94 kB / 1.068 GB, free: 9.637 MB / 0.8262 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 (intLesThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005572/0.3118, allocations: 0.7168 MB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002418/0.312, allocations: 59.89 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.312, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.3121, allocations: 31.97 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3124, allocations: 11.94 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3139, allocations: 1.319 MB / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.3142, allocations: 0.6846 MB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.399e-05/0.3142, allocations: 4 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.3143, allocations: 19.42 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of SimCode: time 1.683e-06/0.3143, allocations: 0 / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.3324, allocations: 1.817 MB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.436, allocations: 14.48 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold_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_Integers_Validation_LessThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches