Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",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.023/2.023, allocations: 248.6 MB / 255.9 MB, free: 7.137 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.001716/0.001715, allocations: 187.4 kB / 315.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.833/1.833, allocations: 205.2 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.001328/0.001327, allocations: 97.06 kB / 0.67 GB, free: 5.555 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4653/0.4666, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.6918, allocations: 106.3 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6542/1.346, allocations: 133.7 MB / 1.014 GB, free: 6.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/1.346, allocations: 81 kB / 1.014 GB, free: 6.465 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.01501/1.361, allocations: 3.054 MB / 1.017 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/1.361, allocations: 8 kB / 1.017 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.134e-05/1.362, allocations: 7.906 kB / 1.017 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/1.362, allocations: 178.9 kB / 1.017 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/1.362, allocations: 4 kB / 1.017 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/1.362, allocations: 4 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001142/1.362, allocations: 27 kB / 1.017 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/1.362, allocations: 57.23 kB / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/1.362, allocations: 3.938 kB / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/1.362, allocations: 0 / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/1.362, allocations: 3.906 kB / 1.017 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/1.363, allocations: 271.5 kB / 1.018 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/1.363, allocations: 47.11 kB / 1.018 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.518e-05/1.363, allocations: 26.42 kB / 1.018 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/1.363, allocations: 4 kB / 1.018 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/1.363, allocations: 65.47 kB / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.744e-06/1.363, allocations: 0 / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.00032/1.363, allocations: 79.86 kB / 1.018 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/1.364, allocations: 58.97 kB / 1.018 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/1.364, allocations: 111.7 kB / 1.018 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/1.364, allocations: 29.7 kB / 1.018 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/1.364, allocations: 80.33 kB / 1.018 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/1.364, allocations: 19.69 kB / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.117e-06/1.364, allocations: 0 / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001954/1.364, allocations: 318.5 kB / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.857e-05/1.364, allocations: 22.56 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.515e-05/1.364, allocations: 44.62 kB / 1.019 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/1.364, allocations: 27.34 kB / 1.019 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.364, allocations: 0 / 1.019 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002646/1.365, allocations: 94.81 kB / 1.019 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/1.365, allocations: 4 kB / 1.019 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.365, allocations: 4 kB / 1.019 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/1.365, allocations: 0 / 1.019 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/1.365, allocations: 19.23 kB / 1.019 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/1.365, allocations: 4 kB / 1.019 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/1.365, allocations: 4 kB / 1.019 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/1.365, allocations: 4 kB / 1.019 GB, free: 2.18 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.000104/1.365, allocations: 112.8 kB / 1.019 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/1.365, allocations: 8.656 kB / 1.019 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/1.365, allocations: 15.56 kB / 1.019 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/1.365, allocations: 0 / 1.019 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.365, allocations: 3.984 kB / 1.019 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.365, allocations: 0 / 1.019 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/1.366, allocations: 317.7 kB / 1.019 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/1.366, allocations: 4 kB / 1.019 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/1.366, allocations: 7.984 kB / 1.019 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/1.366, allocations: 0 / 1.019 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/1.366, allocations: 4 kB / 1.019 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/1.366, allocations: 3.938 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.366, allocations: 0 / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002753/1.366, allocations: 181 kB / 1.019 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004233/1.367, allocations: 0.5447 MB / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/1.367, allocations: 81.11 kB / 1.02 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/1.367, allocations: 11.89 kB / 1.02 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/1.367, allocations: 4 kB / 1.02 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/1.367, allocations: 6.734 kB / 1.02 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/1.367, allocations: 4 kB / 1.02 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.043e-05/1.367, allocations: 92.45 kB / 1.02 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001263/1.368, allocations: 58.17 kB / 1.02 GB, free: 0.7031 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.0004576/1.369, allocations: 167.2 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002043/1.369, allocations: 56.48 kB / 1.02 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.369, allocations: 0 / 1.02 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.821e-05/1.369, allocations: 23.09 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/1.369, allocations: 7.75 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004164/1.37, allocations: 109.2 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/1.37, allocations: 0.7036 MB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of SimCode: time 6.52e-07/1.37, allocations: 0 / 1.021 GB, free: 15.64 MB / 0.6511 GB