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.LogicalSwitch.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.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") [: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.336/2.336, allocations: 253.1 MB / 260.4 MB, free: 0.5234 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.001601/0.0016, allocations: 190.2 kB / 319.6 MB, free: 7.625 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.131/2.131, allocations: 205.4 MB / 0.5704 GB, free: 25.53 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.00125/0.00125, allocations: 97.7 kB / 0.6746 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 1.55e-05/1.565e-05, allocations: 4 kB / 0.7843 GB, free: 2.613 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.614/0.6141, allocations: 106.2 MB / 0.8881 GB, free: 77.05 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2127/0.8268, allocations: 130.5 MB / 1.015 GB, free: 10.38 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.8272, allocations: 67.97 kB / 1.016 GB, free: 10.32 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.005618/0.8328, allocations: 0.8808 MB / 1.016 GB, free: 9.438 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.8329, allocations: 0 / 1.016 GB, free: 9.438 MB / 0.6667 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.0007488/0.8336, allocations: 394.3 kB / 1.017 GB, free: 9.008 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.8337, allocations: 8.031 kB / 1.017 GB, free: 9 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.8337, allocations: 11.84 kB / 1.017 GB, free: 8.988 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.834, allocations: 182.9 kB / 1.017 GB, free: 8.77 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.834, allocations: 0 / 1.017 GB, free: 8.77 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.834, allocations: 4 kB / 1.017 GB, free: 8.766 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002215/0.8342, allocations: 27.98 kB / 1.017 GB, free: 8.738 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.8344, allocations: 57.59 kB / 1.017 GB, free: 8.676 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.8344, allocations: 3.938 kB / 1.017 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.8345, allocations: 0 / 1.017 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.8345, allocations: 0 / 1.017 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.835, allocations: 273.3 kB / 1.017 GB, free: 8.367 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.8351, allocations: 42.56 kB / 1.017 GB, free: 8.316 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.36e-05/0.8352, allocations: 24.86 kB / 1.017 GB, free: 8.289 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.8352, allocations: 160 / 1.017 GB, free: 8.289 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.8354, allocations: 79.41 kB / 1.017 GB, free: 8.199 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=10): time 2.204e-06/0.8354, allocations: 0 / 1.017 GB, free: 8.199 MB / 0.6667 GB Notification: Performance of matching and sorting (n=10): time 0.0002769/0.8357, allocations: 81.53 kB / 1.018 GB, free: 8.113 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.8358, allocations: 51.41 kB / 1.018 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.8359, allocations: 116.9 kB / 1.018 GB, free: 7.93 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.8359, allocations: 29.7 kB / 1.018 GB, free: 7.895 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.836, allocations: 84.14 kB / 1.018 GB, free: 7.809 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.8361, allocations: 19.7 kB / 1.018 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.904e-06/0.8361, allocations: 4 kB / 1.018 GB, free: 7.785 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.8362, allocations: 318.8 kB / 1.018 GB, free: 7.465 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.505e-05/0.8363, allocations: 20 kB / 1.018 GB, free: 7.445 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-05/0.8364, allocations: 43.42 kB / 1.018 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.25e-05/0.8365, allocations: 23.97 kB / 1.018 GB, free: 7.367 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.8365, allocations: 0 / 1.018 GB, free: 7.367 MB / 0.6667 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002225/0.8367, allocations: 97.45 kB / 1.018 GB, free: 7.266 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.8367, allocations: 4 kB / 1.018 GB, free: 7.262 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.8368, allocations: 0 / 1.018 GB, free: 7.262 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.8368, allocations: 7.984 kB / 1.018 GB, free: 7.254 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.382e-05/0.8369, allocations: 4 kB / 1.018 GB, free: 7.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.8369, allocations: 4 kB / 1.018 GB, free: 7.246 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.8372, allocations: 31.97 kB / 1.018 GB, free: 7.215 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.8372, allocations: 11.94 kB / 1.018 GB, free: 7.203 MB / 0.6667 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.0001023/0.8373, allocations: 112.9 kB / 1.018 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.8374, allocations: 7.906 kB / 1.018 GB, free: 7.078 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.377e-05/0.8374, allocations: 8.375 kB / 1.018 GB, free: 7.07 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.8374, allocations: 4 kB / 1.018 GB, free: 7.066 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.8375, allocations: 4 kB / 1.018 GB, free: 7.062 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.8375, allocations: 0 / 1.018 GB, free: 7.062 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.8377, allocations: 166.1 kB / 1.019 GB, free: 6.863 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.8377, allocations: 0 / 1.019 GB, free: 6.863 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.915e-05/0.8378, allocations: 4 kB / 1.019 GB, free: 6.859 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.8378, allocations: 4 kB / 1.019 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.8378, allocations: 0 / 1.019 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8378, allocations: 0 / 1.019 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.8378, allocations: 0 / 1.019 GB, free: 6.855 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002209/0.8381, allocations: 109 kB / 1.019 GB, free: 6.73 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.496e-05/0.8381, allocations: 85.02 kB / 1.019 GB, free: 6.629 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.337e-05/0.8382, allocations: 3.906 kB / 1.019 GB, free: 6.625 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.8384, allocations: 28.16 kB / 1.019 GB, free: 6.598 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.8385, allocations: 15.97 kB / 1.019 GB, free: 6.582 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.8385, allocations: 7.938 kB / 1.019 GB, free: 6.574 MB / 0.6667 GB Notification: Performance of sort global known variables: time 8.614e-05/0.8386, allocations: 99.66 kB / 1.019 GB, free: 6.477 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002942/0.8389, allocations: 12 kB / 1.019 GB, free: 6.465 MB / 0.6667 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.0001647/0.8391, allocations: 105.3 kB / 1.019 GB, free: 6.355 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002149/0.8393, allocations: 59.94 kB / 1.019 GB, free: 6.297 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.8394, allocations: 3.938 kB / 1.019 GB, free: 6.293 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.8395, allocations: 31.94 kB / 1.019 GB, free: 6.262 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.8398, allocations: 16.31 kB / 1.019 GB, free: 6.246 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004308/0.8403, allocations: 111.4 kB / 1.019 GB, free: 6.113 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.8406, allocations: 0.7155 MB / 1.02 GB, free: 5.371 MB / 0.6667 GB Notification: Performance of SimCode: time 8.21e-07/0.8407, allocations: 0 / 1.02 GB, free: 5.371 MB / 0.6667 GB Notification: Performance of Templates: time 0.004953/0.8456, allocations: 1.163 MB / 1.021 GB, free: 4.223 MB / 0.6667 GB