Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_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.00105/0.00105, 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.001115, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.709/1.709, allocations: 292.3 MB / 0.5489 GB, free: 12.85 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 73.88 kB / 0.6716 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2509, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003721/0.2546, allocations: 1.924 MB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001633/0.2563, allocations: 1.02 MB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.2564, allocations: 7.938 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004089/0.2569, allocations: 107.5 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.2572, allocations: 95.58 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.2575, allocations: 126.9 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.2578, allocations: 207.4 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.258, allocations: 41.67 kB / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.2581, allocations: 87.62 kB / 0.787 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.2582, allocations: 87.66 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.083e-05/0.2583, allocations: 12 kB / 0.7871 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.2585, allocations: 67.91 kB / 0.7872 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.2586, allocations: 55.83 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.2587, allocations: 83.41 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.259, allocations: 279.3 kB / 0.7876 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.259, allocations: 0 / 0.7876 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.259, allocations: 3.938 kB / 0.7876 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.259, allocations: 0 / 0.7876 GB, free: 9.168 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008087/0.2599, allocations: 0.5216 MB / 0.7881 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.2599, allocations: 8.031 kB / 0.7881 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.513e-05/0.26, allocations: 46.67 kB / 0.7881 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.26, allocations: 20.66 kB / 0.7882 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.2604, allocations: 315.7 kB / 0.7885 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.2604, allocations: 8.125 kB / 0.7885 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.2605, allocations: 8 kB / 0.7885 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.2606, allocations: 85.59 kB / 0.7885 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2607, allocations: 0 / 0.7885 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.2607, allocations: 0 / 0.7885 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2607, allocations: 0 / 0.7885 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.2609, allocations: 39.97 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000725/0.2616, allocations: 420.5 kB / 0.789 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/0.2618, allocations: 78.66 kB / 0.7891 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.467e-05/0.2619, allocations: 28.86 kB / 0.7891 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.2619, allocations: 7.984 kB / 0.7891 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.2621, allocations: 75.33 kB / 0.7892 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.2621, allocations: 0 / 0.7892 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003477/0.2625, allocations: 137.3 kB / 0.7893 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.2625, allocations: 55.41 kB / 0.7894 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.2629, allocations: 358.9 kB / 0.7897 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2629, allocations: 33.7 kB / 0.7897 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.73e-05/0.263, allocations: 140 kB / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.263, allocations: 19.8 kB / 0.7899 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.791e-05/0.2631, allocations: 41.7 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2633, allocations: 334.8 kB / 0.7902 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.2634, allocations: 55.98 kB / 0.7903 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.2635, allocations: 80.28 kB / 0.7904 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.2637, allocations: 93.69 kB / 0.7905 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2637, allocations: 0 / 0.7905 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000304/0.264, allocations: 193.2 kB / 0.7906 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.264, allocations: 4 kB / 0.7906 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.264, allocations: 0 / 0.7906 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.264, allocations: 7.938 kB / 0.7907 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.2642, allocations: 31.91 kB / 0.7907 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2642, allocations: 0 / 0.7907 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.2643, allocations: 23.86 kB / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.2643, allocations: 8 kB / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,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 (18): * Single equations (assignments): 18 * 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 0.0001391/0.2645, allocations: 156.1 kB / 0.7909 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.2645, allocations: 19.72 kB / 0.7909 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.728e-05/0.2646, allocations: 33.67 kB / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2646, allocations: 0 / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2646, allocations: 0 / 0.7909 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.2646, allocations: 3.984 kB / 0.7909 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.2648, allocations: 249.6 kB / 0.7912 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2648, allocations: 0 / 0.7912 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.301e-05/0.2649, allocations: 4 kB / 0.7912 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.2649, allocations: 0 / 0.7912 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.2649, allocations: 7.922 kB / 0.7912 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2649, allocations: 0 / 0.7912 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.2649, allocations: 4 kB / 0.7912 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.2651, allocations: 136.8 kB / 0.7913 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.311e-05/0.2652, allocations: 100.9 kB / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.2653, allocations: 7.938 kB / 0.7914 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.753e-05/0.2653, allocations: 11.98 kB / 0.7914 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.2654, allocations: 7.984 kB / 0.7914 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2654, allocations: 4 kB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000236/0.2657, allocations: 225.9 kB / 0.7916 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2657, allocations: 0 / 0.7916 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002478/0.2659, allocations: 44.03 kB / 0.7917 GB, free: 4.609 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,les.y,lesHys.lesHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,lesHys.lesHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.001414/0.2673, allocations: 1.001 MB / 0.7927 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.2676, allocations: 107.8 kB / 0.7928 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2676, allocations: 4 kB / 0.7928 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.743e-05/0.2677, allocations: 36.03 kB / 0.7928 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.2681, allocations: 61.5 kB / 0.7929 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.2709, allocations: 2.299 MB / 0.7951 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.2713, allocations: 0.7437 MB / 0.7958 GB, free: 396 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.065e-05/0.2714, allocations: 29.52 kB / 0.7959 GB, free: 368 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2715, allocations: 71.41 kB / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2715, allocations: 0 / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0249/0.2964, allocations: 5.088 MB / 0.8009 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/8.07, allocations: 10.81 kB / 0.8009 GB, free: 11.31 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1)