Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.857/1.857, allocations: 390.4 MB / 397.7 MB, free: 10.7 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.001067/0.001067, allocations: 190.2 kB / 490.8 MB, free: 11.23 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.144/1.144, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0009321/0.0009321, allocations: 97.08 kB / 0.9264 GB, free: 4.586 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2481/0.2491, allocations: 149.1 MB / 1.072 GB, free: 15.52 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.55/0.7991, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.9467, allocations: 151.2 MB / 1.359 GB, free: 40.43 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.947, allocations: 83.94 kB / 1.359 GB, free: 40.35 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.008016/0.955, allocations: 3.101 MB / 1.362 GB, free: 37.23 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.955, allocations: 8 kB / 1.362 GB, free: 37.22 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.9551, allocations: 7.906 kB / 1.362 GB, free: 37.21 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.312e-05/0.9552, allocations: 164 kB / 1.363 GB, free: 37.02 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.9552, allocations: 9.812 kB / 1.363 GB, free: 37.01 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.9552, allocations: 11.72 kB / 1.363 GB, free: 37 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.909e-05/0.9553, allocations: 23.98 kB / 1.363 GB, free: 36.98 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.228e-05/0.9554, allocations: 63.36 kB / 1.363 GB, free: 36.91 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.9554, allocations: 0 / 1.363 GB, free: 36.91 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.9555, allocations: 0 / 1.363 GB, free: 36.91 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.9555, allocations: 0 / 1.363 GB, free: 36.91 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.9559, allocations: 279.7 kB / 1.363 GB, free: 36.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.464e-05/0.956, allocations: 44.05 kB / 1.363 GB, free: 36.55 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.935e-05/0.956, allocations: 20.98 kB / 1.363 GB, free: 36.53 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.956, allocations: 8.516 kB / 1.363 GB, free: 36.52 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.317e-05/0.9561, allocations: 60.75 kB / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.9561, allocations: 0 / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0001924/0.9563, allocations: 79.55 kB / 1.363 GB, free: 36.37 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.308e-05/0.9563, allocations: 55.41 kB / 1.363 GB, free: 36.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.124e-05/0.9564, allocations: 105 kB / 1.363 GB, free: 36.19 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.9564, allocations: 25.7 kB / 1.363 GB, free: 36.16 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.413e-05/0.9565, allocations: 96.77 kB / 1.363 GB, free: 36.06 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.9565, allocations: 20.3 kB / 1.363 GB, free: 36.04 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.9565, allocations: 0.9062 kB / 1.363 GB, free: 36.04 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.9565, allocations: 314.8 kB / 1.364 GB, free: 35.72 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.361e-05/0.9566, allocations: 24.92 kB / 1.364 GB, free: 35.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.063e-05/0.9566, allocations: 35.53 kB / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.539e-05/0.9567, allocations: 31.91 kB / 1.364 GB, free: 35.63 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9567, allocations: 0.5 kB / 1.364 GB, free: 35.63 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001387/0.9568, allocations: 86.34 kB / 1.364 GB, free: 35.54 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.9568, allocations: 7.984 kB / 1.364 GB, free: 35.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.9568, allocations: 0.625 kB / 1.364 GB, free: 35.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.9569, allocations: 4.719 kB / 1.364 GB, free: 35.53 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.229e-05/0.957, allocations: 8.594 kB / 1.364 GB, free: 35.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.957, allocations: 0 / 1.364 GB, free: 35.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.639e-05/0.957, allocations: 21.55 kB / 1.364 GB, free: 35.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.9571, allocations: 0.875 kB / 1.364 GB, free: 35.5 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.917e-05/0.9571, allocations: 117.9 kB / 1.364 GB, free: 35.38 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.9571, allocations: 7.906 kB / 1.364 GB, free: 35.38 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.9572, allocations: 5.344 kB / 1.364 GB, free: 35.37 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.9572, allocations: 7.984 kB / 1.364 GB, free: 35.36 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.9572, allocations: 3.406 kB / 1.364 GB, free: 35.36 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.9572, allocations: 0 / 1.364 GB, free: 35.36 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.9574, allocations: 320.6 kB / 1.364 GB, free: 35 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.9574, allocations: 4 kB / 1.364 GB, free: 35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-05/0.9575, allocations: 9.438 kB / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.9575, allocations: 1.156 kB / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.9575, allocations: 3.984 kB / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.9575, allocations: 0 / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.9575, allocations: 0.5938 kB / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001431/0.9577, allocations: 185.4 kB / 1.365 GB, free: 34.79 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000177/0.9579, allocations: 0.5395 MB / 1.365 GB, free: 34.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.9579, allocations: 83.33 kB / 1.365 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.9579, allocations: 0 / 1.365 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.374e-05/0.958, allocations: 5.25 kB / 1.365 GB, free: 34.13 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-05/0.9581, allocations: 12.61 kB / 1.365 GB, free: 34.12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.9581, allocations: 8 kB / 1.365 GB, free: 34.11 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.661e-05/0.9581, allocations: 94.52 kB / 1.365 GB, free: 34.02 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008056/0.9589, allocations: 56.64 kB / 1.365 GB, free: 33.97 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.0002714/0.9592, allocations: 155.9 kB / 1.366 GB, free: 33.83 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000114/0.9593, allocations: 56.45 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.9593, allocations: 0.9688 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.778e-05/0.9594, allocations: 31.92 kB / 1.366 GB, free: 33.74 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.9595, allocations: 11.34 kB / 1.366 GB, free: 33.73 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00026/0.9598, allocations: 96.56 kB / 1.366 GB, free: 33.62 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.96, allocations: 0.702 MB / 1.366 GB, free: 32.89 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.96, allocations: 3.938 kB / 1.366 GB, free: 32.89 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1)