Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.389/2.389, allocations: 248.6 MB / 255.9 MB, free: 7.148 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.001709/0.001709, allocations: 181.2 kB / 315.1 MB, free: 4.316 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.058/2.058, allocations: 205.1 MB / 0.5658 GB, free: 336 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.001282/0.001282, allocations: 91.27 kB / 0.67 GB, free: 5.531 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4586/0.46, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.7053, allocations: 106.2 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7051/1.41, allocations: 133.7 MB / 1.014 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/1.411, allocations: 80.27 kB / 1.014 GB, free: 6.547 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. 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.01453/1.425, allocations: 3.053 MB / 1.017 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/1.425, allocations: 12 kB / 1.017 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.802e-05/1.425, allocations: 7.219 kB / 1.017 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/1.426, allocations: 178.9 kB / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/1.426, allocations: 7.984 kB / 1.017 GB, free: 3.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/1.426, allocations: 4 kB / 1.017 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001158/1.426, allocations: 22.31 kB / 1.017 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/1.426, allocations: 59.67 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/1.426, allocations: 0 / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/1.426, allocations: 0 / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/1.426, allocations: 7.906 kB / 1.017 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/1.427, allocations: 273.4 kB / 1.018 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/1.427, allocations: 41.22 kB / 1.018 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.599e-05/1.427, allocations: 29.86 kB / 1.018 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/1.427, allocations: 0 / 1.018 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/1.427, allocations: 70.64 kB / 1.018 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/1.427, allocations: 0 / 1.018 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003048/1.427, allocations: 75.97 kB / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/1.428, allocations: 55.41 kB / 1.018 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/1.428, allocations: 113.1 kB / 1.018 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/1.428, allocations: 29.02 kB / 1.018 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/1.428, allocations: 84.31 kB / 1.018 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/1.428, allocations: 18.81 kB / 1.018 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-06/1.428, allocations: 0 / 1.018 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.428, allocations: 325.8 kB / 1.018 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.662e-05/1.428, allocations: 18.94 kB / 1.018 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.544e-05/1.428, allocations: 37.92 kB / 1.019 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/1.428, allocations: 23.14 kB / 1.019 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/1.428, allocations: 0 / 1.019 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002852/1.429, allocations: 102.5 kB / 1.019 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.429, allocations: 10.81 kB / 1.019 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.429, allocations: 0 / 1.019 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/1.429, allocations: 0 / 1.019 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/1.429, allocations: 14.36 kB / 1.019 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/1.429, allocations: 4 kB / 1.019 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/1.429, allocations: 4 kB / 1.019 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/1.429, allocations: 4 kB / 1.019 GB, free: 2.262 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001125/1.429, allocations: 116.9 kB / 1.019 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/1.429, allocations: 7.891 kB / 1.019 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/1.429, allocations: 11.12 kB / 1.019 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/1.429, allocations: 3.984 kB / 1.019 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.429, allocations: 0 / 1.019 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/1.429, allocations: 0 / 1.019 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005856/1.43, allocations: 321.4 kB / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/1.43, allocations: 4 kB / 1.019 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.435e-05/1.43, allocations: 7.984 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/1.43, allocations: 0 / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/1.43, allocations: 0 / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/1.43, allocations: 8.016 kB / 1.019 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/1.43, allocations: 7.922 kB / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00032/1.43, allocations: 173.2 kB / 1.019 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004974/1.431, allocations: 0.551 MB / 1.02 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/1.431, allocations: 81.98 kB / 1.02 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/1.431, allocations: 3.906 kB / 1.02 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/1.431, allocations: 7.984 kB / 1.02 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/1.431, allocations: 0 / 1.02 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/1.431, allocations: 7.984 kB / 1.02 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.817e-05/1.431, allocations: 98.94 kB / 1.02 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001275/1.433, allocations: 55.73 kB / 1.02 GB, free: 0.7773 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0004808/1.433, allocations: 167 kB / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000214/1.433, allocations: 53.67 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.433, allocations: 4.125 kB / 1.02 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/1.433, allocations: 26.5 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/1.434, allocations: 4 kB / 1.02 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/1.434, allocations: 105.2 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/1.434, allocations: 0.7036 MB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of SimCode: time 1.102e-06/1.434, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB