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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.00476/0.00476, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001144/0.001144, allocations: 195 kB / 16.67 MB, free: 5.934 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.793/2.793, allocations: 469.4 MB / 0.7421 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001422, allocations: 71.91 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2699, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.001898/0.2718, allocations: 0.8262 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2728, allocations: 0.8701 MB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.2729, allocations: 0 / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.2731, allocations: 15.8 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.569e-05/0.2731, allocations: 11.88 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.2733, allocations: 27.91 kB / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.2734, allocations: 79.83 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2735, allocations: 27.97 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.421e-05/0.2736, allocations: 27.86 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.722e-05/0.2737, allocations: 31.8 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.2737, allocations: 12 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.2738, allocations: 4 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.2738, allocations: 15.91 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.2738, allocations: 35.8 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.274, allocations: 71.69 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.274, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.274, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.274, allocations: 3.938 kB / 1.222 GB, free: 12.55 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005264/0.2745, allocations: 399 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2746, allocations: 15.97 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.2746, allocations: 38.73 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.2747, allocations: 8.891 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.2749, allocations: 196.2 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.275, allocations: 4.375 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.275, allocations: 4.375 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.2751, allocations: 62.22 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2752, allocations: 7.938 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.2752, allocations: 4 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2752, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.2753, allocations: 39.91 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.2758, allocations: 320.7 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.276, allocations: 58.64 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.276, allocations: 12.86 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.2761, allocations: 4 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.2761, allocations: 34.64 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2761, allocations: 0 / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.000257/0.2764, allocations: 65.67 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.2764, allocations: 59.34 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.2765, allocations: 143.6 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.2765, allocations: 25.7 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.2766, allocations: 96.12 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.2766, allocations: 7.953 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.2767, allocations: 13.72 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.2768, allocations: 326.8 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.925e-05/0.2768, allocations: 19.98 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.58e-05/0.2769, allocations: 12 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.743e-05/0.277, allocations: 28.84 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.277, allocations: 0 / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001424/0.2771, allocations: 69.62 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2772, allocations: 7.938 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2772, allocations: 0 / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2772, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.976e-05/0.2773, allocations: 3.984 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2773, allocations: 11.94 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.917e-05/0.2774, allocations: 7.984 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.2774, allocations: 7.875 kB / 1.224 GB, free: 10.23 MB / 0.9825 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 7.945e-05/0.2775, allocations: 122.3 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.2775, allocations: 7.953 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.2775, allocations: 12.25 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2775, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2775, allocations: 4 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2776, allocations: 4 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.2777, allocations: 181.9 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2777, allocations: 3.984 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.242e-05/0.2778, allocations: 4 kB / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2778, allocations: 0 / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.2778, allocations: 0 / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2778, allocations: 4 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2778, allocations: 0 / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.278, allocations: 171.3 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.424e-05/0.278, allocations: 81.06 kB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.2781, allocations: 7.984 kB / 1.224 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2782, allocations: 8 kB / 1.224 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.2782, allocations: 7.984 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.2782, allocations: 3.984 kB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.482e-05/0.2783, allocations: 108.9 kB / 1.225 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2783, allocations: 0 / 1.225 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002259/0.2785, allocations: 12 kB / 1.225 GB, free: 9.41 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: 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.0004443/0.279, allocations: 0.6929 MB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001413/0.2791, allocations: 35.97 kB / 1.225 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2792, allocations: 4 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.363e-05/0.2792, allocations: 12 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.2795, allocations: 11.98 kB / 1.225 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.2808, allocations: 1.379 MB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.281, allocations: 0.6885 MB / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.045e-05/0.2811, allocations: 8 kB / 1.227 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.196e-05/0.2811, allocations: 27.42 kB / 1.227 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.2811, allocations: 192 / 1.227 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.2977, allocations: 1.999 MB / 1.229 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/7.743, allocations: 9.969 kB / 1.229 GB, free: 4.527 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 50 --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