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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.134/4.134, allocations: 433.2 MB / 440.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.71e-05, allocations: 3.156 kB / 0.5325 GB, free: 12.77 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2328, allocations: 98.73 MB / 0.6289 GB, free: 9.102 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.251/0.4839, allocations: 131.4 MB / 0.7572 GB, free: 5.52 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.4843, allocations: 83.95 kB / 0.7573 GB, free: 5.438 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03697/0.5213, allocations: 8.659 MB / 0.7658 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5213, allocations: 0 / 0.7658 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.246e-05/0.5214, allocations: 12 kB / 0.7658 GB, free: 12.73 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.002164/0.5236, allocations: 0.743 MB / 0.7665 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.5236, allocations: 8.031 kB / 0.7665 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.5239, allocations: 63.3 kB / 0.7666 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009352/0.5248, allocations: 416.8 kB / 0.767 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.5249, allocations: 16 kB / 0.767 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.525, allocations: 35.91 kB / 0.767 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009986/0.526, allocations: 314.6 kB / 0.7673 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.5272, allocations: 455.1 kB / 0.7677 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.5272, allocations: 0 / 0.7677 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.5273, allocations: 3.953 kB / 0.7677 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.5273, allocations: 12 kB / 0.7678 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.5312, allocations: 1.79 MB / 0.7695 GB, free: 8.707 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009205/0.5321, allocations: 280 kB / 0.7698 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.5325, allocations: 120.8 kB / 0.7699 GB, free: 8.305 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.5325, allocations: 8 kB / 0.7699 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004775/0.533, allocations: 181.2 kB / 0.7701 GB, free: 8.105 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 5.23e-06/0.533, allocations: 3.984 kB / 0.7701 GB, free: 8.102 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0008547/0.5339, allocations: 267.1 kB / 0.7703 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.092e-05/0.534, allocations: 114.8 kB / 0.7704 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005459/0.5346, allocations: 293.4 kB / 0.7707 GB, free: 7.41 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.333e-05/0.5347, allocations: 29.7 kB / 0.7707 GB, free: 7.375 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.535, allocations: 252 kB / 0.771 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.5351, allocations: 90.72 kB / 0.7711 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.5352, allocations: 3.938 kB / 0.7711 GB, free: 7.031 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002061/0.5354, allocations: 346.8 kB / 0.7714 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.5357, allocations: 117.7 kB / 0.7715 GB, free: 6.57 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.5362, allocations: 229.7 kB / 0.7717 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.5366, allocations: 121.6 kB / 0.7718 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.5366, allocations: 7.953 kB / 0.7719 GB, free: 6.176 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001093/0.5377, allocations: 385.9 kB / 0.7722 GB, free: 5.793 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006339/0.5384, allocations: 1.165 MB / 0.7734 GB, free: 4.535 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.5384, allocations: 4 kB / 0.7734 GB, free: 4.531 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.5384, allocations: 4 kB / 0.7734 GB, free: 4.527 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/0.5391, allocations: 87.81 kB / 0.7735 GB, free: 4.441 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.5392, allocations: 4 kB / 0.7735 GB, free: 4.438 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000722/0.5399, allocations: 63.7 kB / 0.7735 GB, free: 4.375 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.91e-05/0.54, allocations: 23.98 kB / 0.7735 GB, free: 4.352 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.54, allocations: 7.953 kB / 0.7735 GB, free: 4.344 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009307/0.541, allocations: 315.3 kB / 0.7738 GB, free: 4.035 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.541, allocations: 4 kB / 0.7739 GB, free: 4.031 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.541, allocations: 4 kB / 0.7739 GB, free: 4.027 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005613/0.5416, allocations: 84.19 kB / 0.7739 GB, free: 3.945 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.5416, allocations: 8 kB / 0.7739 GB, free: 3.938 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006946/0.5423, allocations: 55.8 kB / 0.774 GB, free: 3.883 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.5424, allocations: 16 kB / 0.774 GB, free: 3.867 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.0002259/0.5426, allocations: 138.7 kB / 0.7741 GB, free: 3.727 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007315/0.5434, allocations: 273.3 kB / 0.7744 GB, free: 3.453 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.171e-05/0.5435, allocations: 43.45 kB / 0.7744 GB, free: 3.41 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000882/0.5444, allocations: 301.7 kB / 0.7747 GB, free: 3.105 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.5444, allocations: 4 kB / 0.7747 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5444, allocations: 0 / 0.7747 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.5444, allocations: 0 / 0.7747 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.5464, allocations: 0.8349 MB / 0.7756 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.5464, allocations: 0 / 0.7756 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.547, allocations: 63.89 kB / 0.7756 GB, free: 2.156 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/0.547, allocations: 3.984 kB / 0.7756 GB, free: 2.152 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.547, allocations: 8.031 kB / 0.7756 GB, free: 2.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.547, allocations: 0 / 0.7756 GB, free: 2.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5471, allocations: 0 / 0.7756 GB, free: 2.145 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.5483, allocations: 0.5331 MB / 0.7761 GB, free: 1.586 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.5486, allocations: 144.7 kB / 0.7763 GB, free: 1.426 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.564e-05/0.5487, allocations: 4 kB / 0.7763 GB, free: 1.422 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.5493, allocations: 52.02 kB / 0.7763 GB, free: 1.371 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.5496, allocations: 51.78 kB / 0.7764 GB, free: 1.32 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.323e-05/0.5496, allocations: 12 kB / 0.7764 GB, free: 1.309 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003646/0.55, allocations: 208.6 kB / 0.7766 GB, free: 1.102 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/0.55, allocations: 0 / 0.7766 GB, free: 1.102 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001009/0.551, allocations: 151.5 kB / 0.7767 GB, free: 0.9531 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.5851/1.136, allocations: 1.162 MB / 0.7779 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00137/1.138, allocations: 0.5874 MB / 0.7784 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.138, allocations: 2.031 kB / 0.7785 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003951/1.138, allocations: 145.3 kB / 0.7786 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007547/1.139, allocations: 67.5 kB / 0.7787 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/1.141, allocations: 0.5882 MB / 0.7792 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/1.141, allocations: 0.8384 MB / 0.78 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0006505/1.142, allocations: 75.23 kB / 0.7801 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004019/1.142, allocations: 153.9 kB / 0.7803 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.293e-06/1.142, allocations: 1.312 kB / 0.7803 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/1.244, allocations: 8.521 MB / 0.7886 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002435/1.244, allocations: 157.5 kB / 0.7887 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/4.024, allocations: 0 / 0.7887 GB, free: 138.6 MB / 0.6511 GB