Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.481/1.481, allocations: 288.4 MB / 303.6 MB, free: 8.012 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009107/0.0009107, allocations: 181.3 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 0.631 GB, free: 9.91 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006934/0.0006934, allocations: 90.23 kB / 0.7444 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003655, allocations: 12.16 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1725, allocations: 115.3 MB / 0.9802 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0007339/0.1732, allocations: 453.9 kB / 0.9806 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.1744, allocations: 1.161 MB / 0.9818 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.349e-05/0.1745, allocations: 0 / 0.9818 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.526e-05/0.1745, allocations: 4 kB / 0.9818 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.1746, allocations: 7.938 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.175, allocations: 125.1 kB / 0.9819 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.881e-05/0.1751, allocations: 91.81 kB / 0.982 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.381e-05/0.1752, allocations: 19.92 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.954e-05/0.1753, allocations: 39.91 kB / 0.982 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.374e-05/0.1754, allocations: 39.83 kB / 0.9821 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.1754, allocations: 8 kB / 0.9821 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.795e-05/0.1755, allocations: 15.98 kB / 0.9821 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.1755, allocations: 11.97 kB / 0.9821 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.67e-05/0.1756, allocations: 57.56 kB / 0.9822 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.61e-05/0.1757, allocations: 84.03 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1757, allocations: 0 / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.753e-06/0.1757, allocations: 0 / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.1757, allocations: 0 / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004338/0.1761, allocations: 401.1 kB / 0.9826 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1762, allocations: 8.031 kB / 0.9826 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.1762, allocations: 30.75 kB / 0.9827 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.1763, allocations: 12.84 kB / 0.9827 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.312e-05/0.1763, allocations: 168.3 kB / 0.9828 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.1764, allocations: 4.375 kB / 0.9828 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.1764, allocations: 16.31 kB / 0.9829 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.1766, allocations: 74.2 kB / 0.9829 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.1766, allocations: 3.938 kB / 0.9829 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1766, allocations: 4 kB / 0.9829 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.1766, allocations: 0 / 0.9829 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.1768, allocations: 51.95 kB / 0.983 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003646/0.1772, allocations: 328.7 kB / 0.9833 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.1773, allocations: 58.48 kB / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.473e-05/0.1774, allocations: 32.94 kB / 0.9834 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.1774, allocations: 7.969 kB / 0.9834 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.1776, allocations: 87.38 kB / 0.9835 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.582e-06/0.1776, allocations: 4 kB / 0.9835 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0003735/0.178, allocations: 153.5 kB / 0.9836 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.178, allocations: 59.41 kB / 0.9837 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.582e-05/0.1781, allocations: 113.8 kB / 0.9838 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1781, allocations: 33.7 kB / 0.9838 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.1782, allocations: 92.09 kB / 0.9839 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.1782, allocations: 15.81 kB / 0.9839 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.1782, allocations: 4 kB / 0.9839 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.055e-05/0.1783, allocations: 318.8 kB / 0.9842 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.1784, allocations: 59.95 kB / 0.9843 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.1785, allocations: 79.39 kB / 0.9844 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.1788, allocations: 145 kB / 0.9845 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1788, allocations: 4 kB / 0.9845 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003494/0.1791, allocations: 211.1 kB / 0.9847 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.1792, allocations: 33.69 kB / 0.9847 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1792, allocations: 7.938 kB / 0.9847 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1792, allocations: 0 / 0.9847 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-05/0.1793, allocations: 15.98 kB / 0.9848 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1793, allocations: 0 / 0.9848 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1795, allocations: 48.03 kB / 0.9848 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.1795, allocations: 11.98 kB / 0.9848 GB, free: 22.2 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.496e-05/0.1796, allocations: 131.1 kB / 0.9849 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.1796, allocations: 7.906 kB / 0.985 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.1799, allocations: 126 kB / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1799, allocations: 4 kB / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1799, allocations: 0 / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1799, allocations: 0 / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.1802, allocations: 374.4 kB / 0.9854 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1803, allocations: 0 / 0.9854 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.1803, allocations: 15.98 kB / 0.9854 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1803, allocations: 0 / 0.9854 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.161e-05/0.1804, allocations: 4 kB / 0.9855 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1804, allocations: 0 / 0.9855 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1804, allocations: 3.938 kB / 0.9855 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.1807, allocations: 211.5 kB / 0.9857 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.1807, allocations: 85.02 kB / 0.9857 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.1807, allocations: 4 kB / 0.9857 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.1808, allocations: 11.98 kB / 0.9858 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.1809, allocations: 11.86 kB / 0.9858 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.1809, allocations: 4 kB / 0.9858 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.849e-05/0.1809, allocations: 95.67 kB / 0.9859 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.1809, allocations: 0 / 0.9859 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002356/0.1812, allocations: 24 kB / 0.9859 GB, free: 21.01 MB / 0.6198 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 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * 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 0.000422/0.1816, allocations: 0.7442 MB / 0.9866 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003188/0.1819, allocations: 179.3 kB / 0.9868 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1819, allocations: 0 / 0.9868 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.182, allocations: 52.09 kB / 0.9868 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1823, allocations: 16.95 kB / 0.9868 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009629/0.1833, allocations: 0.6547 MB / 0.9875 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.605e-05/0.1834, allocations: 0.6809 MB / 0.9881 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.766e-05/0.1834, allocations: 7.75 kB / 0.9882 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.1835, allocations: 23.42 kB / 0.9882 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of SimCode: time 2.01e-07/0.1835, allocations: 0 / 0.9882 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.1954, allocations: 2.121 MB / 0.9903 GB, free: 16.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.1955, allocations: 199.7 kB / 0.9904 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.446/1.642, allocations: 4 kB / 0.9904 GB, free: 16.36 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)