Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.88/1.88, allocations: 390.4 MB / 397.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 186.5 kB / 490.8 MB, free: 11.16 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.186/1.186, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009324/0.0009324, allocations: 95.95 kB / 0.9264 GB, free: 4.508 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2462/0.2471, allocations: 149.1 MB / 1.072 GB, free: 15.45 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5404/0.7875, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.9318, allocations: 151.2 MB / 1.359 GB, free: 40.36 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.932, allocations: 84.5 kB / 1.359 GB, free: 40.28 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.007995/0.94, allocations: 3.104 MB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.612e-05/0.94, allocations: 8 kB / 1.362 GB, free: 37.15 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.9401, allocations: 13.39 kB / 1.362 GB, free: 37.14 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.267e-05/0.9402, allocations: 163.1 kB / 1.363 GB, free: 36.94 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.9402, allocations: 0 / 1.363 GB, free: 36.94 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.9402, allocations: 14.28 kB / 1.363 GB, free: 36.93 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.451e-05/0.9403, allocations: 24.91 kB / 1.363 GB, free: 36.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.88e-05/0.9404, allocations: 61.66 kB / 1.363 GB, free: 36.84 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.9404, allocations: 0.75 kB / 1.363 GB, free: 36.84 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.9404, allocations: 0 / 1.363 GB, free: 36.84 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.9404, allocations: 1.344 kB / 1.363 GB, free: 36.84 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/0.9407, allocations: 279.2 kB / 1.363 GB, free: 36.53 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 5.986e-05/0.9408, allocations: 43.3 kB / 1.363 GB, free: 36.48 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.9408, allocations: 20.98 kB / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.9408, allocations: 4.562 kB / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.181e-05/0.9409, allocations: 72.92 kB / 1.363 GB, free: 36.37 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.9409, allocations: 0 / 1.363 GB, free: 36.37 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0001758/0.9411, allocations: 82.36 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.634e-05/0.9411, allocations: 51.41 kB / 1.363 GB, free: 36.22 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.868e-05/0.9412, allocations: 112.4 kB / 1.363 GB, free: 36.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.9412, allocations: 26.52 kB / 1.363 GB, free: 36.08 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.107e-05/0.9412, allocations: 96.17 kB / 1.363 GB, free: 35.98 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.9413, allocations: 12.53 kB / 1.363 GB, free: 35.96 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-06/0.9413, allocations: 0 / 1.363 GB, free: 35.96 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.615e-05/0.9413, allocations: 319.8 kB / 1.364 GB, free: 35.64 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.459e-05/0.9413, allocations: 24.75 kB / 1.364 GB, free: 35.62 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.031e-05/0.9414, allocations: 40.03 kB / 1.364 GB, free: 35.57 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.508e-05/0.9415, allocations: 16 kB / 1.364 GB, free: 35.56 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.9415, allocations: 4.672 kB / 1.364 GB, free: 35.55 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001418/0.9416, allocations: 90.16 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/0.9416, allocations: 4.719 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.9416, allocations: 3.75 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.9416, allocations: 4.5 kB / 1.364 GB, free: 35.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.672e-05/0.9417, allocations: 16.45 kB / 1.364 GB, free: 35.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.9418, allocations: 1.062 kB / 1.364 GB, free: 35.44 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.9418, allocations: 12.91 kB / 1.364 GB, free: 35.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.9419, allocations: 3.984 kB / 1.364 GB, free: 35.42 MB / 0.8855 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 4.886e-05/0.9419, allocations: 113.9 kB / 1.364 GB, free: 35.31 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.9419, allocations: 7.906 kB / 1.364 GB, free: 35.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.198e-05/0.942, allocations: 9.312 kB / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.942, allocations: 4 kB / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.942, allocations: 0.5938 kB / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.942, allocations: 0 / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.9422, allocations: 323.7 kB / 1.364 GB, free: 34.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.9422, allocations: 1.5 kB / 1.364 GB, free: 34.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.448e-05/0.9423, allocations: 10.06 kB / 1.364 GB, free: 34.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.9423, allocations: 0 / 1.364 GB, free: 34.93 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.9423, allocations: 4.719 kB / 1.364 GB, free: 34.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.9423, allocations: 0 / 1.364 GB, free: 34.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.9423, allocations: 0.5625 kB / 1.364 GB, free: 34.92 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001368/0.9425, allocations: 181.1 kB / 1.365 GB, free: 34.73 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001793/0.9426, allocations: 0.5479 MB / 1.365 GB, free: 34.16 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.254e-05/0.9427, allocations: 86 kB / 1.365 GB, free: 34.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.9427, allocations: 0 / 1.365 GB, free: 34.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.503e-05/0.9428, allocations: 5.219 kB / 1.365 GB, free: 34.05 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.9428, allocations: 7.984 kB / 1.365 GB, free: 34.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.9429, allocations: 5.125 kB / 1.365 GB, free: 34.04 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.825e-05/0.9429, allocations: 95.2 kB / 1.365 GB, free: 33.95 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008443/0.9437, allocations: 55.88 kB / 1.365 GB, free: 33.89 MB / 0.8855 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.0003047/0.9441, allocations: 159.4 kB / 1.366 GB, free: 33.75 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001207/0.9442, allocations: 61.52 kB / 1.366 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.9442, allocations: 0 / 1.366 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.612e-05/0.9442, allocations: 24 kB / 1.366 GB, free: 33.67 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.9444, allocations: 18.11 kB / 1.366 GB, free: 33.66 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.9447, allocations: 95.81 kB / 1.366 GB, free: 33.54 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.9448, allocations: 0.7006 MB / 1.366 GB, free: 32.81 MB / 0.8855 GB Notification: Performance of SimCode: time 2.1e-07/0.9448, allocations: 0.5625 kB / 1.366 GB, free: 32.81 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1)