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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, 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.00124/0.00124, allocations: 194.2 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.714/1.714, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.842/1.842, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001465/0.001465, allocations: 71.62 kB / 0.6715 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3207, allocations: 114.6 MB / 0.7834 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.005313/0.326, allocations: 1.92 MB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002401/0.3285, allocations: 1.032 MB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.3288, allocations: 4 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.3294, allocations: 103.5 kB / 0.7864 GB, free: 10.38 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.0005159/0.33, allocations: 95.58 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.3306, allocations: 115.7 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004877/0.331, allocations: 211.4 kB / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3313, allocations: 41.67 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002835/0.3316, allocations: 91.62 kB / 0.7869 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.3319, allocations: 91.61 kB / 0.787 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.216e-05/0.3319, allocations: 12 kB / 0.787 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.3322, allocations: 63.97 kB / 0.7871 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.3324, allocations: 55.81 kB / 0.7871 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3325, allocations: 87.36 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.333, allocations: 267.3 kB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.333, allocations: 0 / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.312e-06/0.333, allocations: 0 / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.333, allocations: 0 / 0.7875 GB, free: 9.27 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.001024/0.3341, allocations: 0.5372 MB / 0.788 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.3341, allocations: 8.031 kB / 0.788 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3342, allocations: 24.66 kB / 0.788 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005891/0.3348, allocations: 307.6 kB / 0.7883 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.3349, allocations: 4.375 kB / 0.7883 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.3349, allocations: 11.94 kB / 0.7883 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.3351, allocations: 77.66 kB / 0.7884 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3351, allocations: 0 / 0.7884 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3351, allocations: 4 kB / 0.7884 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3352, allocations: 4 kB / 0.7884 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.3353, allocations: 43.97 kB / 0.7884 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009831/0.3363, allocations: 416.5 kB / 0.7888 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.3366, allocations: 86.59 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.17e-05/0.3367, allocations: 28.84 kB / 0.789 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.3368, allocations: 0 / 0.789 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.337, allocations: 83.31 kB / 0.789 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/0.337, allocations: 4 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003908/0.3374, allocations: 137.3 kB / 0.7892 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.3375, allocations: 51.41 kB / 0.7892 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.338, allocations: 358.9 kB / 0.7896 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.338, allocations: 33.7 kB / 0.7896 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.3383, allocations: 140 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.3383, allocations: 19.8 kB / 0.7897 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.3384, allocations: 37.7 kB / 0.7898 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002061/0.3386, allocations: 338.8 kB / 0.7901 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3388, allocations: 59.92 kB / 0.7902 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3389, allocations: 77.67 kB / 0.7902 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.3392, allocations: 85.7 kB / 0.7903 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3392, allocations: 4 kB / 0.7903 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004373/0.3397, allocations: 192.1 kB / 0.7905 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3397, allocations: 8.031 kB / 0.7905 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.3397, allocations: 4 kB / 0.7905 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3398, allocations: 3.938 kB / 0.7905 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.3399, allocations: 23.98 kB / 0.7905 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.3399, allocations: 4 kB / 0.7905 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.3401, allocations: 19.77 kB / 0.7906 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.3401, allocations: 8 kB / 0.7906 GB, free: 5.84 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.0001681/0.3403, allocations: 153.8 kB / 0.7907 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.65e-05/0.3404, allocations: 27.7 kB / 0.7907 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.071e-05/0.3404, allocations: 25.75 kB / 0.7908 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3404, allocations: 3.938 kB / 0.7908 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3405, allocations: 0 / 0.7908 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3405, allocations: 3.984 kB / 0.7908 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.3407, allocations: 241.6 kB / 0.791 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3407, allocations: 0 / 0.791 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-05/0.3407, allocations: 11.98 kB / 0.791 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-06/0.3408, allocations: 0 / 0.791 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3408, allocations: 0 / 0.791 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3408, allocations: 11.94 kB / 0.791 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3408, allocations: 3.938 kB / 0.791 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.341, allocations: 124.8 kB / 0.7912 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.918e-05/0.3411, allocations: 100.9 kB / 0.7912 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.3411, allocations: 4 kB / 0.7913 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.3412, allocations: 15.92 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.3413, allocations: 11.92 kB / 0.7913 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.966e-06/0.3413, allocations: 8 kB / 0.7913 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002384/0.3415, allocations: 229.9 kB / 0.7915 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3416, allocations: 0 / 0.7915 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002742/0.3418, allocations: 39.89 kB / 0.7915 GB, free: 4.75 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.001199/0.343, allocations: 426.9 kB / 0.7919 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.3433, allocations: 107.9 kB / 0.7921 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3434, allocations: 8.062 kB / 0.7921 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.383e-05/0.3435, allocations: 35.86 kB / 0.7921 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.3438, allocations: 54.89 kB / 0.7921 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008295/0.3447, allocations: 371.4 kB / 0.7925 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.3452, allocations: 0.7437 MB / 0.7932 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001413/0.3454, allocations: 29.52 kB / 0.7933 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.758e-05/0.3454, allocations: 19.44 kB / 0.7933 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of SimCode: time 2.8e-07/0.3455, allocations: 0 / 0.7933 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of Templates: time 0.008042/0.3535, allocations: 2.812 MB / 0.796 GB, free: 284 kB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1)