Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",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 9.1.1-maint.9.1.x/package.mo): time 2.046/2.046, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 181.2 kB / 487 MB, free: 5.367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 221.3 MB / 0.7819 GB, free: 1.438 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001015, allocations: 91.52 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5494/0.5505, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.7847, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6679/1.453, allocations: 150.4 MB / 1.352 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/1.453, allocations: 85.02 kB / 1.352 GB, free: 15.82 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.009781/1.463, allocations: 3.095 MB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/1.463, allocations: 8.375 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/1.463, allocations: 9.5 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.966e-05/1.463, allocations: 170.6 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/1.463, allocations: 3.375 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/1.463, allocations: 3.656 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.071e-05/1.463, allocations: 21.55 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.851e-05/1.463, allocations: 54.67 kB / 1.356 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/1.463, allocations: 4 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/1.463, allocations: 0.7188 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/1.463, allocations: 0.75 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/1.464, allocations: 282.8 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.448e-05/1.464, allocations: 44.33 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.871e-05/1.464, allocations: 31.22 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/1.464, allocations: 0.9375 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.147e-05/1.464, allocations: 62.56 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/1.464, allocations: 1.156 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002112/1.464, allocations: 81.31 kB / 1.356 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/1.464, allocations: 58.75 kB / 1.356 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.37e-05/1.464, allocations: 115.7 kB / 1.356 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/1.464, allocations: 26.45 kB / 1.356 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.63e-05/1.464, allocations: 94.31 kB / 1.356 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/1.464, allocations: 15.41 kB / 1.356 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/1.464, allocations: 0 / 1.356 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.37e-05/1.464, allocations: 318.6 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/1.464, allocations: 18.42 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.944e-05/1.464, allocations: 36.58 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.479e-05/1.465, allocations: 24.95 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.465, allocations: 1.844 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001979/1.465, allocations: 90.47 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/1.465, allocations: 5.031 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/1.465, allocations: 1.031 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/1.465, allocations: 1.312 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/1.465, allocations: 13.2 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/1.465, allocations: 5.094 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.024e-05/1.465, allocations: 10.39 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/1.465, allocations: 8.047 kB / 1.357 GB, free: 13.98 MB / 0.8073 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 5.196e-05/1.465, allocations: 106 kB / 1.357 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/1.465, allocations: 11.22 kB / 1.357 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/1.465, allocations: 10.3 kB / 1.357 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/1.465, allocations: 1.719 kB / 1.357 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.465, allocations: 9.062 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.465, allocations: 0.5625 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/1.465, allocations: 324.2 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.465, allocations: 0 / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.885e-05/1.466, allocations: 7.016 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/1.466, allocations: 0.9375 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/1.466, allocations: 1.672 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/1.466, allocations: 4.688 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.466, allocations: 4 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001809/1.466, allocations: 173.2 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002368/1.466, allocations: 0.5477 MB / 1.358 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/1.466, allocations: 84 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/1.466, allocations: 0.9688 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/1.466, allocations: 9.938 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/1.466, allocations: 9.75 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/1.466, allocations: 4.281 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.657e-05/1.466, allocations: 92.12 kB / 1.358 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009614/1.467, allocations: 58.59 kB / 1.358 GB, free: 12.74 MB / 0.8073 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.0003538/1.468, allocations: 163 kB / 1.358 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001529/1.468, allocations: 52.42 kB / 1.358 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/1.468, allocations: 1.031 kB / 1.358 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.694e-05/1.468, allocations: 27.5 kB / 1.358 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/1.468, allocations: 10.09 kB / 1.359 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/1.468, allocations: 105.6 kB / 1.359 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/1.469, allocations: 0.7049 MB / 1.359 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of SimCode: time 2.6e-07/1.469, allocations: 0 / 1.359 GB, free: 11.85 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1)