Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.461/2.461, allocations: 253.1 MB / 260.4 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002415/0.002415, allocations: 186.8 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.314/2.314, allocations: 205.4 MB / 0.5704 GB, free: 14.97 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0019/0.0019, allocations: 96 kB / 0.6746 GB, free: 4.332 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.73e-05/1.789e-05, allocations: 8 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2495, allocations: 106.3 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7577/1.007, allocations: 131.7 MB / 1.017 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/1.008, allocations: 70.7 kB / 1.017 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.005339/1.013, allocations: 0.8256 MB / 1.018 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.458e-06/1.013, allocations: 0 / 1.018 GB, free: 5.801 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008915/1.014, allocations: 393 kB / 1.018 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/1.014, allocations: 8.031 kB / 1.018 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/1.014, allocations: 7.906 kB / 1.018 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/1.014, allocations: 173.6 kB / 1.018 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/1.014, allocations: 3.984 kB / 1.018 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/1.014, allocations: 4 kB / 1.018 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001542/1.015, allocations: 25.75 kB / 1.018 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/1.015, allocations: 55.44 kB / 1.018 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/1.015, allocations: 0 / 1.018 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/1.015, allocations: 7.844 kB / 1.018 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/1.015, allocations: 0 / 1.018 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/1.016, allocations: 269.7 kB / 1.018 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/1.016, allocations: 44.22 kB / 1.019 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.605e-05/1.016, allocations: 19.67 kB / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/1.016, allocations: 0 / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001373/1.016, allocations: 61.78 kB / 1.019 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.234e-06/1.016, allocations: 0 / 1.019 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002806/1.016, allocations: 64.09 kB / 1.019 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/1.016, allocations: 55.41 kB / 1.019 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/1.016, allocations: 112 kB / 1.019 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/1.016, allocations: 25.7 kB / 1.019 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/1.017, allocations: 87.39 kB / 1.019 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/1.017, allocations: 7.812 kB / 1.019 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.417e-06/1.017, allocations: 0 / 1.019 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001811/1.017, allocations: 326.5 kB / 1.019 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.936e-05/1.017, allocations: 14.81 kB / 1.019 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.72e-05/1.017, allocations: 24.41 kB / 1.019 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.659e-05/1.017, allocations: 19.73 kB / 1.019 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.017, allocations: 0 / 1.019 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001979/1.017, allocations: 67.8 kB / 1.019 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.017, allocations: 4 kB / 1.019 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/1.017, allocations: 0 / 1.019 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/1.017, allocations: 7.938 kB / 1.019 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/1.018, allocations: 28 kB / 1.019 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/1.018, allocations: 0 / 1.019 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/1.018, allocations: 35.91 kB / 1.019 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/1.018, allocations: 4 kB / 1.019 GB, free: 3.797 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001135/1.018, allocations: 112.1 kB / 1.02 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/1.018, allocations: 7.906 kB / 1.02 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.61e-05/1.018, allocations: 8.062 kB / 1.02 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/1.018, allocations: 0 / 1.02 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/1.018, allocations: 4 kB / 1.02 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/1.018, allocations: 0 / 1.02 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/1.019, allocations: 156.8 kB / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/1.019, allocations: 2.875 kB / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/1.019, allocations: 23.98 kB / 1.02 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/1.019, allocations: 0 / 1.02 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/1.019, allocations: 3.906 kB / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/1.019, allocations: 4.625 kB / 1.02 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.019, allocations: 0 / 1.02 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002404/1.019, allocations: 95.03 kB / 1.02 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.736e-05/1.019, allocations: 88.95 kB / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/1.019, allocations: 0 / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/1.02, allocations: 27.97 kB / 1.02 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/1.02, allocations: 10.98 kB / 1.02 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/1.02, allocations: 4 kB / 1.02 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of sort global known variables: time 9.509e-05/1.02, allocations: 98.08 kB / 1.02 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002806/1.02, allocations: 8 kB / 1.02 GB, free: 3.109 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: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001993/1.02, allocations: 103.2 kB / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001999/1.02, allocations: 36.81 kB / 1.02 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.02, allocations: 0 / 1.02 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/1.021, allocations: 22.25 kB / 1.02 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/1.021, allocations: 15.89 kB / 1.02 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004632/1.021, allocations: 106.7 kB / 1.02 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/1.022, allocations: 0.7036 MB / 1.021 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of SimCode: time 1.603e-06/1.022, allocations: 0 / 1.021 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of Templates: time 0.004738/1.027, allocations: 0.932 MB / 1.022 GB, free: 1.184 MB / 0.6355 GB