Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",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.263/2.263, allocations: 248.6 MB / 255.9 MB, free: 7.164 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.002707/0.002707, allocations: 188.1 kB / 315.1 MB, free: 4.273 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.174/2.174, allocations: 205.1 MB / 0.5658 GB, free: 380 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.001869/0.001869, allocations: 91.91 kB / 0.67 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5306/0.5325, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.7718, allocations: 106.3 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7741/1.546, allocations: 132 MB / 1.012 GB, free: 8.176 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003414/1.546, allocations: 70.83 kB / 1.013 GB, free: 8.137 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.01428/1.561, allocations: 2.11 MB / 1.015 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/1.561, allocations: 8 kB / 1.015 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/1.561, allocations: 23.8 kB / 1.015 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/1.561, allocations: 182.3 kB / 1.015 GB, free: 5.973 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/1.561, allocations: 7.984 kB / 1.015 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/1.562, allocations: 23.98 kB / 1.015 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004528/1.562, allocations: 76.8 kB / 1.015 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007529/1.563, allocations: 197.3 kB / 1.015 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/1.563, allocations: 7.922 kB / 1.015 GB, free: 5.734 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.986e-05/1.563, allocations: 11.97 kB / 1.015 GB, free: 5.723 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/1.563, allocations: 4 kB / 1.015 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/1.565, allocations: 0.4895 MB / 1.016 GB, free: 5.266 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/1.566, allocations: 241.7 kB / 1.016 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000478/1.567, allocations: 125.3 kB / 1.016 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/1.567, allocations: 4 kB / 1.016 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/1.568, allocations: 302.9 kB / 1.016 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 1.024e-05/1.568, allocations: 0 / 1.016 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001574/1.57, allocations: 327.8 kB / 1.017 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.632e-05/1.57, allocations: 59.41 kB / 1.017 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/1.57, allocations: 131 kB / 1.017 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001864/1.57, allocations: 48.08 kB / 1.017 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/1.57, allocations: 99.16 kB / 1.017 GB, free: 4.211 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/1.571, allocations: 102.5 kB / 1.017 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/1.571, allocations: 0 / 1.017 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001845/1.571, allocations: 333.7 kB / 1.017 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005522/1.571, allocations: 129.9 kB / 1.017 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006618/1.572, allocations: 212.9 kB / 1.018 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/1.572, allocations: 80.95 kB / 1.018 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/1.572, allocations: 0 / 1.018 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001357/1.574, allocations: 335 kB / 1.018 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/1.574, allocations: 11.92 kB / 1.018 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/1.574, allocations: 4 kB / 1.018 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.172e-05/1.574, allocations: 4 kB / 1.018 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/1.574, allocations: 27.92 kB / 1.018 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-05/1.574, allocations: 8 kB / 1.018 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/1.575, allocations: 26.95 kB / 1.018 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/1.575, allocations: 15.5 kB / 1.018 GB, free: 3.16 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.clr,$PRE.truCle.clr,$PRE.iniFalOut.clr,$PRE.iniTruOut.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.clr,$PRE.falCle.y,falCle.y,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.000323/1.575, allocations: 147.8 kB / 1.018 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/1.575, allocations: 19.81 kB / 1.018 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001848/1.575, allocations: 37.38 kB / 1.018 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/1.576, allocations: 4 kB / 1.018 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/1.576, allocations: 0 / 1.018 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/1.576, allocations: 7.891 kB / 1.018 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/1.579, allocations: 0.8213 MB / 1.019 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.579, allocations: 4 kB / 1.019 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/1.579, allocations: 15.84 kB / 1.019 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.048e-05/1.579, allocations: 4 kB / 1.019 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.59e-05/1.579, allocations: 18.91 kB / 1.019 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.474e-05/1.579, allocations: 11.92 kB / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.579, allocations: 0 / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001315/1.58, allocations: 480.8 kB / 1.02 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001586/1.582, allocations: 0.8598 MB / 1.02 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/1.582, allocations: 92.83 kB / 1.021 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/1.582, allocations: 25.98 kB / 1.021 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/1.583, allocations: 23.97 kB / 1.021 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004561/1.583, allocations: 89.61 kB / 1.021 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.583, allocations: 42.28 kB / 1.021 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001345/1.584, allocations: 100.8 kB / 1.021 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002409/1.586, allocations: 63.98 kB / 1.021 GB, free: 488 kB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 46 (swiCleInp.clr,swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0004774/1.587, allocations: 136.8 kB / 1.021 GB, free: 352 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001364/1.588, allocations: 341.1 kB / 1.021 GB, free: 120 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.588, allocations: 4 kB / 1.021 GB, free: 116 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007594/1.589, allocations: 210 kB / 1.022 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/1.59, allocations: 26.94 kB / 1.022 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/1.592, allocations: 386.8 kB / 1.022 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009128/1.593, allocations: 0.7872 MB / 1.023 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of SimCode: time 3.727e-06/1.593, allocations: 4 kB / 1.023 GB, free: 14.78 MB / 0.6511 GB