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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.221/2.221, allocations: 248.6 MB / 255.9 MB, free: 7.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001668/0.001668, allocations: 191.3 kB / 315.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.1 MB / 0.5658 GB, free: 356 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001303/0.001302, allocations: 83.34 kB / 0.67 GB, free: 5.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4786/0.4799, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.7392, allocations: 106.2 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6848/1.424, allocations: 139.5 MB / 1.02 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/1.424, allocations: 90.81 kB / 1.02 GB, free: 0.6602 MB / 0.6355 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.04026/1.465, allocations: 9.214 MB / 1.029 GB, free: 8.926 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/1.465, allocations: 8 kB / 1.029 GB, free: 8.918 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002714/1.465, allocations: 63.25 kB / 1.029 GB, free: 8.855 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/1.466, allocations: 417.8 kB / 1.029 GB, free: 8.488 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.783e-05/1.466, allocations: 19.44 kB / 1.029 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/1.466, allocations: 28 kB / 1.029 GB, free: 8.445 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001102/1.468, allocations: 305.6 kB / 1.03 GB, free: 8.273 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/1.469, allocations: 462.5 kB / 1.03 GB, free: 7.902 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/1.469, allocations: 0 / 1.03 GB, free: 7.902 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-05/1.469, allocations: 3.906 kB / 1.03 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/1.469, allocations: 16 kB / 1.03 GB, free: 7.883 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/1.473, allocations: 1.797 MB / 1.032 GB, free: 6.363 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009546/1.474, allocations: 262.8 kB / 1.032 GB, free: 6.188 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/1.474, allocations: 120.8 kB / 1.032 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/1.474, allocations: 15.97 kB / 1.032 GB, free: 6.098 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004468/1.475, allocations: 165.8 kB / 1.032 GB, free: 5.969 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.267e-06/1.475, allocations: 0 / 1.032 GB, free: 5.969 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0008577/1.476, allocations: 252.8 kB / 1.033 GB, free: 5.777 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/1.476, allocations: 114.2 kB / 1.033 GB, free: 5.645 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005688/1.476, allocations: 290.8 kB / 1.033 GB, free: 5.41 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.477, allocations: 33.64 kB / 1.033 GB, free: 5.375 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.477, allocations: 224.5 kB / 1.033 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/1.477, allocations: 94.66 kB / 1.033 GB, free: 5.094 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/1.477, allocations: 0 / 1.033 GB, free: 5.094 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000194/1.477, allocations: 348.1 kB / 1.034 GB, free: 4.762 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/1.478, allocations: 116.7 kB / 1.034 GB, free: 4.699 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005209/1.478, allocations: 228.3 kB / 1.034 GB, free: 4.484 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/1.479, allocations: 120.1 kB / 1.034 GB, free: 4.41 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.479, allocations: 4 kB / 1.034 GB, free: 4.406 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001122/1.48, allocations: 366.8 kB / 1.034 GB, free: 4.129 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/1.48, allocations: 8 kB / 1.034 GB, free: 4.121 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/1.48, allocations: 11.98 kB / 1.034 GB, free: 4.109 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/1.48, allocations: 7.906 kB / 1.034 GB, free: 4.102 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006948/1.481, allocations: 91.39 kB / 1.035 GB, free: 4.016 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/1.481, allocations: 4 kB / 1.035 GB, free: 4.012 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008122/1.481, allocations: 71.28 kB / 1.035 GB, free: 3.945 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.056e-05/1.481, allocations: 19.06 kB / 1.035 GB, free: 3.93 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.0002844/1.482, allocations: 136.2 kB / 1.035 GB, free: 3.793 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/1.482, allocations: 31.62 kB / 1.035 GB, free: 3.762 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/1.483, allocations: 288.8 kB / 1.035 GB, free: 3.555 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/1.483, allocations: 11.88 kB / 1.035 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.483, allocations: 0 / 1.035 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/1.483, allocations: 3.984 kB / 1.035 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/1.485, allocations: 0.8215 MB / 1.036 GB, free: 2.875 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/1.485, allocations: 0 / 1.036 GB, free: 2.875 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006122/1.486, allocations: 67.8 kB / 1.036 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.22e-05/1.486, allocations: 7.938 kB / 1.036 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.671e-05/1.486, allocations: 3.984 kB / 1.036 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/1.486, allocations: 4 kB / 1.036 GB, free: 2.797 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.486, allocations: 3.906 kB / 1.036 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001396/1.487, allocations: 0.532 MB / 1.037 GB, free: 2.379 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001898/1.489, allocations: 1.052 MB / 1.038 GB, free: 1.516 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/1.49, allocations: 153.8 kB / 1.038 GB, free: 1.367 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/1.49, allocations: 0 / 1.038 GB, free: 1.367 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/1.49, allocations: 55.94 kB / 1.038 GB, free: 1.312 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/1.491, allocations: 45.59 kB / 1.038 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.008e-05/1.491, allocations: 14.98 kB / 1.038 GB, free: 1.266 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003816/1.491, allocations: 213.9 kB / 1.038 GB, free: 1.105 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001558/1.493, allocations: 75.84 kB / 1.038 GB, free: 1.031 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.000315/1.493, allocations: 119 kB / 1.038 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001013/1.494, allocations: 326.6 kB / 1.039 GB, free: 0.6836 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/1.494, allocations: 0.75 kB / 1.039 GB, free: 0.6836 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005076/1.495, allocations: 143.2 kB / 1.039 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008295/1.495, allocations: 64.08 kB / 1.039 GB, free: 0.543 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/1.498, allocations: 0.5085 MB / 1.039 GB, free: 68 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/1.499, allocations: 0.8861 MB / 1.04 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of SimCode: time 3.527e-06/1.499, allocations: 0 / 1.04 GB, free: 15.16 MB / 0.6667 GB