Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.335/2.335, allocations: 248.6 MB / 255.9 MB, free: 7.188 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.001629/0.001629, allocations: 186.9 kB / 315.1 MB, free: 4.266 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.013/2.013, allocations: 205.1 MB / 0.5658 GB, free: 312 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.001321/0.00132, allocations: 94.45 kB / 0.67 GB, free: 5.512 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4672/0.4685, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.6747, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7237/1.399, allocations: 133.7 MB / 1.014 GB, free: 6.504 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000486/1.399, allocations: 86.56 kB / 1.014 GB, free: 6.457 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.01784/1.417, allocations: 3.053 MB / 1.017 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/1.417, allocations: 9.125 kB / 1.017 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/1.417, allocations: 7.906 kB / 1.017 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/1.417, allocations: 182.9 kB / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/1.417, allocations: 0 / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/1.417, allocations: 4 kB / 1.017 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001108/1.417, allocations: 25.75 kB / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/1.418, allocations: 53.3 kB / 1.017 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/1.418, allocations: 4 kB / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/1.418, allocations: 0 / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/1.418, allocations: 3.906 kB / 1.017 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005807/1.418, allocations: 274.1 kB / 1.018 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/1.418, allocations: 41.28 kB / 1.018 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.178e-05/1.418, allocations: 35.36 kB / 1.018 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/1.419, allocations: 3.984 kB / 1.018 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001327/1.419, allocations: 66.45 kB / 1.018 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.803e-06/1.419, allocations: 0 / 1.018 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003168/1.419, allocations: 83.64 kB / 1.018 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/1.419, allocations: 55.41 kB / 1.018 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/1.419, allocations: 112.1 kB / 1.018 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/1.419, allocations: 25.7 kB / 1.018 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.668e-05/1.419, allocations: 87.39 kB / 1.018 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/1.419, allocations: 15.62 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-06/1.419, allocations: 0 / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000116/1.419, allocations: 325.7 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.33e-05/1.42, allocations: 15.38 kB / 1.019 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.476e-05/1.42, allocations: 42.12 kB / 1.019 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.781e-05/1.42, allocations: 23.66 kB / 1.019 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/1.42, allocations: 0 / 1.019 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002612/1.42, allocations: 100.4 kB / 1.019 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/1.42, allocations: 4 kB / 1.019 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.42, allocations: 0 / 1.019 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/1.42, allocations: 0 / 1.019 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/1.42, allocations: 15.98 kB / 1.019 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/1.42, allocations: 0 / 1.019 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/1.42, allocations: 4 kB / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/1.42, allocations: 7 kB / 1.019 GB, free: 2.16 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.0001026/1.421, allocations: 120.8 kB / 1.019 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/1.421, allocations: 7.906 kB / 1.019 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/1.421, allocations: 8 kB / 1.019 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/1.421, allocations: 0 / 1.019 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/1.421, allocations: 0 / 1.019 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/1.421, allocations: 0 / 1.019 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/1.421, allocations: 319.3 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.421, allocations: 0 / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.829e-05/1.421, allocations: 11.98 kB / 1.019 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/1.421, allocations: 0 / 1.019 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/1.421, allocations: 4 kB / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/1.421, allocations: 0 / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/1.421, allocations: 7.938 kB / 1.019 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002553/1.422, allocations: 178.6 kB / 1.019 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003869/1.422, allocations: 0.5482 MB / 1.02 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/1.422, allocations: 81.11 kB / 1.02 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/1.422, allocations: 7.891 kB / 1.02 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/1.422, allocations: 4 kB / 1.02 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/1.422, allocations: 15.42 kB / 1.02 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/1.422, allocations: 0 / 1.02 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.966e-05/1.423, allocations: 92.2 kB / 1.02 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001449/1.424, allocations: 59.73 kB / 1.02 GB, free: 0.6758 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.0005617/1.425, allocations: 166.5 kB / 1.02 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003138/1.425, allocations: 60.17 kB / 1.02 GB, free: 488 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.425, allocations: 4.125 kB / 1.02 GB, free: 484 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.971e-05/1.425, allocations: 23 kB / 1.02 GB, free: 468 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/1.425, allocations: 1.891 kB / 1.02 GB, free: 468 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004462/1.426, allocations: 105.6 kB / 1.02 GB, free: 352 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/1.426, allocations: 0.7036 MB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of SimCode: time 9.82e-07/1.426, allocations: 0 / 1.021 GB, free: 15.61 MB / 0.6511 GB