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.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.448/1.448, allocations: 252 MB / 267.6 MB, free: 10.95 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.001125/0.001125, allocations: 180.9 kB / 327.3 MB, free: 2.203 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.894/1.894, allocations: 205.4 MB / 0.5783 GB, free: 20.51 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.0009037/0.0009037, allocations: 78.12 kB / 0.6829 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 9.906 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1931, allocations: 106.3 MB / 0.9008 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001367/0.1946, allocations: 1.172 MB / 0.902 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000361/0.1949, allocations: 232.2 kB / 0.9022 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.091e-05/0.195, allocations: 0 / 0.9022 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.579e-05/0.195, allocations: 7.922 kB / 0.9022 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.19e-05/0.1951, allocations: 11.94 kB / 0.9022 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.1953, allocations: 23.97 kB / 0.9022 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.857e-05/0.1954, allocations: 55.84 kB / 0.9023 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1955, allocations: 20.11 kB / 0.9023 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.434e-05/0.1956, allocations: 19.92 kB / 0.9023 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.122e-05/0.1956, allocations: 15.92 kB / 0.9024 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.1956, allocations: 4 kB / 0.9024 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.1956, allocations: 4 kB / 0.9024 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.375e-05/0.1957, allocations: 19.91 kB / 0.9024 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.1957, allocations: 33.7 kB / 0.9024 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.915e-05/0.1958, allocations: 51.83 kB / 0.9025 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1958, allocations: 0 / 0.9025 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.1958, allocations: 0 / 0.9025 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.1958, allocations: 0 / 0.9025 GB, free: 62.58 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.0004757/0.1963, allocations: 383.4 kB / 0.9028 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1963, allocations: 11.97 kB / 0.9028 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.1963, allocations: 7.906 kB / 0.9028 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.048e-05/0.1964, allocations: 175 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.1965, allocations: 0 / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.1965, allocations: 8 kB / 0.903 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.1967, allocations: 77.66 kB / 0.9031 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1967, allocations: 0 / 0.9031 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1967, allocations: 15.86 kB / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1967, allocations: 0 / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.1969, allocations: 59.95 kB / 0.9032 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.1973, allocations: 312.7 kB / 0.9035 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.1974, allocations: 70.48 kB / 0.9035 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-05/0.1976, allocations: 40.97 kB / 0.9036 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.1976, allocations: 3.984 kB / 0.9036 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.1978, allocations: 83.38 kB / 0.9037 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.1978, allocations: 4 kB / 0.9037 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003915/0.1982, allocations: 157.4 kB / 0.9038 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.1982, allocations: 63.41 kB / 0.9039 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.201e-05/0.1983, allocations: 118 kB / 0.904 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.1983, allocations: 25.7 kB / 0.904 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.006e-05/0.1984, allocations: 103.8 kB / 0.9041 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.1984, allocations: 19.8 kB / 0.9041 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.1984, allocations: 4 kB / 0.9041 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.1984, allocations: 310.8 kB / 0.9044 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.1986, allocations: 39.97 kB / 0.9045 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.1987, allocations: 64.27 kB / 0.9045 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.1988, allocations: 39.98 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1988, allocations: 0 / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000248/0.199, allocations: 134 kB / 0.9047 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1991, allocations: 11.94 kB / 0.9047 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.1991, allocations: 0 / 0.9047 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1991, allocations: 4.031 kB / 0.9047 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1992, allocations: 27.86 kB / 0.9047 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.1992, allocations: 3.953 kB / 0.9047 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.595e-05/0.1993, allocations: 27.92 kB / 0.9048 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1993, allocations: 4 kB / 0.9048 GB, free: 59.98 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.253e-05/0.1994, allocations: 128.6 kB / 0.9049 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.1994, allocations: 0 / 0.9049 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.1997, allocations: 130 kB / 0.905 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1997, allocations: 4 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1997, allocations: 4 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1998, allocations: 3.953 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.2002, allocations: 402.8 kB / 0.9054 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2002, allocations: 0 / 0.9054 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-05/0.2003, allocations: 19.92 kB / 0.9054 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2003, allocations: 0 / 0.9054 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.403e-06/0.2003, allocations: 0 / 0.9054 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2003, allocations: 4.031 kB / 0.9054 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2003, allocations: 3.984 kB / 0.9054 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.2005, allocations: 219.4 kB / 0.9056 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.2006, allocations: 85.09 kB / 0.9057 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.2006, allocations: 0 / 0.9057 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.2008, allocations: 23.98 kB / 0.9058 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.2008, allocations: 11.94 kB / 0.9058 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.2008, allocations: 0 / 0.9058 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.569e-05/0.2009, allocations: 91.27 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2009, allocations: 3.938 kB / 0.9059 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002544/0.2011, allocations: 16 kB / 0.9059 GB, free: 58.75 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: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.779e-05/0.2012, allocations: 103.2 kB / 0.906 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003013/0.2015, allocations: 87.86 kB / 0.9061 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2016, allocations: 0 / 0.9061 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.2017, allocations: 44.23 kB / 0.9061 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.202, allocations: 16.27 kB / 0.9061 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.2024, allocations: 228.7 kB / 0.9063 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.2025, allocations: 0.6907 MB / 0.907 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.2026, allocations: 11.44 kB / 0.907 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of SimCode: time 2.8e-07/0.2026, allocations: 0 / 0.907 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of Templates: time 0.002229/0.2048, allocations: 0.9951 MB / 0.908 GB, free: 56.52 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)