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.00118/0.00118, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001118/0.001119, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.752/1.752, allocations: 292.6 MB / 0.5497 GB, free: 14.6 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.0005109/0.0005112, allocations: 14.34 kB / 0.6737 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2156, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00078/0.2164, allocations: 461.5 kB / 0.7877 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2176, allocations: 1.146 MB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.225e-05/0.2176, allocations: 0 / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.138e-05/0.2176, allocations: 0 / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.2177, allocations: 7.922 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.2181, allocations: 126.2 kB / 0.7889 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.332e-05/0.2182, allocations: 51.88 kB / 0.789 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.696e-05/0.2182, allocations: 23.97 kB / 0.789 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.815e-05/0.2183, allocations: 39.91 kB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.969e-05/0.2184, allocations: 35.88 kB / 0.7891 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.2184, allocations: 8 kB / 0.7891 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.603e-05/0.2184, allocations: 8 kB / 0.7891 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.548e-05/0.2185, allocations: 11.98 kB / 0.7891 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.393e-05/0.2185, allocations: 41.64 kB / 0.7891 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.162e-05/0.2186, allocations: 76.09 kB / 0.7892 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.2186, allocations: 0 / 0.7892 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.462e-06/0.2186, allocations: 7.938 kB / 0.7892 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.387e-06/0.2186, allocations: 0 / 0.7892 GB, free: 9.84 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.0004192/0.2191, allocations: 392.9 kB / 0.7896 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2191, allocations: 12.03 kB / 0.7896 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.2191, allocations: 34.56 kB / 0.7896 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.2192, allocations: 7.906 kB / 0.7896 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.077e-05/0.2193, allocations: 167 kB / 0.7898 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.2193, allocations: 8 kB / 0.7898 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.2193, allocations: 7.984 kB / 0.7898 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.2195, allocations: 73.59 kB / 0.7899 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.2195, allocations: 0 / 0.7899 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.2195, allocations: 0 / 0.7899 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.2195, allocations: 0 / 0.7899 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.2197, allocations: 59.95 kB / 0.7899 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.2201, allocations: 328.6 kB / 0.7903 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.2202, allocations: 66.47 kB / 0.7903 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.2203, allocations: 0 / 0.7903 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.2205, allocations: 87.45 kB / 0.7904 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.2205, allocations: 4 kB / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003793/0.2209, allocations: 153.5 kB / 0.7906 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.2209, allocations: 59.34 kB / 0.7906 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.221, allocations: 117.8 kB / 0.7907 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.221, allocations: 29.7 kB / 0.7908 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.593e-05/0.221, allocations: 92.38 kB / 0.7908 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.2211, allocations: 19.72 kB / 0.7909 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.2211, allocations: 4 kB / 0.7909 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.2212, allocations: 318.8 kB / 0.7912 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.2213, allocations: 55.97 kB / 0.7912 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.2215, allocations: 75.77 kB / 0.7913 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.2216, allocations: 85.67 kB / 0.7914 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2216, allocations: 96 / 0.7914 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003623/0.222, allocations: 207.1 kB / 0.7916 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.222, allocations: 37.7 kB / 0.7916 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2221, allocations: 8.062 kB / 0.7916 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.2221, allocations: 0 / 0.7916 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.59e-05/0.2222, allocations: 15.98 kB / 0.7916 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.2222, allocations: 0 / 0.7916 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.2224, allocations: 55.81 kB / 0.7917 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.2224, allocations: 7.984 kB / 0.7917 GB, free: 7.035 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,$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 7.502e-05/0.2225, allocations: 129.7 kB / 0.7918 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.2225, allocations: 4 kB / 0.7918 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.2228, allocations: 118 kB / 0.7919 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2228, allocations: 4 kB / 0.7919 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.2228, allocations: 7.984 kB / 0.7919 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2228, allocations: 0 / 0.7919 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.2232, allocations: 378.3 kB / 0.7923 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2232, allocations: 0 / 0.7923 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.664e-05/0.2232, allocations: 8 kB / 0.7923 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.2232, allocations: 4 kB / 0.7923 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2233, allocations: 7.984 kB / 0.7923 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2233, allocations: 0 / 0.7923 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2233, allocations: 480 / 0.7923 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002622/0.2235, allocations: 227.3 kB / 0.7925 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.2236, allocations: 85.02 kB / 0.7926 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.2236, allocations: 0 / 0.7926 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.581e-05/0.2237, allocations: 15.98 kB / 0.7926 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.2237, allocations: 4 kB / 0.7926 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.2237, allocations: 7.984 kB / 0.7927 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.629e-05/0.2238, allocations: 91.23 kB / 0.7927 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2238, allocations: 0 / 0.7927 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002306/0.224, allocations: 16 kB / 0.7928 GB, free: 5.844 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 (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.0005108/0.2245, allocations: 0.7594 MB / 0.7935 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003198/0.2249, allocations: 175.3 kB / 0.7937 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2249, allocations: 0 / 0.7937 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.225, allocations: 47.91 kB / 0.7937 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000182/0.2252, allocations: 8.125 kB / 0.7937 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005929/0.2258, allocations: 0.8378 MB / 0.7945 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.226, allocations: 0.6911 MB / 0.7952 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.75e-05/0.226, allocations: 4.188 kB / 0.7952 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.284e-05/0.2261, allocations: 19.42 kB / 0.7952 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of SimCode: time 1.293e-06/0.2261, allocations: 0 / 0.7952 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4547/0.6808, allocations: 2.081 MB / 0.7973 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.6811, allocations: 192.8 kB / 0.7974 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.639, allocations: 1 kB / 0.7974 GB, free: 1.004 MB / 0.6075 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/linux/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) Environment - environmentSimulation: