Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.277/2.277, allocations: 248.6 MB / 255.9 MB, free: 7.145 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: 188.1 kB / 315.1 MB, free: 4.227 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.074/2.074, allocations: 205.1 MB / 0.5658 GB, free: 344 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.001444/0.001444, allocations: 86.77 kB / 0.67 GB, free: 5.555 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4925/0.494, allocations: 112.4 MB / 0.7797 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.726, allocations: 106.2 MB / 0.8835 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7369/1.463, allocations: 133.7 MB / 1.014 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/1.463, allocations: 80.08 kB / 1.014 GB, free: 6.141 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.01482/1.478, allocations: 3.051 MB / 1.017 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 9.323e-05/1.478, allocations: 11.98 kB / 1.017 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.616e-05/1.478, allocations: 7.906 kB / 1.017 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/1.479, allocations: 173.1 kB / 1.017 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/1.479, allocations: 6.688 kB / 1.017 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/1.479, allocations: 4 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001168/1.479, allocations: 18.31 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001485/1.479, allocations: 68.72 kB / 1.017 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/1.479, allocations: 0 / 1.017 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/1.479, allocations: 3.984 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/1.479, allocations: 3.906 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/1.48, allocations: 267.2 kB / 1.018 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/1.48, allocations: 51.97 kB / 1.018 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.411e-05/1.48, allocations: 19.92 kB / 1.018 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/1.48, allocations: 4 kB / 1.018 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001319/1.48, allocations: 73.31 kB / 1.018 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.903e-06/1.48, allocations: 0 / 1.018 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003018/1.48, allocations: 79.2 kB / 1.018 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/1.48, allocations: 59.47 kB / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/1.481, allocations: 112.1 kB / 1.018 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/1.481, allocations: 29.7 kB / 1.018 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/1.481, allocations: 83.95 kB / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/1.481, allocations: 19.73 kB / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/1.481, allocations: 0 / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001614/1.481, allocations: 314.3 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/1.481, allocations: 19.12 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.504e-05/1.481, allocations: 45.19 kB / 1.019 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/1.481, allocations: 27.39 kB / 1.019 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.481, allocations: 1.125 kB / 1.019 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002543/1.481, allocations: 87.41 kB / 1.019 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/1.481, allocations: 4 kB / 1.019 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/1.481, allocations: 7.938 kB / 1.019 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/1.482, allocations: 0 / 1.019 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/1.482, allocations: 16.05 kB / 1.019 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/1.482, allocations: 4 kB / 1.019 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/1.482, allocations: 7.984 kB / 1.019 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/1.482, allocations: 7.125 kB / 1.019 GB, free: 1.852 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 9.282e-05/1.482, allocations: 104.9 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/1.482, allocations: 7.906 kB / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/1.482, allocations: 15.94 kB / 1.019 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/1.482, allocations: 3.938 kB / 1.019 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/1.482, allocations: 0 / 1.019 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/1.482, allocations: 3.938 kB / 1.019 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/1.483, allocations: 323.1 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.483, allocations: 0 / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.964e-05/1.483, allocations: 8 kB / 1.019 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/1.483, allocations: 0 / 1.019 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/1.483, allocations: 4 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/1.483, allocations: 0 / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.483, allocations: 4 kB / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002637/1.483, allocations: 175.6 kB / 1.019 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004923/1.484, allocations: 0.5486 MB / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/1.484, allocations: 85.09 kB / 1.02 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.596e-05/1.484, allocations: 7.906 kB / 1.02 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/1.484, allocations: 4 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/1.484, allocations: 7.547 kB / 1.02 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/1.484, allocations: 4 kB / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.648e-05/1.484, allocations: 91.36 kB / 1.02 GB, free: 440 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001332/1.485, allocations: 51.44 kB / 1.02 GB, free: 392 kB / 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.0004668/1.486, allocations: 179.3 kB / 1.02 GB, free: 220 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002049/1.486, allocations: 50.23 kB / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/1.486, allocations: 0 / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.078e-05/1.486, allocations: 26.5 kB / 1.02 GB, free: 164 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/1.486, allocations: 13.05 kB / 1.02 GB, free: 156 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004149/1.487, allocations: 102.4 kB / 1.02 GB, free: 40 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/1.487, allocations: 0.7019 MB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of SimCode: time 6.32e-07/1.487, allocations: 0 / 1.021 GB, free: 15.31 MB / 0.6511 GB