Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.063/4.063, allocations: 432.6 MB / 445.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.827e-05/4.844e-05, allocations: 3.438 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2204, allocations: 98.72 MB / 0.6347 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2441/0.4646, allocations: 132.1 MB / 0.7637 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003177/0.465, allocations: 91.94 kB / 0.7638 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03724/0.5023, allocations: 8.756 MB / 0.7723 GB, free: 4.766 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5023, allocations: 0 / 0.7723 GB, free: 4.766 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.206e-05/0.5024, allocations: 12 kB / 0.7723 GB, free: 4.754 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002092/0.5045, allocations: 0.7388 MB / 0.773 GB, free: 3.961 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.5045, allocations: 8.031 kB / 0.7731 GB, free: 3.953 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.5047, allocations: 82.53 kB / 0.7731 GB, free: 3.863 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.505, allocations: 59.3 kB / 0.7732 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000893/0.5059, allocations: 420.5 kB / 0.7736 GB, free: 3.352 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.629e-05/0.5059, allocations: 37 kB / 0.7736 GB, free: 3.316 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.5061, allocations: 55.89 kB / 0.7737 GB, free: 3.262 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.5074, allocations: 0.501 MB / 0.7742 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.5075, allocations: 0 / 0.7742 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.438e-05/0.5076, allocations: 20 kB / 0.7742 GB, free: 2.707 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.5076, allocations: 15.95 kB / 0.7742 GB, free: 2.691 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.5086, allocations: 339.8 kB / 0.7745 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003914/0.5126, allocations: 1.899 MB / 0.7764 GB, free: 388 kB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/0.5136, allocations: 295.2 kB / 0.7767 GB, free: 84 kB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.53/1.044, allocations: 128.2 kB / 0.7768 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.451e-05/1.044, allocations: 4 kB / 0.7768 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005894/1.044, allocations: 185.5 kB / 0.777 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.346e-06/1.044, allocations: 0 / 0.777 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0009576/1.045, allocations: 295.3 kB / 0.7772 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/1.045, allocations: 113.1 kB / 0.7774 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/1.046, allocations: 361.8 kB / 0.7777 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.332e-05/1.046, allocations: 45.19 kB / 0.7777 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/1.046, allocations: 241.3 kB / 0.778 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/1.046, allocations: 102 kB / 0.7781 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/1.047, allocations: 7.531 kB / 0.7781 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.047, allocations: 358 kB / 0.7784 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/1.047, allocations: 122.2 kB / 0.7785 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004694/1.048, allocations: 242 kB / 0.7788 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/1.048, allocations: 159.9 kB / 0.7789 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/1.048, allocations: 1.094 kB / 0.7789 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001205/1.049, allocations: 456.8 kB / 0.7794 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002889/1.049, allocations: 1.168 MB / 0.7805 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/1.05, allocations: 3.594 kB / 0.7805 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.937e-05/1.05, allocations: 6.031 kB / 0.7805 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000665/1.05, allocations: 85.05 kB / 0.7806 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/1.05, allocations: 7.266 kB / 0.7806 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007652/1.051, allocations: 81.67 kB / 0.7807 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/1.051, allocations: 20.58 kB / 0.7807 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/1.051, allocations: 4.781 kB / 0.7807 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001058/1.052, allocations: 401.5 kB / 0.7811 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.052, allocations: 3.469 kB / 0.7811 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/1.052, allocations: 5.469 kB / 0.7811 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/1.053, allocations: 73.42 kB / 0.7812 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/1.053, allocations: 14.14 kB / 0.7812 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007038/1.054, allocations: 70.09 kB / 0.7812 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/1.054, allocations: 21.75 kB / 0.7813 GB, free: 134.4 MB / 0.6511 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 () * 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.0002123/1.054, allocations: 147.8 kB / 0.7814 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/1.054, allocations: 40 kB / 0.7814 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009478/1.055, allocations: 331.9 kB / 0.7818 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/1.055, allocations: 5.203 kB / 0.7818 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.055, allocations: 3.953 kB / 0.7818 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/1.055, allocations: 3.188 kB / 0.7818 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00214/1.057, allocations: 0.9213 MB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.057, allocations: 1.094 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005852/1.058, allocations: 60.84 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/1.058, allocations: 9.422 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/1.058, allocations: 8.344 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/1.058, allocations: 1.5 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.058, allocations: 4.5 kB / 0.7827 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/1.059, allocations: 0.568 MB / 0.7833 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/1.06, allocations: 157 kB / 0.7835 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.555e-05/1.06, allocations: 12.47 kB / 0.7835 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/1.061, allocations: 52.22 kB / 0.7835 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/1.061, allocations: 48.92 kB / 0.7836 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/1.061, allocations: 12.59 kB / 0.7836 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004408/1.061, allocations: 266.6 kB / 0.7838 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/1.061, allocations: 3.625 kB / 0.7838 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009825/1.062, allocations: 158.7 kB / 0.784 GB, free: 133.5 MB / 0.6511 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) * 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.001557/1.064, allocations: 1.201 MB / 0.7852 GB, free: 132.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001567/1.065, allocations: 0.6324 MB / 0.7858 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.065, allocations: 1.188 kB / 0.7858 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004383/1.066, allocations: 153 kB / 0.7859 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/1.067, allocations: 74.22 kB / 0.786 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/1.069, allocations: 0.6236 MB / 0.7866 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/1.069, allocations: 0.8434 MB / 0.7874 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0006379/1.07, allocations: 85.97 kB / 0.7875 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/1.07, allocations: 153.7 kB / 0.7877 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.192e-06/1.07, allocations: 0 / 0.7877 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04268/1.113, allocations: 9.755 MB / 0.7972 GB, free: 130.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002663/1.113, allocations: 178 kB / 0.7973 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.966/4.08, allocations: 0 / 0.7973 GB, free: 130.6 MB / 0.6511 GB