Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_9_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.001747/0.001747, allocations: 108 kB / 15.6 MB, free: 132 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.002261/0.002261, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.488/1.488, 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 9.1.3-maint.9.1.x/package.mo): time 2.378/2.378, allocations: 390.3 MB / 0.6647 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.91 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6276/0.629, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold): time 0.001833/0.6308, allocations: 0.694 MB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.6316, allocations: 0.8397 MB / 0.9512 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.756e-05/0.6316, allocations: 1.438 kB / 0.9512 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.6317, allocations: 3.938 kB / 0.9512 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.544e-05/0.6317, allocations: 5.25 kB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001225/0.6319, allocations: 27.91 kB / 0.9513 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.827e-05/0.6319, allocations: 35.23 kB / 0.9513 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.825e-05/0.632, allocations: 25.69 kB / 0.9513 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.05e-05/0.6321, allocations: 22.67 kB / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.416e-05/0.6322, allocations: 23.45 kB / 0.9514 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.6322, allocations: 3.406 kB / 0.9514 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.326e-05/0.6322, allocations: 4.281 kB / 0.9514 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.6322, allocations: 14.23 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.6323, allocations: 19.06 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.655e-05/0.6323, allocations: 43.72 kB / 0.9515 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6324, allocations: 5.031 kB / 0.9515 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.6324, allocations: 0 / 0.9515 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.6324, allocations: 0 / 0.9515 GB, free: 7.832 MB / 0.7169 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.0004229/0.6328, allocations: 362.6 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.6328, allocations: 8.375 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.531e-05/0.6329, allocations: 39.98 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.563e-05/0.6329, allocations: 3.281 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.301e-05/0.633, allocations: 171.8 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.633, allocations: 10.2 kB / 0.952 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.633, allocations: 5.5 kB / 0.952 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.6332, allocations: 72.41 kB / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.6332, allocations: 0 / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6333, allocations: 1.094 kB / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.6333, allocations: 1.406 kB / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.6335, allocations: 49.75 kB / 0.9522 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003405/0.6339, allocations: 288.1 kB / 0.9524 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.6341, allocations: 67.72 kB / 0.9525 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.6342, allocations: 26.8 kB / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.6342, allocations: 1.531 kB / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.6342, allocations: 42.55 kB / 0.9526 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.6342, allocations: 0 / 0.9526 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003802/0.6346, allocations: 105.8 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.6346, allocations: 55.34 kB / 0.9527 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.137e-05/0.6347, allocations: 111.5 kB / 0.9528 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.6347, allocations: 25.7 kB / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.068e-05/0.6348, allocations: 90.83 kB / 0.9529 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.6348, allocations: 12.97 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.6348, allocations: 21.73 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.883e-05/0.6349, allocations: 316.1 kB / 0.9533 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.635, allocations: 25.22 kB / 0.9533 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.6351, allocations: 23.98 kB / 0.9533 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.6353, allocations: 57.81 kB / 0.9534 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6353, allocations: 1.5 kB / 0.9534 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002385/0.6356, allocations: 84.28 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.6356, allocations: 5.281 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.6356, allocations: 3.984 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.6356, allocations: 1.469 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.6357, allocations: 11.45 kB / 0.9535 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.6358, allocations: 8.062 kB / 0.9535 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.51e-05/0.6358, allocations: 9.828 kB / 0.9535 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.6358, allocations: 1.5 kB / 0.9535 GB, free: 5.836 MB / 0.7169 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 6.295e-05/0.6359, allocations: 116.5 kB / 0.9536 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.6359, allocations: 5.25 kB / 0.9536 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.636, allocations: 13.33 kB / 0.9536 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.636, allocations: 4 kB / 0.9536 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.636, allocations: 1.438 kB / 0.9536 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.636, allocations: 4 kB / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.6361, allocations: 174.9 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.6362, allocations: 5.391 kB / 0.9538 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.739e-05/0.6362, allocations: 15.86 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.6363, allocations: 0 / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.6363, allocations: 1.469 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.6363, allocations: 0 / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6363, allocations: 0 / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.6365, allocations: 188.3 kB / 0.954 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.173e-05/0.6366, allocations: 86.58 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.6366, allocations: 0 / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.6367, allocations: 9.547 kB / 0.9541 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.42e-05/0.6368, allocations: 12.05 kB / 0.9541 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.6368, allocations: 1.469 kB / 0.9541 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.033e-05/0.6368, allocations: 88.52 kB / 0.9542 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6368, allocations: 0 / 0.9542 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002252/0.6371, allocations: 15.41 kB / 0.9542 GB, free: 5.094 MB / 0.7169 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.0004711/0.6375, allocations: 0.7087 MB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002556/0.6378, allocations: 57.92 kB / 0.9549 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6378, allocations: 1.562 kB / 0.9549 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.6379, allocations: 37.5 kB / 0.955 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.6382, allocations: 6.281 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.6395, allocations: 1.32 MB / 0.9563 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.542e-05/0.6396, allocations: 0.6842 MB / 0.9569 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.2e-05/0.6396, allocations: 2.719 kB / 0.957 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.6397, allocations: 24.08 kB / 0.957 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.6397, allocations: 4 kB / 0.957 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01646/0.6562, allocations: 1.807 MB / 0.9587 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.411, allocations: 5.75 kB / 0.9587 GB, free: 1.379 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches