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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.467/1.467, allocations: 251.5 MB / 267.4 MB, free: 11.09 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.00131/0.00131, allocations: 184.5 kB / 326.5 MB, free: 2.68 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.878/1.878, allocations: 205 MB / 0.5766 GB, free: 21 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.0008213/0.0008213, allocations: 96.81 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003571, allocations: 11.31 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1869, allocations: 105.4 MB / 0.8968 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001474/0.1884, allocations: 1.128 MB / 0.8979 GB, free: 67.03 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004482/0.1889, allocations: 249.7 kB / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.189, allocations: 0 / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.31e-05/0.189, allocations: 0 / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.046e-05/0.1891, allocations: 3.938 kB / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.1893, allocations: 27.97 kB / 0.8981 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.263e-05/0.1894, allocations: 63.77 kB / 0.8982 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.1895, allocations: 16 kB / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.179e-05/0.1896, allocations: 19.92 kB / 0.8982 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.153e-05/0.1896, allocations: 31.89 kB / 0.8983 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.1896, allocations: 4 kB / 0.8983 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.119e-05/0.1897, allocations: 0 / 0.8983 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.118e-05/0.1897, allocations: 15.92 kB / 0.8983 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.863e-05/0.1897, allocations: 19.88 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.697e-05/0.1898, allocations: 52.09 kB / 0.8983 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1898, allocations: 0 / 0.8983 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1898, allocations: 0 / 0.8983 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.1898, allocations: 0 / 0.8983 GB, free: 66.53 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004856/0.1903, allocations: 383.3 kB / 0.8987 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1904, allocations: 8.031 kB / 0.8987 GB, free: 66.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.1904, allocations: 4.938 kB / 0.8987 GB, free: 66.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.062e-05/0.1905, allocations: 176.2 kB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.1905, allocations: 8.312 kB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.1905, allocations: 12.38 kB / 0.8989 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.1907, allocations: 82.2 kB / 0.899 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1908, allocations: 192 / 0.899 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1908, allocations: 3.938 kB / 0.899 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1908, allocations: 4 kB / 0.899 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.191, allocations: 63.95 kB / 0.8991 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004005/0.1914, allocations: 312.7 kB / 0.8994 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.1916, allocations: 90.47 kB / 0.8994 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1917, allocations: 52.83 kB / 0.8995 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.1917, allocations: 3.984 kB / 0.8995 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.1919, allocations: 103.4 kB / 0.8996 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.1919, allocations: 0 / 0.8996 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004558/0.1924, allocations: 185.6 kB / 0.8998 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.1924, allocations: 59.39 kB / 0.8998 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.411e-05/0.1925, allocations: 101.8 kB / 0.8999 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.1925, allocations: 33.7 kB / 0.9 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.894e-05/0.1926, allocations: 92.28 kB / 0.9 GB, free: 64.58 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.1926, allocations: 23.7 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.1926, allocations: 17.72 kB / 0.9001 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.863e-05/0.1927, allocations: 322.8 kB / 0.9004 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1928, allocations: 39.97 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1929, allocations: 75.34 kB / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.1931, allocations: 119.3 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1931, allocations: 8 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002724/0.1934, allocations: 157.4 kB / 0.9008 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1934, allocations: 4.375 kB / 0.9008 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1935, allocations: 4.25 kB / 0.9008 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1935, allocations: 4.094 kB / 0.9008 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1936, allocations: 23.98 kB / 0.9008 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1936, allocations: 7.938 kB / 0.9008 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.1937, allocations: 15.98 kB / 0.9008 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.1937, allocations: 4 kB / 0.9008 GB, free: 63.72 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.339e-05/0.1938, allocations: 125.7 kB / 0.901 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.1938, allocations: 11.91 kB / 0.901 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.1941, allocations: 153.9 kB / 0.9011 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1941, allocations: 0 / 0.9011 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1941, allocations: 0 / 0.9011 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.1941, allocations: 0 / 0.9011 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003999/0.1945, allocations: 430.3 kB / 0.9015 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1945, allocations: 0 / 0.9015 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.744e-05/0.1946, allocations: 12 kB / 0.9015 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1946, allocations: 0 / 0.9015 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1946, allocations: 7.984 kB / 0.9015 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1946, allocations: 4 kB / 0.9015 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1946, allocations: 0 / 0.9015 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.1949, allocations: 247.3 kB / 0.9018 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.195, allocations: 85.02 kB / 0.9019 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.195, allocations: 7.922 kB / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1951, allocations: 15.98 kB / 0.9019 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.1951, allocations: 4 kB / 0.9019 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.1951, allocations: 11.92 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.416e-05/0.1952, allocations: 83.56 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.032e-06/0.1952, allocations: 0 / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002231/0.1954, allocations: 27.94 kB / 0.902 GB, free: 62.41 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 8.438e-05/0.1955, allocations: 99.19 kB / 0.9021 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002639/0.1958, allocations: 107.9 kB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1958, allocations: 4.188 kB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.1959, allocations: 51.91 kB / 0.9023 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.1962, allocations: 11.98 kB / 0.9023 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.1965, allocations: 193.7 kB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.859e-05/0.1966, allocations: 0.6887 MB / 0.9031 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.1966, allocations: 11.44 kB / 0.9031 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.1966, allocations: 0 / 0.9031 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of Templates: time 0.00198/0.1986, allocations: 1.001 MB / 0.9041 GB, free: 60.19 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)