Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.968/1.968, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001124/0.001124, allocations: 177.2 kB / 487 MB, free: 5.379 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.234/1.234, allocations: 221.3 MB / 0.7819 GB, free: 1.434 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.000901/0.000901, allocations: 96.56 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4775/0.4784, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.6942, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5652/1.26, allocations: 150.4 MB / 1.352 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/1.26, allocations: 85.53 kB / 1.352 GB, free: 15.81 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.00959/1.269, allocations: 3.087 MB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/1.269, allocations: 14.05 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/1.269, allocations: 7.438 kB / 1.355 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.455e-05/1.27, allocations: 172.6 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/1.27, allocations: 4 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/1.27, allocations: 7.656 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.793e-05/1.27, allocations: 21.22 kB / 1.356 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.756e-05/1.27, allocations: 58.22 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/1.27, allocations: 0 / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/1.27, allocations: 1.281 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/1.27, allocations: 0.9062 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/1.27, allocations: 283.5 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.216e-05/1.27, allocations: 41.64 kB / 1.356 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.45e-05/1.27, allocations: 23.27 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/1.27, allocations: 5.125 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.462e-05/1.271, allocations: 70.42 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/1.271, allocations: 0 / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002126/1.271, allocations: 77.14 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/1.271, allocations: 61.53 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.044e-05/1.271, allocations: 104.6 kB / 1.356 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/1.271, allocations: 30.45 kB / 1.356 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.867e-05/1.271, allocations: 88.02 kB / 1.356 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/1.271, allocations: 23.38 kB / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-06/1.271, allocations: 0 / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.194e-05/1.271, allocations: 318.7 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/1.271, allocations: 17.11 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.129e-05/1.271, allocations: 36.03 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.357e-05/1.271, allocations: 22.31 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/1.271, allocations: 4 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001664/1.271, allocations: 87.38 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/1.271, allocations: 4.75 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/1.271, allocations: 2.047 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/1.271, allocations: 1 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/1.272, allocations: 16.84 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/1.272, allocations: 1.375 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.233e-05/1.272, allocations: 14.41 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/1.272, allocations: 3.953 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 6.101e-05/1.272, allocations: 111.8 kB / 1.357 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/1.272, allocations: 7.375 kB / 1.357 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/1.272, allocations: 14.09 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.272, allocations: 1.391 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.272, allocations: 0.9062 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.272, allocations: 4.5 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/1.272, allocations: 326.9 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/1.272, allocations: 1 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.849e-05/1.272, allocations: 9.406 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/1.272, allocations: 1.125 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/1.272, allocations: 2.5 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/1.272, allocations: 3.906 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.272, allocations: 0.875 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001552/1.272, allocations: 176.8 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001845/1.273, allocations: 0.5489 MB / 1.358 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.079e-05/1.273, allocations: 82.98 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/1.273, allocations: 2.344 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/1.273, allocations: 9.859 kB / 1.358 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/1.273, allocations: 12.19 kB / 1.358 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/1.273, allocations: 2.156 kB / 1.358 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.213e-05/1.273, allocations: 89.42 kB / 1.358 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008846/1.274, allocations: 62.92 kB / 1.358 GB, free: 12.73 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.0003272/1.274, allocations: 163.6 kB / 1.358 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001368/1.274, allocations: 52.84 kB / 1.358 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.274, allocations: 0 / 1.358 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.568e-05/1.274, allocations: 26.36 kB / 1.358 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/1.274, allocations: 6.781 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.0002849/1.275, allocations: 97.53 kB / 1.359 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/1.275, allocations: 0.7069 MB / 1.359 GB, free: 27.85 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/1.275, allocations: 4 kB / 1.359 GB, free: 27.84 MB / 0.823 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1)