Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.IntegerSwitch,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",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.286/2.286, allocations: 248.6 MB / 255.9 MB, free: 7.191 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.001611/0.001611, allocations: 189.2 kB / 315.1 MB, free: 4.262 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.473/2.473, allocations: 205.1 MB / 0.5658 GB, free: 364 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.001824/0.001824, allocations: 86.84 kB / 0.67 GB, free: 5.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4894/0.4912, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.7345, allocations: 106.2 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.691/1.426, allocations: 131.9 MB / 1.012 GB, free: 8.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004063/1.426, allocations: 67.66 kB / 1.012 GB, free: 8.215 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.01212/1.438, allocations: 1.727 MB / 1.014 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/1.438, allocations: 8 kB / 1.014 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/1.438, allocations: 19.8 kB / 1.014 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/1.439, allocations: 186.9 kB / 1.014 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/1.439, allocations: 4 kB / 1.014 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/1.439, allocations: 8 kB / 1.014 GB, free: 6.371 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002934/1.439, allocations: 54.36 kB / 1.014 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/1.44, allocations: 80.48 kB / 1.014 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/1.44, allocations: 0 / 1.014 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/1.44, allocations: 3.906 kB / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/1.44, allocations: 7.938 kB / 1.014 GB, free: 6.254 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000992/1.441, allocations: 341.8 kB / 1.015 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/1.441, allocations: 71.11 kB / 1.015 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/1.441, allocations: 26.53 kB / 1.015 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/1.441, allocations: 8.203 kB / 1.015 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002694/1.441, allocations: 93.42 kB / 1.015 GB, free: 5.738 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 4.458e-06/1.442, allocations: 0 / 1.015 GB, free: 5.738 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0004748/1.442, allocations: 92.16 kB / 1.015 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/1.442, allocations: 55.41 kB / 1.015 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/1.442, allocations: 136.5 kB / 1.015 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/1.442, allocations: 29.7 kB / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/1.443, allocations: 91.3 kB / 1.015 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/1.443, allocations: 27.17 kB / 1.015 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.42e-05/1.443, allocations: 0 / 1.015 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001871/1.443, allocations: 329.3 kB / 1.016 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/1.443, allocations: 26.5 kB / 1.016 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/1.443, allocations: 48.94 kB / 1.016 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/1.443, allocations: 23.92 kB / 1.016 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/1.443, allocations: 0 / 1.016 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000427/1.444, allocations: 119.9 kB / 1.016 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/1.444, allocations: 4 kB / 1.016 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/1.444, allocations: 4.75 kB / 1.016 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/1.444, allocations: 3.938 kB / 1.016 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/1.444, allocations: 15.31 kB / 1.016 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/1.444, allocations: 4 kB / 1.016 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/1.445, allocations: 35.91 kB / 1.016 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/1.445, allocations: 7.984 kB / 1.016 GB, free: 4.738 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001615/1.445, allocations: 114.5 kB / 1.016 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.454e-05/1.445, allocations: 11.89 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.925e-05/1.445, allocations: 18.44 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/1.445, allocations: 11.89 kB / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.445, allocations: 0 / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/1.445, allocations: 0 / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003914/1.446, allocations: 187 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.446, allocations: 0 / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/1.446, allocations: 8 kB / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/1.446, allocations: 0 / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/1.446, allocations: 3.906 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/1.446, allocations: 4 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.446, allocations: 0 / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004228/1.446, allocations: 129.3 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005606/1.447, allocations: 0.503 MB / 1.017 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/1.447, allocations: 84.92 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.087e-05/1.447, allocations: 4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/1.448, allocations: 27.17 kB / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/1.448, allocations: 11.97 kB / 1.017 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/1.448, allocations: 8 kB / 1.017 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001444/1.448, allocations: 110.1 kB / 1.017 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001889/1.45, allocations: 23.91 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002504/1.45, allocations: 103.2 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004126/1.451, allocations: 75.98 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.451, allocations: 0 / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002164/1.451, allocations: 47.44 kB / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005841/1.451, allocations: 19.73 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008449/1.452, allocations: 163.4 kB / 1.018 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005148/1.453, allocations: 0.7269 MB / 1.018 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of SimCode: time 1.503e-06/1.453, allocations: 0 / 1.018 GB, free: 2.34 MB / 0.6355 GB