Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.151/2.151, allocations: 251 MB / 265.9 MB, free: 11.7 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.001591/0.00159, allocations: 179.3 kB / 325.5 MB, free: 2.898 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.364/2.364, allocations: 205.4 MB / 0.5764 GB, free: 20.8 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.001161/0.001161, allocations: 99.16 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006697/0.0006697, allocations: 12.28 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2473, allocations: 106.3 MB / 0.8988 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2418/0.4892, allocations: 139.3 MB / 1.035 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003483/0.4896, allocations: 95.94 kB / 1.035 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03707/0.5267, allocations: 8.832 MB / 1.044 GB, free: 12.97 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5268, allocations: 0 / 1.044 GB, free: 12.97 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.72e-05/0.5268, allocations: 8 kB / 1.044 GB, free: 12.96 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002294/0.5291, allocations: 0.7937 MB / 1.044 GB, free: 12.11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5292, allocations: 15.97 kB / 1.044 GB, free: 12.1 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.5294, allocations: 78.53 kB / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.5296, allocations: 67.33 kB / 1.045 GB, free: 11.95 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008757/0.5304, allocations: 419.6 kB / 1.045 GB, free: 11.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.5305, allocations: 40.98 kB / 1.045 GB, free: 11.45 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.5307, allocations: 48 kB / 1.045 GB, free: 11.41 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.5324, allocations: 0.5679 MB / 1.046 GB, free: 10.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.5324, allocations: 0 / 1.046 GB, free: 10.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.5325, allocations: 24 kB / 1.046 GB, free: 10.78 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5325, allocations: 8 kB / 1.046 GB, free: 10.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.5343, allocations: 459.6 kB / 1.046 GB, free: 10.32 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00371/0.5381, allocations: 1.895 MB / 1.048 GB, free: 8.348 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.54, allocations: 416.8 kB / 1.048 GB, free: 7.934 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.199e-05/0.5401, allocations: 4 kB / 1.048 GB, free: 7.93 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009077/0.541, allocations: 245.5 kB / 1.049 GB, free: 7.676 MB / 0.698 GB Notification: Performance of pre-optimization done (n=34): time 3.617e-06/0.541, allocations: 4 kB / 1.049 GB, free: 7.672 MB / 0.698 GB Notification: Performance of matching and sorting (n=34): time 0.002386/0.5434, allocations: 0.5491 MB / 1.049 GB, free: 7.117 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.5435, allocations: 118.7 kB / 1.049 GB, free: 6.977 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.5442, allocations: 360.7 kB / 1.05 GB, free: 6.621 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.863e-05/0.5443, allocations: 45.64 kB / 1.05 GB, free: 6.57 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.5446, allocations: 252.2 kB / 1.05 GB, free: 6.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.5447, allocations: 90.8 kB / 1.05 GB, free: 6.23 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.5448, allocations: 8 kB / 1.05 GB, free: 6.223 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001868/0.545, allocations: 358.8 kB / 1.05 GB, free: 5.863 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007773/0.5458, allocations: 173 kB / 1.05 GB, free: 5.695 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009309/0.5467, allocations: 310.7 kB / 1.051 GB, free: 5.34 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000797/0.5476, allocations: 211.3 kB / 1.051 GB, free: 5.129 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.5476, allocations: 0 / 1.051 GB, free: 5.129 MB / 0.698 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002024/0.5496, allocations: 0.5656 MB / 1.051 GB, free: 4.551 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.868e-05/0.5497, allocations: 35.42 kB / 1.051 GB, free: 4.512 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5497, allocations: 0 / 1.051 GB, free: 4.512 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.5497, allocations: 8 kB / 1.051 GB, free: 4.504 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.5504, allocations: 79.88 kB / 1.052 GB, free: 4.426 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-05/0.5504, allocations: 16.16 kB / 1.052 GB, free: 4.41 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007281/0.5511, allocations: 83.58 kB / 1.052 GB, free: 4.328 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/0.5512, allocations: 16 kB / 1.052 GB, free: 4.312 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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 0.0004376/0.5517, allocations: 205.8 kB / 1.052 GB, free: 4.102 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.5518, allocations: 43.44 kB / 1.052 GB, free: 4.059 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.5545, allocations: 441.3 kB / 1.052 GB, free: 3.621 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/0.5545, allocations: 8 kB / 1.052 GB, free: 3.613 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.5546, allocations: 0 / 1.052 GB, free: 3.613 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.5546, allocations: 3.984 kB / 1.052 GB, free: 3.609 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/0.5595, allocations: 1.026 MB / 1.053 GB, free: 2.523 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.5596, allocations: 4 kB / 1.053 GB, free: 2.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009742/0.5606, allocations: 63.89 kB / 1.053 GB, free: 2.457 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.627e-05/0.5607, allocations: 4 kB / 1.053 GB, free: 2.453 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.891e-05/0.5608, allocations: 11.92 kB / 1.053 GB, free: 2.441 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.37e-05/0.5608, allocations: 7.953 kB / 1.053 GB, free: 2.434 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5608, allocations: 4.031 kB / 1.053 GB, free: 2.43 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.5648, allocations: 0.72 MB / 1.054 GB, free: 1.684 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004548/0.5653, allocations: 156.5 kB / 1.054 GB, free: 1.512 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.5655, allocations: 19.88 kB / 1.054 GB, free: 1.492 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009688/0.5664, allocations: 52.02 kB / 1.054 GB, free: 1.441 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.5667, allocations: 51.92 kB / 1.054 GB, free: 1.391 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.036e-05/0.5668, allocations: 8 kB / 1.054 GB, free: 1.383 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0007406/0.5676, allocations: 271.2 kB / 1.055 GB, free: 1.117 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.493e-06/0.5676, allocations: 4 kB / 1.055 GB, free: 1.113 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001059/0.5687, allocations: 91.94 kB / 1.055 GB, free: 1.023 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.5991/1.168, allocations: 1.356 MB / 1.056 GB, free: 148.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001806/1.17, allocations: 487.5 kB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.17, allocations: 0 / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007865/1.17, allocations: 204.6 kB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/1.171, allocations: 73.06 kB / 1.057 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006957/1.178, allocations: 4.4 MB / 1.061 GB, free: 146 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/1.179, allocations: 0.8396 MB / 1.062 GB, free: 145.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004025/1.179, allocations: 50.64 kB / 1.062 GB, free: 145.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/1.179, allocations: 159.3 kB / 1.062 GB, free: 145.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.272e-06/1.179, allocations: 0 / 1.062 GB, free: 145.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/1.22, allocations: 8.946 MB / 1.071 GB, free: 144.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002712/1.22, allocations: 193.6 kB / 1.071 GB, free: 144.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.706/3.927, allocations: 2.531 kB / 1.071 GB, free: 144.6 MB / 0.698 GB