Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009331/0.0009329, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006185/0.006186, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.532/1.532, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000451/0.000451, allocations: 18.5 kB / 0.6744 GB, free: 25.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1763, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0007441/0.1771, allocations: 477.3 kB / 0.7885 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1784, allocations: 1.192 MB / 0.7896 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.677e-05/0.1784, allocations: 0 / 0.7896 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.166e-05/0.1784, allocations: 0 / 0.7896 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.596e-05/0.1785, allocations: 7.938 kB / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.1789, allocations: 126.9 kB / 0.7897 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.987e-05/0.179, allocations: 103.8 kB / 0.7898 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.416e-05/0.1791, allocations: 15.98 kB / 0.7899 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.21e-05/0.1791, allocations: 35.97 kB / 0.7899 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.814e-05/0.1792, allocations: 39.83 kB / 0.7899 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.1792, allocations: 4 kB / 0.7899 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.1793, allocations: 31.91 kB / 0.79 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.1793, allocations: 4 kB / 0.79 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.902e-05/0.1794, allocations: 61.55 kB / 0.79 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.1795, allocations: 107.9 kB / 0.7901 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1795, allocations: 0 / 0.7901 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1795, allocations: 4 kB / 0.7901 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.1795, allocations: 0 / 0.7901 GB, free: 9.285 MB / 0.6075 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.0004419/0.18, allocations: 393.1 kB / 0.7905 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.18, allocations: 12.02 kB / 0.7905 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.1801, allocations: 30.75 kB / 0.7906 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.1801, allocations: 12.84 kB / 0.7906 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.561e-05/0.1802, allocations: 164.3 kB / 0.7907 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.1802, allocations: 8.375 kB / 0.7907 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.1803, allocations: 12.38 kB / 0.7907 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.1804, allocations: 74.16 kB / 0.7908 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.1804, allocations: 3.938 kB / 0.7908 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.1805, allocations: 3.984 kB / 0.7908 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.1805, allocations: 0 / 0.7908 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.1807, allocations: 51.95 kB / 0.7909 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003892/0.181, allocations: 336.7 kB / 0.7912 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.1812, allocations: 58.48 kB / 0.7912 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.289e-05/0.1813, allocations: 28.94 kB / 0.7913 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.1813, allocations: 8 kB / 0.7913 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.1815, allocations: 99.41 kB / 0.7914 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.1815, allocations: 3.938 kB / 0.7914 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003936/0.1819, allocations: 149.5 kB / 0.7915 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.182, allocations: 63.39 kB / 0.7916 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.724e-05/0.1821, allocations: 109.8 kB / 0.7917 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.1821, allocations: 29.7 kB / 0.7917 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.1821, allocations: 88.05 kB / 0.7918 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.1822, allocations: 15.81 kB / 0.7918 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.1822, allocations: 21.7 kB / 0.7918 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.1823, allocations: 322.8 kB / 0.7921 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.1825, allocations: 55.95 kB / 0.7922 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.1826, allocations: 87.27 kB / 0.7923 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.1829, allocations: 145 kB / 0.7924 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1829, allocations: 0 / 0.7924 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003929/0.1833, allocations: 211.1 kB / 0.7926 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.1833, allocations: 41.69 kB / 0.7927 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1833, allocations: 4 kB / 0.7927 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.1834, allocations: 0 / 0.7927 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.549e-05/0.1834, allocations: 20.05 kB / 0.7927 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1835, allocations: 0 / 0.7927 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1837, allocations: 39.97 kB / 0.7927 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.1837, allocations: 7.984 kB / 0.7927 GB, free: 6.344 MB / 0.6075 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.667e-05/0.1838, allocations: 133.7 kB / 0.7929 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.1838, allocations: 7.906 kB / 0.7929 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.1841, allocations: 121.9 kB / 0.793 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.1841, allocations: 8 kB / 0.793 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1841, allocations: 0 / 0.793 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1841, allocations: 0 / 0.793 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003819/0.1845, allocations: 366.5 kB / 0.7933 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1845, allocations: 3.938 kB / 0.7933 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.967e-05/0.1846, allocations: 19.98 kB / 0.7934 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1846, allocations: 480 / 0.7934 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1846, allocations: 4 kB / 0.7934 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1846, allocations: 0 / 0.7934 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1846, allocations: 3.938 kB / 0.7934 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.1849, allocations: 211.5 kB / 0.7936 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.1849, allocations: 84.95 kB / 0.7936 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.185, allocations: 4 kB / 0.7937 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.185, allocations: 11.98 kB / 0.7937 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.165e-05/0.1851, allocations: 15.92 kB / 0.7937 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1851, allocations: 0 / 0.7937 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.089e-05/0.1851, allocations: 99.2 kB / 0.7938 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1851, allocations: 0 / 0.7938 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00023/0.1854, allocations: 20 kB / 0.7938 GB, free: 5.145 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005299/0.1859, allocations: 0.7543 MB / 0.7945 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003425/0.1863, allocations: 183.5 kB / 0.7947 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1863, allocations: 0 / 0.7947 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.1864, allocations: 43.91 kB / 0.7947 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.1866, allocations: 20.02 kB / 0.7948 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.1884, allocations: 1.67 MB / 0.7964 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.1886, allocations: 0.6848 MB / 0.7971 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.987e-05/0.1886, allocations: 11.92 kB / 0.7971 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.174e-05/0.1886, allocations: 15.44 kB / 0.7971 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of SimCode: time 3.41e-07/0.1887, allocations: 0 / 0.7971 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8214/1.01, allocations: 2.134 MB / 0.7992 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/1.01, allocations: 203.8 kB / 0.7994 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.87, allocations: 0 / 0.7994 GB, free: 15.35 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)