Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.894/1.894, allocations: 387.3 MB / 394.5 MB, free: 13.29 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.001081/0.001081, allocations: 175.5 kB / 487 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.4 MB / 0.7819 GB, free: 6.805 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 110.9 kB / 0.9213 GB, free: 43.65 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2467/0.2477, allocations: 148.5 MB / 1.066 GB, free: 7.445 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5526/0.8003, allocations: 142.3 MB / 1.205 GB, free: 72.62 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.9631, allocations: 150.4 MB / 1.352 GB, free: 12.76 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.9634, allocations: 81.45 kB / 1.352 GB, free: 12.68 MB / 0.8542 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.009083/0.9725, allocations: 3.1 MB / 1.355 GB, free: 9.559 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.9725, allocations: 8.625 kB / 1.355 GB, free: 9.551 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.9726, allocations: 7.906 kB / 1.355 GB, free: 9.543 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.9727, allocations: 176.1 kB / 1.355 GB, free: 9.332 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.9727, allocations: 4 kB / 1.355 GB, free: 9.328 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.9727, allocations: 4 kB / 1.355 GB, free: 9.324 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.169e-05/0.9728, allocations: 22.09 kB / 1.356 GB, free: 9.305 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.451e-05/0.9729, allocations: 55.27 kB / 1.356 GB, free: 9.246 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.9729, allocations: 0 / 1.356 GB, free: 9.246 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.973, allocations: 0 / 1.356 GB, free: 9.246 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.973, allocations: 4 kB / 1.356 GB, free: 9.242 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004126/0.9734, allocations: 281 kB / 1.356 GB, free: 8.934 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.092e-05/0.9735, allocations: 39.5 kB / 1.356 GB, free: 8.887 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.384e-05/0.9735, allocations: 28.92 kB / 1.356 GB, free: 8.855 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.9735, allocations: 0.5938 kB / 1.356 GB, free: 8.855 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.796e-05/0.9736, allocations: 75.45 kB / 1.356 GB, free: 8.77 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.9737, allocations: 0 / 1.356 GB, free: 8.77 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0002372/0.9739, allocations: 77.53 kB / 1.356 GB, free: 8.688 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.9739, allocations: 55.39 kB / 1.356 GB, free: 8.621 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.356e-05/0.974, allocations: 111 kB / 1.356 GB, free: 8.508 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.9741, allocations: 29.7 kB / 1.356 GB, free: 8.473 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.82e-05/0.9741, allocations: 92.25 kB / 1.356 GB, free: 8.375 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.9742, allocations: 15.81 kB / 1.356 GB, free: 8.359 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.9742, allocations: 0 / 1.356 GB, free: 8.359 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.9743, allocations: 319.5 kB / 1.357 GB, free: 8.039 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.919e-05/0.9743, allocations: 20 kB / 1.357 GB, free: 8.02 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.459e-05/0.9744, allocations: 34.58 kB / 1.357 GB, free: 7.977 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.625e-05/0.9745, allocations: 19.98 kB / 1.357 GB, free: 7.957 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.9745, allocations: 0 / 1.357 GB, free: 7.957 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001684/0.9747, allocations: 101.5 kB / 1.357 GB, free: 7.852 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.9747, allocations: 4 kB / 1.357 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.9747, allocations: 6.156 kB / 1.357 GB, free: 7.844 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.9747, allocations: 0 / 1.357 GB, free: 7.844 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.9748, allocations: 11.98 kB / 1.357 GB, free: 7.832 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.9749, allocations: 7.938 kB / 1.357 GB, free: 7.824 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.334e-05/0.9749, allocations: 8.656 kB / 1.357 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.975, allocations: 11.11 kB / 1.357 GB, free: 7.809 MB / 0.8542 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.717e-05/0.9751, allocations: 105 kB / 1.357 GB, free: 7.699 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.9751, allocations: 7.906 kB / 1.357 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.5e-05/0.9751, allocations: 12.38 kB / 1.357 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.9751, allocations: 0 / 1.357 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.9751, allocations: 3.938 kB / 1.357 GB, free: 7.676 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.9751, allocations: 0 / 1.357 GB, free: 7.676 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.9756, allocations: 323.8 kB / 1.357 GB, free: 7.316 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.9756, allocations: 3.984 kB / 1.357 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.88e-05/0.9757, allocations: 7.984 kB / 1.357 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9757, allocations: 0 / 1.357 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.9757, allocations: 0 / 1.357 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.9757, allocations: 8.531 kB / 1.357 GB, free: 7.297 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.9757, allocations: 0 / 1.357 GB, free: 7.297 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002088/0.9759, allocations: 179.4 kB / 1.357 GB, free: 7.105 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000352/0.9763, allocations: 0.5467 MB / 1.358 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.9763, allocations: 81.02 kB / 1.358 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.9764, allocations: 4.688 kB / 1.358 GB, free: 6.438 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.842e-05/0.9765, allocations: 11.64 kB / 1.358 GB, free: 6.43 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.9765, allocations: 0 / 1.358 GB, free: 6.43 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.9765, allocations: 11.98 kB / 1.358 GB, free: 6.418 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.171e-05/0.9766, allocations: 87.28 kB / 1.358 GB, free: 6.332 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000891/0.9775, allocations: 63.77 kB / 1.358 GB, free: 6.27 MB / 0.8542 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.000329/0.9778, allocations: 156.3 kB / 1.358 GB, free: 6.129 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001344/0.978, allocations: 59.92 kB / 1.358 GB, free: 6.07 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.978, allocations: 4 kB / 1.358 GB, free: 6.066 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.582e-05/0.978, allocations: 30.25 kB / 1.359 GB, free: 6.039 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.9782, allocations: 0 / 1.359 GB, free: 6.039 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.9785, allocations: 99.75 kB / 1.359 GB, free: 5.918 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.9788, allocations: 0.7074 MB / 1.359 GB, free: 5.184 MB / 0.8542 GB Notification: Performance of SimCode: time 2.9e-07/0.9788, allocations: 128 / 1.359 GB, free: 5.184 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1)