Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01394/0.01395, allocations: 87.11 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001822/0.001821, allocations: 171.8 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.438/2.438, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.468/2.468, allocations: 252.8 MB / 0.511 GB, free: 8.348 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006635/0.0006638, allocations: 15.47 kB / 0.6243 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2394, allocations: 106.2 MB / 0.7281 GB, free: 10.18 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.005917/0.2454, allocations: 2.507 MB / 0.7305 GB, free: 7.66 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0038/0.2493, allocations: 1.104 MB / 0.7316 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000549/0.2499, allocations: 11.94 kB / 0.7316 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.2501, allocations: 47.52 kB / 0.7317 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0006354/0.2508, allocations: 99.59 kB / 0.7317 GB, free: 6.391 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.2522, allocations: 235.6 kB / 0.732 GB, free: 6.16 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001521/0.2537, allocations: 416.4 kB / 0.7324 GB, free: 5.754 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.2548, allocations: 352.2 kB / 0.7327 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000368/0.2552, allocations: 175.2 kB / 0.7329 GB, free: 5.227 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.2556, allocations: 179 kB / 0.733 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 7.412e-05/0.2557, allocations: 20 kB / 0.7331 GB, free: 5.031 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.2558, allocations: 20 kB / 0.7331 GB, free: 5.012 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.256, allocations: 79.61 kB / 0.7332 GB, free: 4.934 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.2561, allocations: 109.5 kB / 0.7333 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0009011/0.257, allocations: 0.5419 MB / 0.7338 GB, free: 4.277 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2571, allocations: 4 kB / 0.7338 GB, free: 4.273 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2571, allocations: 0 / 0.7338 GB, free: 4.273 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.185e-05/0.2571, allocations: 0 / 0.7338 GB, free: 4.273 MB / 0.5573 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.00252/0.2596, allocations: 0.7962 MB / 0.7346 GB, free: 3.418 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.2597, allocations: 12.03 kB / 0.7346 GB, free: 3.406 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001831/0.2599, allocations: 86.52 kB / 0.7347 GB, free: 3.312 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.2601, allocations: 63.3 kB / 0.7347 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.2611, allocations: 423.6 kB / 0.7351 GB, free: 2.793 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.366e-05/0.2612, allocations: 41 kB / 0.7352 GB, free: 2.75 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.2613, allocations: 55.89 kB / 0.7352 GB, free: 2.695 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.2631, allocations: 0.5352 MB / 0.7357 GB, free: 2.125 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.2631, allocations: 0 / 0.7357 GB, free: 2.125 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.237e-05/0.2632, allocations: 16 kB / 0.7358 GB, free: 2.109 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.2632, allocations: 12 kB / 0.7358 GB, free: 2.098 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.2651, allocations: 431.6 kB / 0.7362 GB, free: 1.676 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.2689, allocations: 1.844 MB / 0.738 GB, free: 15.75 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.2707, allocations: 370.9 kB / 0.7383 GB, free: 15.38 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.2708, allocations: 7.938 kB / 0.7383 GB, free: 15.38 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009194/0.2718, allocations: 229.4 kB / 0.7386 GB, free: 15.14 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 3.787e-06/0.2718, allocations: 0 / 0.7386 GB, free: 15.14 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.002309/0.2741, allocations: 0.5018 MB / 0.7391 GB, free: 14.63 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.2742, allocations: 59.39 kB / 0.7391 GB, free: 14.56 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007403/0.275, allocations: 405.4 kB / 0.7395 GB, free: 14.16 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.254e-05/0.2751, allocations: 37.7 kB / 0.7395 GB, free: 14.12 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.2754, allocations: 252.2 kB / 0.7398 GB, free: 13.86 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.2755, allocations: 106.6 kB / 0.7399 GB, free: 13.76 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.2756, allocations: 12 kB / 0.7399 GB, free: 13.75 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001926/0.2758, allocations: 358.8 kB / 0.7402 GB, free: 13.39 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007587/0.2765, allocations: 161 kB / 0.7404 GB, free: 13.23 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008988/0.2775, allocations: 273.9 kB / 0.7406 GB, free: 12.92 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007892/0.2783, allocations: 199.2 kB / 0.7408 GB, free: 12.72 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.2783, allocations: 0 / 0.7408 GB, free: 12.72 MB / 0.573 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001959/0.2803, allocations: 0.5343 MB / 0.7414 GB, free: 12.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.2804, allocations: 33.7 kB / 0.7414 GB, free: 12.14 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2804, allocations: 0 / 0.7414 GB, free: 12.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.156e-05/0.2804, allocations: 8 kB / 0.7414 GB, free: 12.13 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.2811, allocations: 84.12 kB / 0.7415 GB, free: 12.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.2811, allocations: 7.938 kB / 0.7415 GB, free: 12.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006878/0.2818, allocations: 79.48 kB / 0.7416 GB, free: 11.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.2819, allocations: 20 kB / 0.7416 GB, free: 11.94 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,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 (58): * Single equations (assignments): 57 * 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.0004209/0.2823, allocations: 209.7 kB / 0.7418 GB, free: 11.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.2824, allocations: 39.53 kB / 0.7418 GB, free: 11.69 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.2841, allocations: 409.4 kB / 0.7422 GB, free: 11.29 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.2842, allocations: 4 kB / 0.7422 GB, free: 11.28 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2842, allocations: 0 / 0.7422 GB, free: 11.28 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.2842, allocations: 11.98 kB / 0.7422 GB, free: 11.27 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.287, allocations: 0.9711 MB / 0.7432 GB, free: 10.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.287, allocations: 0 / 0.7432 GB, free: 10.24 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.2875, allocations: 59.94 kB / 0.7432 GB, free: 10.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.597e-06/0.2876, allocations: 0 / 0.7432 GB, free: 10.18 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.2876, allocations: 11.98 kB / 0.7432 GB, free: 10.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.2876, allocations: 0 / 0.7432 GB, free: 10.17 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.2877, allocations: 4 kB / 0.7432 GB, free: 10.16 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.2901, allocations: 0.6767 MB / 0.7439 GB, free: 9.461 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/0.2904, allocations: 144.6 kB / 0.744 GB, free: 9.301 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.018e-05/0.2905, allocations: 8 kB / 0.744 GB, free: 9.293 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005803/0.2911, allocations: 48.02 kB / 0.7441 GB, free: 9.246 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.2913, allocations: 55.88 kB / 0.7441 GB, free: 9.191 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.2914, allocations: 4 kB / 0.7442 GB, free: 9.188 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004885/0.2919, allocations: 267.2 kB / 0.7444 GB, free: 8.922 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.136e-06/0.2919, allocations: 3.938 kB / 0.7444 GB, free: 8.918 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0006935/0.2926, allocations: 99.62 kB / 0.7445 GB, free: 8.82 MB / 0.573 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.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,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.002903/0.2955, allocations: 1.317 MB / 0.7458 GB, free: 7.473 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00179/0.2974, allocations: 455.8 kB / 0.7462 GB, free: 7.016 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2974, allocations: 4.125 kB / 0.7462 GB, free: 7.012 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007981/0.2982, allocations: 187.8 kB / 0.7464 GB, free: 6.828 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007314/0.299, allocations: 78.73 kB / 0.7465 GB, free: 6.754 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008619/0.3076, allocations: 4.458 MB / 0.7508 GB, free: 2.184 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.3082, allocations: 0.8435 MB / 0.7517 GB, free: 1.316 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0004607/0.3087, allocations: 51.45 kB / 0.7517 GB, free: 1.266 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004152/0.3091, allocations: 155.4 kB / 0.7519 GB, free: 1.113 MB / 0.573 GB Notification: Performance of SimCode: time 1.372e-06/0.3091, allocations: 0 / 0.7519 GB, free: 1.113 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04745/0.3566, allocations: 8.575 MB / 0.7602 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002946/0.357, allocations: 201.1 kB / 0.7604 GB, free: 8.445 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.872/3.229, allocations: 0 / 0.7604 GB, free: 8.445 MB / 0.5886 GB