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.443/1.443, allocations: 251.9 MB / 266.9 MB, free: 11 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.001315/0.001315, allocations: 180.1 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.4 MB / 0.5775 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.001201/0.001201, allocations: 97.78 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 9.969 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2404, allocations: 106.4 MB / 0.9002 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001707/0.2422, allocations: 1.143 MB / 0.9013 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005252/0.2428, allocations: 250.3 kB / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.2428, allocations: 4 kB / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.2428, allocations: 0 / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.974e-05/0.2429, allocations: 15.91 kB / 0.9015 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.2431, allocations: 27.91 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.613e-05/0.2432, allocations: 39.89 kB / 0.9016 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2433, allocations: 7.984 kB / 0.9016 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.942e-05/0.2434, allocations: 15.98 kB / 0.9016 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.493e-05/0.2435, allocations: 23.86 kB / 0.9017 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.2435, allocations: 0 / 0.9017 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.368e-05/0.2435, allocations: 4 kB / 0.9017 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.89e-05/0.2435, allocations: 15.97 kB / 0.9017 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.2436, allocations: 33.7 kB / 0.9017 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.607e-05/0.2437, allocations: 27.92 kB / 0.9017 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.2437, allocations: 3.938 kB / 0.9017 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.555e-06/0.2437, allocations: 0 / 0.9017 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2437, allocations: 0 / 0.9017 GB, free: 62.17 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.0005772/0.2443, allocations: 383.5 kB / 0.9021 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.2443, allocations: 8.031 kB / 0.9021 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.176e-05/0.2444, allocations: 30.56 kB / 0.9021 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.2444, allocations: 7.906 kB / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2445, allocations: 171 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2446, allocations: 4 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.2446, allocations: 4 kB / 0.9023 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.2448, allocations: 77.64 kB / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2448, allocations: 0 / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.2448, allocations: 7.969 kB / 0.9024 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2448, allocations: 3.938 kB / 0.9024 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.245, allocations: 59.89 kB / 0.9025 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003847/0.2454, allocations: 288.8 kB / 0.9027 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.2456, allocations: 58.55 kB / 0.9028 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2456, allocations: 4 kB / 0.9028 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.2458, allocations: 91.33 kB / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.2458, allocations: 0 / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004126/0.2462, allocations: 149.6 kB / 0.903 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.2463, allocations: 63.36 kB / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.518e-05/0.2464, allocations: 105.8 kB / 0.9032 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.2464, allocations: 33.7 kB / 0.9032 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.062e-05/0.2464, allocations: 84.05 kB / 0.9033 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.2464, allocations: 27.73 kB / 0.9033 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.2464, allocations: 3.938 kB / 0.9033 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.2465, allocations: 314.8 kB / 0.9036 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.299e-05/0.2466, allocations: 31.97 kB / 0.9037 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.599e-05/0.2467, allocations: 58.55 kB / 0.9037 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.344e-05/0.2468, allocations: 31.98 kB / 0.9037 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2468, allocations: 0 / 0.9037 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002263/0.247, allocations: 113.6 kB / 0.9039 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.2471, allocations: 4 kB / 0.9039 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2471, allocations: 0 / 0.9039 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2471, allocations: 4 kB / 0.9039 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.355e-05/0.2472, allocations: 19.92 kB / 0.9039 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2472, allocations: 3.953 kB / 0.9039 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.601e-05/0.2473, allocations: 27.92 kB / 0.9039 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.555e-06/0.2473, allocations: 4 kB / 0.9039 GB, free: 59.7 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 5.792e-05/0.2474, allocations: 113.8 kB / 0.904 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.2474, allocations: 0 / 0.904 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.2476, allocations: 122 kB / 0.9041 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2477, allocations: 0 / 0.9041 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2477, allocations: 3.938 kB / 0.9041 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2477, allocations: 3.953 kB / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.2481, allocations: 390.4 kB / 0.9045 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2481, allocations: 0 / 0.9045 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-05/0.2482, allocations: 11.98 kB / 0.9045 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2482, allocations: 3.938 kB / 0.9045 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2482, allocations: 4 kB / 0.9045 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.2482, allocations: 3.953 kB / 0.9045 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2482, allocations: 7.938 kB / 0.9046 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.2484, allocations: 207.5 kB / 0.9048 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/0.2485, allocations: 85.11 kB / 0.9048 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.2485, allocations: 11.98 kB / 0.9048 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.2486, allocations: 20.16 kB / 0.9049 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.2487, allocations: 15.94 kB / 0.9049 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.2487, allocations: 3.938 kB / 0.9049 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.915e-05/0.2487, allocations: 88.14 kB / 0.905 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2487, allocations: 0 / 0.905 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002167/0.2489, allocations: 8 kB / 0.905 GB, free: 58.51 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.0004065/0.2494, allocations: 0.7513 MB / 0.9057 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.2496, allocations: 84.2 kB / 0.9058 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2496, allocations: 0 / 0.9058 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.2497, allocations: 48 kB / 0.9058 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.2499, allocations: 15.95 kB / 0.9058 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008969/0.2508, allocations: 0.8312 MB / 0.9067 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.251, allocations: 0.6887 MB / 0.9073 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.465e-05/0.251, allocations: 7.859 kB / 0.9073 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.2511, allocations: 19.42 kB / 0.9074 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.2511, allocations: 3.938 kB / 0.9074 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.2631, allocations: 1.568 MB / 0.9089 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.2633, allocations: 207.6 kB / 0.9091 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.454/1.718, allocations: 3.938 kB / 0.9091 GB, free: 54.3 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)