Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.454/1.454, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009838/0.0009842, allocations: 174.5 kB / 327.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 0.5786 GB, free: 20.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008025/0.0008025, allocations: 90.3 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003196, allocations: 9.344 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 106.3 MB / 0.9015 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001467/0.1855, allocations: 1.164 MB / 0.9026 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005428/0.1861, allocations: 260.1 kB / 0.9028 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.344e-05/0.1862, allocations: 0 / 0.9028 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.1862, allocations: 3.938 kB / 0.9029 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.842e-05/0.1863, allocations: 11.86 kB / 0.9029 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.1865, allocations: 31.97 kB / 0.9029 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.449e-05/0.1866, allocations: 51.86 kB / 0.9029 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.893e-05/0.1867, allocations: 11.98 kB / 0.903 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.135e-05/0.1868, allocations: 19.92 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.971e-05/0.1868, allocations: 23.91 kB / 0.903 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.1869, allocations: 4 kB / 0.903 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.1869, allocations: 0 / 0.903 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.1869, allocations: 15.92 kB / 0.903 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.187, allocations: 45.58 kB / 0.9031 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.613e-05/0.187, allocations: 39.91 kB / 0.9031 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.187, allocations: 0 / 0.9031 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.653e-06/0.187, allocations: 0 / 0.9031 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.1871, allocations: 0 / 0.9031 GB, free: 61.8 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005008/0.1876, allocations: 375.5 kB / 0.9035 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1876, allocations: 12.03 kB / 0.9035 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.1877, allocations: 0.9375 kB / 0.9035 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.461e-05/0.1878, allocations: 180.2 kB / 0.9036 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.1878, allocations: 8.375 kB / 0.9036 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.1878, allocations: 4.375 kB / 0.9036 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.188, allocations: 70.22 kB / 0.9037 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.188, allocations: 4.188 kB / 0.9037 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.188, allocations: 3.938 kB / 0.9037 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.188, allocations: 0 / 0.9037 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.1882, allocations: 59.89 kB / 0.9038 GB, free: 61 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003718/0.1886, allocations: 300.7 kB / 0.9041 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.1888, allocations: 54.55 kB / 0.9041 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.562e-05/0.1889, allocations: 40.97 kB / 0.9042 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.1889, allocations: 0 / 0.9042 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/0.1891, allocations: 95.36 kB / 0.9043 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.1891, allocations: 0 / 0.9043 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003899/0.1895, allocations: 141.6 kB / 0.9044 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.1896, allocations: 51.41 kB / 0.9044 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.143e-05/0.1896, allocations: 118.1 kB / 0.9045 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/0.1897, allocations: 29.7 kB / 0.9046 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.355e-05/0.1897, allocations: 92.14 kB / 0.9047 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.1897, allocations: 19.73 kB / 0.9047 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-06/0.1897, allocations: 4 kB / 0.9047 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.1898, allocations: 318.7 kB / 0.905 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1899, allocations: 39.91 kB / 0.905 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.717e-05/0.19, allocations: 50.56 kB / 0.9051 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.1902, allocations: 90.52 kB / 0.9052 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1902, allocations: 0 / 0.9052 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002419/0.1905, allocations: 117.4 kB / 0.9053 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1905, allocations: 4 kB / 0.9053 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1905, allocations: 4.031 kB / 0.9053 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1905, allocations: 4 kB / 0.9053 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1906, allocations: 15.98 kB / 0.9053 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1906, allocations: 320 / 0.9053 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.62e-05/0.1907, allocations: 19.98 kB / 0.9053 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1908, allocations: 4 kB / 0.9053 GB, free: 59.28 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.278e-05/0.1908, allocations: 125.8 kB / 0.9054 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.1909, allocations: 7.906 kB / 0.9055 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.1911, allocations: 121.9 kB / 0.9056 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1912, allocations: 4 kB / 0.9056 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1912, allocations: 0 / 0.9056 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1912, allocations: 4 kB / 0.9056 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.1916, allocations: 390.4 kB / 0.9059 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1916, allocations: 4 kB / 0.906 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.1917, allocations: 15.98 kB / 0.906 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1917, allocations: 0 / 0.906 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1917, allocations: 192 / 0.906 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1917, allocations: 0 / 0.906 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1917, allocations: 3.938 kB / 0.906 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.192, allocations: 215.3 kB / 0.9062 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.962e-05/0.192, allocations: 77.11 kB / 0.9063 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.192, allocations: 4 kB / 0.9063 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.1921, allocations: 15.98 kB / 0.9063 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.1922, allocations: 15.92 kB / 0.9063 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.1922, allocations: 4 kB / 0.9063 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.045e-05/0.1922, allocations: 91.2 kB / 0.9064 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1923, allocations: 0 / 0.9064 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002112/0.1925, allocations: 12 kB / 0.9064 GB, free: 58.08 MB / 0.6042 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * 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 9.681e-05/0.1926, allocations: 101.2 kB / 0.9065 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.1928, allocations: 87.81 kB / 0.9066 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1928, allocations: 4 kB / 0.9066 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.193, allocations: 31.98 kB / 0.9066 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1932, allocations: 26.05 kB / 0.9066 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003436/0.1936, allocations: 200 kB / 0.9068 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.1937, allocations: 0.6902 MB / 0.9075 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.1938, allocations: 11.44 kB / 0.9075 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of SimCode: time 3.21e-07/0.1938, allocations: 0 / 0.9075 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of Templates: time 0.002024/0.1958, allocations: 0.9364 MB / 0.9084 GB, free: 55.95 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)