Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.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.LogicalSwitch,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",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.212/2.212, allocations: 248.6 MB / 255.9 MB, free: 7.137 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.001646/0.001646, allocations: 181.2 kB / 315.1 MB, free: 4.234 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.925/1.925, allocations: 205.1 MB / 0.5658 GB, free: 276 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.001308/0.001308, allocations: 79.39 kB / 0.67 GB, free: 5.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4735/0.4748, allocations: 112.4 MB / 0.7797 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.6972, allocations: 106.2 MB / 0.8835 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7278/1.425, allocations: 131.5 MB / 1.012 GB, free: 8.594 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/1.425, allocations: 66.47 kB / 1.012 GB, free: 8.559 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.007968/1.433, allocations: 1.26 MB / 1.013 GB, free: 7.379 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/1.434, allocations: 8 kB / 1.013 GB, free: 7.371 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/1.434, allocations: 11.22 kB / 1.013 GB, free: 7.363 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/1.434, allocations: 182 kB / 1.013 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/1.434, allocations: 0 / 1.013 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/1.434, allocations: 7.984 kB / 1.013 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001829/1.434, allocations: 22.25 kB / 1.013 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/1.434, allocations: 61.22 kB / 1.013 GB, free: 7.066 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/1.434, allocations: 4 kB / 1.013 GB, free: 7.062 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/1.434, allocations: 3.984 kB / 1.013 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/1.434, allocations: 0 / 1.013 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006244/1.435, allocations: 270.3 kB / 1.014 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/1.435, allocations: 43.77 kB / 1.014 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.73e-05/1.435, allocations: 19.58 kB / 1.014 GB, free: 6.719 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/1.435, allocations: 11.94 kB / 1.014 GB, free: 6.707 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/1.436, allocations: 69.27 kB / 1.014 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.266e-06/1.436, allocations: 2.625 kB / 1.014 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003573/1.436, allocations: 75.72 kB / 1.014 GB, free: 6.566 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/1.436, allocations: 55.41 kB / 1.014 GB, free: 6.5 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/1.436, allocations: 120.8 kB / 1.014 GB, free: 6.387 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/1.436, allocations: 26.45 kB / 1.014 GB, free: 6.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/1.436, allocations: 87.39 kB / 1.014 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/1.437, allocations: 22.45 kB / 1.014 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/1.437, allocations: 0 / 1.014 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001748/1.437, allocations: 318.3 kB / 1.015 GB, free: 5.934 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.037e-05/1.437, allocations: 19 kB / 1.015 GB, free: 5.922 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/1.437, allocations: 45.55 kB / 1.015 GB, free: 5.875 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/1.437, allocations: 30.27 kB / 1.015 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/1.437, allocations: 0 / 1.015 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003369/1.438, allocations: 87.66 kB / 1.015 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/1.438, allocations: 6.656 kB / 1.015 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/1.438, allocations: 0 / 1.015 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/1.438, allocations: 4 kB / 1.015 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/1.438, allocations: 7.938 kB / 1.015 GB, free: 5.754 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.438, allocations: 4 kB / 1.015 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003664/1.438, allocations: 31.97 kB / 1.015 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/1.438, allocations: 6.938 kB / 1.015 GB, free: 5.715 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001399/1.438, allocations: 112.9 kB / 1.015 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/1.438, allocations: 7.906 kB / 1.015 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-05/1.439, allocations: 15.81 kB / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/1.439, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.439, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/1.439, allocations: 3.984 kB / 1.015 GB, free: 5.574 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/1.439, allocations: 167.9 kB / 1.015 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/1.439, allocations: 0 / 1.015 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.634e-05/1.439, allocations: 3.938 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/1.439, allocations: 0 / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/1.439, allocations: 11.48 kB / 1.015 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/1.439, allocations: 4 kB / 1.015 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.439, allocations: 0 / 1.015 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003123/1.439, allocations: 99.28 kB / 1.015 GB, free: 5.266 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005354/1.44, allocations: 498 kB / 1.016 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.96e-05/1.44, allocations: 85.02 kB / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.123e-05/1.44, allocations: 4 kB / 1.016 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/1.44, allocations: 27.95 kB / 1.016 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/1.441, allocations: 15.22 kB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/1.441, allocations: 8 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001113/1.441, allocations: 94.69 kB / 1.016 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001936/1.443, allocations: 16 kB / 1.016 GB, free: 4.52 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0002438/1.443, allocations: 99.23 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003184/1.443, allocations: 53.88 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.443, allocations: 0 / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/1.444, allocations: 38.81 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/1.444, allocations: 21.62 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006144/1.445, allocations: 117.5 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/1.445, allocations: 0.7152 MB / 1.017 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of SimCode: time 3.556e-06/1.445, allocations: 0 / 1.017 GB, free: 3.461 MB / 0.6355 GB