Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.392/2.392, allocations: 248.6 MB / 255.9 MB, free: 7.172 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.002264/0.002263, allocations: 188 kB / 315.1 MB, free: 4.277 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.189/2.189, allocations: 205.1 MB / 0.5658 GB, free: 384 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.001328/0.001327, allocations: 89.62 kB / 0.67 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5338/0.5351, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.7655, allocations: 106.2 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7693/1.535, allocations: 133.7 MB / 1.014 GB, free: 6.555 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/1.535, allocations: 78.95 kB / 1.014 GB, free: 6.512 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.02282/1.558, allocations: 3.059 MB / 1.017 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.205e-05/1.558, allocations: 8 kB / 1.017 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.566e-05/1.558, allocations: 7.906 kB / 1.017 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/1.559, allocations: 175.4 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/1.559, allocations: 0 / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/1.559, allocations: 4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000176/1.559, allocations: 26.92 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/1.559, allocations: 56.17 kB / 1.017 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/1.559, allocations: 4 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/1.559, allocations: 2.875 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/1.559, allocations: 3.906 kB / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008999/1.56, allocations: 273 kB / 1.018 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/1.56, allocations: 45.09 kB / 1.018 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/1.56, allocations: 30.67 kB / 1.018 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/1.56, allocations: 0 / 1.018 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/1.561, allocations: 74.14 kB / 1.018 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.945e-06/1.561, allocations: 0 / 1.018 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0005671/1.561, allocations: 75.52 kB / 1.018 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/1.561, allocations: 55.22 kB / 1.018 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/1.562, allocations: 113.5 kB / 1.018 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.379e-05/1.562, allocations: 29.2 kB / 1.018 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/1.562, allocations: 84.41 kB / 1.018 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/1.562, allocations: 23.34 kB / 1.018 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/1.562, allocations: 0 / 1.018 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002216/1.562, allocations: 318.5 kB / 1.018 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/1.563, allocations: 19.23 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/1.563, allocations: 41.64 kB / 1.019 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/1.563, allocations: 30.39 kB / 1.019 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.563, allocations: 4 kB / 1.019 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003617/1.564, allocations: 87.72 kB / 1.019 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.564, allocations: 4 kB / 1.019 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/1.564, allocations: 3.984 kB / 1.019 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/1.564, allocations: 4 kB / 1.019 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/1.564, allocations: 8.875 kB / 1.019 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/1.564, allocations: 4 kB / 1.019 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/1.564, allocations: 7.984 kB / 1.019 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/1.564, allocations: 4 kB / 1.019 GB, free: 2.223 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.0001296/1.564, allocations: 116.3 kB / 1.019 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/1.564, allocations: 7.906 kB / 1.019 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/1.564, allocations: 4.375 kB / 1.019 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/1.564, allocations: 4 kB / 1.019 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.564, allocations: 11.98 kB / 1.019 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/1.564, allocations: 0 / 1.019 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005422/1.565, allocations: 318.2 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/1.565, allocations: 0 / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.084e-05/1.565, allocations: 4 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/1.565, allocations: 4 kB / 1.019 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/1.565, allocations: 3.984 kB / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/1.565, allocations: 0 / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.565, allocations: 7.938 kB / 1.019 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002812/1.565, allocations: 177 kB / 1.019 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004516/1.566, allocations: 0.5448 MB / 1.02 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.8e-05/1.566, allocations: 81.11 kB / 1.02 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/1.566, allocations: 7.906 kB / 1.02 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/1.566, allocations: 7.688 kB / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/1.566, allocations: 7.984 kB / 1.02 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/1.566, allocations: 0 / 1.02 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001032/1.566, allocations: 95.25 kB / 1.02 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002523/1.569, allocations: 59.56 kB / 1.02 GB, free: 0.7461 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.0008316/1.57, allocations: 174.3 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000368/1.57, allocations: 54.25 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.57, allocations: 0 / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001448/1.57, allocations: 23.75 kB / 1.02 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/1.571, allocations: 7.859 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008566/1.572, allocations: 100.3 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006868/1.573, allocations: 0.7036 MB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of SimCode: time 2.124e-06/1.573, allocations: 0 / 1.021 GB, free: 15.68 MB / 0.6511 GB