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.52/1.52, allocations: 252 MB / 267.6 MB, free: 10.96 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.0009193/0.0009193, allocations: 171.4 kB / 327.3 MB, free: 2.25 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.69/1.69, allocations: 205.4 MB / 0.5783 GB, free: 20.27 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.0008112/0.0008112, allocations: 91.23 kB / 0.6829 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.000345, allocations: 9.031 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2109, allocations: 106.3 MB / 0.9008 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001471/0.2125, allocations: 1.156 MB / 0.902 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004595/0.2129, allocations: 256.2 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.154e-05/0.213, allocations: 4 kB / 0.9022 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.213, allocations: 0 / 0.9022 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.069e-05/0.2131, allocations: 11.86 kB / 0.9022 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.2133, allocations: 31.91 kB / 0.9023 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.968e-05/0.2134, allocations: 51.84 kB / 0.9023 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.771e-05/0.2135, allocations: 15.98 kB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.126e-05/0.2136, allocations: 19.92 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.854e-05/0.2136, allocations: 23.91 kB / 0.9024 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.2137, allocations: 0 / 0.9024 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.169e-05/0.2137, allocations: 4 kB / 0.9024 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.2137, allocations: 11.92 kB / 0.9024 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.676e-05/0.2137, allocations: 29.7 kB / 0.9024 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.54e-05/0.2138, allocations: 35.92 kB / 0.9024 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.2138, allocations: 4 kB / 0.9024 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2138, allocations: 0 / 0.9024 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2138, allocations: 0 / 0.9024 GB, free: 62.27 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.0005403/0.2144, allocations: 375.4 kB / 0.9028 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2144, allocations: 8.031 kB / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.2145, allocations: 4 kB / 0.9028 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.2146, allocations: 174.9 kB / 0.903 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.2146, allocations: 7.922 kB / 0.903 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.2146, allocations: 16 kB / 0.903 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.2148, allocations: 73.64 kB / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.2148, allocations: 0 / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2149, allocations: 0 / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2149, allocations: 0 / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.2151, allocations: 59.95 kB / 0.9031 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000377/0.2155, allocations: 284.8 kB / 0.9034 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.2156, allocations: 66.55 kB / 0.9035 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.646e-05/0.2157, allocations: 32.95 kB / 0.9035 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.2158, allocations: 4 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.216, allocations: 83.38 kB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.216, allocations: 0 / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.000417/0.2164, allocations: 153.5 kB / 0.9037 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.2165, allocations: 55.36 kB / 0.9038 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.855e-05/0.2165, allocations: 113.8 kB / 0.9039 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.2166, allocations: 29.7 kB / 0.9039 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.132e-05/0.2166, allocations: 95.98 kB / 0.904 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.2166, allocations: 19.75 kB / 0.904 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.2166, allocations: 7.938 kB / 0.904 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.187e-05/0.2167, allocations: 318.8 kB / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.794e-05/0.2168, allocations: 27.98 kB / 0.9044 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.2169, allocations: 50.55 kB / 0.9044 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.217, allocations: 43.91 kB / 0.9045 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.217, allocations: 4 kB / 0.9045 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002281/0.2172, allocations: 105.6 kB / 0.9046 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.2173, allocations: 8.031 kB / 0.9046 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2173, allocations: 0 / 0.9046 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2173, allocations: 4 kB / 0.9046 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.99e-05/0.2174, allocations: 15.98 kB / 0.9046 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.2174, allocations: 3.953 kB / 0.9046 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.978e-05/0.2175, allocations: 27.88 kB / 0.9046 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.2175, allocations: 0 / 0.9046 GB, free: 59.81 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.84e-05/0.2176, allocations: 119.6 kB / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.2176, allocations: 11.92 kB / 0.9047 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.2179, allocations: 118.6 kB / 0.9049 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2179, allocations: 4 kB / 0.9049 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2179, allocations: 0 / 0.9049 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.2179, allocations: 3.953 kB / 0.9049 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004486/0.2184, allocations: 394.5 kB / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2184, allocations: 0 / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.057e-05/0.2185, allocations: 11.98 kB / 0.9052 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2185, allocations: 0 / 0.9052 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.2185, allocations: 0 / 0.9052 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2185, allocations: 8.031 kB / 0.9053 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2185, allocations: 3.984 kB / 0.9053 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.2188, allocations: 207.5 kB / 0.9055 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.439e-05/0.2188, allocations: 81.02 kB / 0.9055 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.2188, allocations: 7.938 kB / 0.9055 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.2189, allocations: 19.98 kB / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.219, allocations: 11.94 kB / 0.9056 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.219, allocations: 8 kB / 0.9056 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.116e-05/0.219, allocations: 91.27 kB / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.219, allocations: 3.938 kB / 0.9057 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001995/0.2193, allocations: 8 kB / 0.9057 GB, free: 58.62 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 (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.466e-05/0.2194, allocations: 103.4 kB / 0.9058 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002506/0.2196, allocations: 87.88 kB / 0.9059 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2196, allocations: 0 / 0.9059 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.2197, allocations: 31.98 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.22, allocations: 20.05 kB / 0.9059 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003368/0.2204, allocations: 200.1 kB / 0.9061 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2205, allocations: 0.6848 MB / 0.9068 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.2205, allocations: 15.44 kB / 0.9068 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2205, allocations: 3.938 kB / 0.9068 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of Templates: time 0.001991/0.2225, allocations: 0.9168 MB / 0.9077 GB, free: 56.5 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)