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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.409/1.409, allocations: 252 MB / 267 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.0009733/0.0009731, allocations: 183.2 kB / 326.6 MB, free: 2.207 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.678/1.678, allocations: 205.4 MB / 0.5777 GB, free: 20.5 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.0009087/0.0009087, allocations: 90.3 kB / 0.6822 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.0003029, allocations: 9.781 kB / 0.7965 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 106.3 MB / 0.9003 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001443/0.2121, allocations: 1.156 MB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004691/0.2126, allocations: 256.2 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.082e-05/0.2126, allocations: 0 / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.2127, allocations: 11.92 kB / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.356e-05/0.2128, allocations: 7.922 kB / 0.9017 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.213, allocations: 23.92 kB / 0.9017 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.034e-05/0.2131, allocations: 47.84 kB / 0.9018 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.399e-05/0.2132, allocations: 15.98 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.976e-05/0.2132, allocations: 19.92 kB / 0.9018 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.2133, allocations: 23.91 kB / 0.9018 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.2133, allocations: 0 / 0.9018 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.2133, allocations: 4 kB / 0.9018 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.2133, allocations: 7.938 kB / 0.9018 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.662e-05/0.2134, allocations: 33.69 kB / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.232e-05/0.2135, allocations: 43.89 kB / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2135, allocations: 0 / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2135, allocations: 0 / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.2135, allocations: 4 kB / 0.9019 GB, free: 62.5 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.0004821/0.214, allocations: 371.5 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.214, allocations: 8.031 kB / 0.9023 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.2141, allocations: 42.55 kB / 0.9023 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.2141, allocations: 11.84 kB / 0.9023 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.568e-05/0.2142, allocations: 171 kB / 0.9025 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.2142, allocations: 4 kB / 0.9025 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.2142, allocations: 8 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.2144, allocations: 69.66 kB / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2144, allocations: 0 / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.2145, allocations: 0 / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2145, allocations: 4 kB / 0.9026 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2147, allocations: 55.95 kB / 0.9026 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003326/0.215, allocations: 292.8 kB / 0.9029 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.2152, allocations: 66.55 kB / 0.903 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.449e-05/0.2153, allocations: 32.97 kB / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2153, allocations: 0 / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.2155, allocations: 95.2 kB / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.2155, allocations: 0 / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.000393/0.2159, allocations: 137.6 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.216, allocations: 63.36 kB / 0.9033 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.771e-05/0.216, allocations: 109.8 kB / 0.9034 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.216, allocations: 33.7 kB / 0.9034 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.316e-05/0.2161, allocations: 84.12 kB / 0.9035 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.2161, allocations: 31.72 kB / 0.9035 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.2161, allocations: 0 / 0.9035 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.605e-05/0.2162, allocations: 318.8 kB / 0.9038 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.2163, allocations: 31.97 kB / 0.9039 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.2164, allocations: 58.48 kB / 0.9039 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.2165, allocations: 35.98 kB / 0.904 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2165, allocations: 0 / 0.904 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002438/0.2168, allocations: 113.6 kB / 0.9041 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.2168, allocations: 4 kB / 0.9041 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2168, allocations: 0 / 0.9041 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.2168, allocations: 4 kB / 0.9041 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.717e-05/0.2169, allocations: 15.98 kB / 0.9041 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.2169, allocations: 3.953 kB / 0.9041 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.961e-05/0.217, allocations: 24.08 kB / 0.9041 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.217, allocations: 8 kB / 0.9041 GB, free: 60 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.984e-05/0.2171, allocations: 121.7 kB / 0.9042 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.2171, allocations: 0 / 0.9042 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002877/0.2174, allocations: 122.7 kB / 0.9044 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.2174, allocations: 3.984 kB / 0.9044 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2175, allocations: 0 / 0.9044 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2175, allocations: 7.953 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004341/0.2179, allocations: 398.4 kB / 0.9048 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2179, allocations: 0 / 0.9048 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.081e-05/0.218, allocations: 8 kB / 0.9048 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.218, allocations: 0 / 0.9048 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.218, allocations: 7.984 kB / 0.9048 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.218, allocations: 3.953 kB / 0.9048 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.218, allocations: 0 / 0.9048 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.2183, allocations: 207.4 kB / 0.905 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.2183, allocations: 85.02 kB / 0.9051 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.2184, allocations: 4 kB / 0.9051 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.2185, allocations: 23.98 kB / 0.9051 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.2185, allocations: 11.94 kB / 0.9051 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-06/0.2185, allocations: 3.938 kB / 0.9051 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.05e-05/0.2186, allocations: 91.27 kB / 0.9052 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2186, allocations: 0 / 0.9052 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002027/0.2188, allocations: 8 kB / 0.9052 GB, free: 58.81 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 0.0004578/0.2193, allocations: 0.7475 MB / 0.9059 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002565/0.2195, allocations: 79.95 kB / 0.906 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2195, allocations: 0 / 0.906 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2197, allocations: 39.91 kB / 0.906 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.2199, allocations: 29.91 kB / 0.9061 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008886/0.2208, allocations: 0.5356 MB / 0.9066 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.221, allocations: 0.6887 MB / 0.9073 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.619e-05/0.221, allocations: 11.86 kB / 0.9073 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.2211, allocations: 15.44 kB / 0.9073 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of SimCode: time 5.91e-07/0.2211, allocations: 192 / 0.9073 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.2327, allocations: 1.595 MB / 0.9088 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.2329, allocations: 205 kB / 0.909 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.869, allocations: 0 / 0.909 GB, free: 54.89 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)