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.001043/0.001043, allocations: 109.4 kB / 15.69 MB, free: 128 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.001055/0.001055, allocations: 188 kB / 16.62 MB, free: 6.582 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.516/1.516, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.748/1.748, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001464/0.001464, allocations: 70.61 kB / 0.6718 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.239, allocations: 114.5 MB / 0.7837 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003411/0.2425, allocations: 1.924 MB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2441, allocations: 1.028 MB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.2443, allocations: 7.938 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004235/0.2447, allocations: 99.56 kB / 0.7866 GB, free: 10.15 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.0003277/0.2451, allocations: 95.56 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003965/0.2455, allocations: 125.3 kB / 0.7869 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000325/0.2458, allocations: 203.4 kB / 0.787 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.246, allocations: 49.64 kB / 0.7871 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.2462, allocations: 91.56 kB / 0.7872 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.2463, allocations: 87.66 kB / 0.7873 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.892e-05/0.2464, allocations: 12 kB / 0.7873 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.2465, allocations: 63.97 kB / 0.7873 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.722e-05/0.2466, allocations: 59.77 kB / 0.7874 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.775e-05/0.2468, allocations: 79.42 kB / 0.7875 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004143/0.2472, allocations: 279.3 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.2472, allocations: 4 kB / 0.7877 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.315e-06/0.2472, allocations: 0 / 0.7877 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.2472, allocations: 0 / 0.7877 GB, free: 9.027 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.0009786/0.2482, allocations: 0.5293 MB / 0.7883 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.2483, allocations: 12.03 kB / 0.7883 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.725e-05/0.2483, allocations: 38.73 kB / 0.7883 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.117e-05/0.2484, allocations: 24.66 kB / 0.7883 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.2489, allocations: 311.7 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.2489, allocations: 8.125 kB / 0.7886 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.249, allocations: 8 kB / 0.7886 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.2492, allocations: 84.72 kB / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2492, allocations: 0 / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.2492, allocations: 0 / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2492, allocations: 0 / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.2494, allocations: 43.97 kB / 0.7888 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008177/0.2502, allocations: 416.5 kB / 0.7892 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.2505, allocations: 82.66 kB / 0.7892 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.848e-05/0.2506, allocations: 36.77 kB / 0.7893 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.2506, allocations: 8 kB / 0.7893 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.2508, allocations: 67.39 kB / 0.7893 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 3.697e-06/0.2508, allocations: 0 / 0.7893 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003901/0.2512, allocations: 141.2 kB / 0.7895 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.2513, allocations: 51.41 kB / 0.7895 GB, free: 7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.2517, allocations: 362.9 kB / 0.7899 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.2517, allocations: 29.7 kB / 0.7899 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.2519, allocations: 144 kB / 0.79 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.2519, allocations: 19.8 kB / 0.7901 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/0.252, allocations: 41.7 kB / 0.7901 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2521, allocations: 334.8 kB / 0.7904 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.2523, allocations: 55.98 kB / 0.7905 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.2524, allocations: 81.61 kB / 0.7906 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.2526, allocations: 93.64 kB / 0.7906 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2526, allocations: 0 / 0.7906 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003388/0.2529, allocations: 197.2 kB / 0.7908 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.253, allocations: 4 kB / 0.7908 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.253, allocations: 0 / 0.7908 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.253, allocations: 3.938 kB / 0.7908 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2531, allocations: 23.98 kB / 0.7909 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2532, allocations: 0 / 0.7909 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.2533, allocations: 23.86 kB / 0.7909 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.2533, allocations: 8 kB / 0.7909 GB, free: 5.551 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.0001707/0.2535, allocations: 153.8 kB / 0.791 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.2535, allocations: 23.72 kB / 0.7911 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.141e-05/0.2536, allocations: 29.69 kB / 0.7911 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2536, allocations: 0 / 0.7911 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.2536, allocations: 3.984 kB / 0.7911 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2536, allocations: 0 / 0.7911 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.2539, allocations: 245.6 kB / 0.7913 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2539, allocations: 4 kB / 0.7913 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.2539, allocations: 3.984 kB / 0.7913 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2539, allocations: 4 kB / 0.7913 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2539, allocations: 3.938 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2539, allocations: 0 / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.254, allocations: 0 / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.2542, allocations: 136.8 kB / 0.7915 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/0.2543, allocations: 96.91 kB / 0.7916 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.2543, allocations: 11.94 kB / 0.7916 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.2544, allocations: 11.98 kB / 0.7916 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/0.2545, allocations: 7.984 kB / 0.7916 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.2545, allocations: 7.938 kB / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002288/0.2548, allocations: 225.9 kB / 0.7918 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2548, allocations: 0 / 0.7918 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000289/0.2551, allocations: 44.02 kB / 0.7919 GB, free: 4.465 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.001481/0.2565, allocations: 0.9986 MB / 0.7928 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002761/0.2568, allocations: 103.9 kB / 0.7929 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2568, allocations: 3.938 kB / 0.7929 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.498e-05/0.2569, allocations: 35.92 kB / 0.793 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.2573, allocations: 55.89 kB / 0.793 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.2601, allocations: 2.306 MB / 0.7953 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.2605, allocations: 0.7476 MB / 0.796 GB, free: 236 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000113/0.2606, allocations: 25.53 kB / 0.796 GB, free: 212 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.2608, allocations: 67.41 kB / 0.7961 GB, free: 144 kB / 0.6075 GB Notification: Performance of SimCode: time 1.262e-06/0.2608, allocations: 0 / 0.7961 GB, free: 144 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.2869, allocations: 5.103 MB / 0.8011 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.205, allocations: 9.719 kB / 0.8011 GB, free: 11.17 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)