Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",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.896/1.896, allocations: 387.2 MB / 394.5 MB, free: 13.32 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.0009809/0.0009809, allocations: 180.5 kB / 487 MB, free: 0.7227 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.204/1.204, allocations: 221.3 MB / 0.7819 GB, free: 6.777 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.0009317/0.0009317, allocations: 95.27 kB / 0.9213 GB, free: 43.7 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.255/0.2559, allocations: 148.5 MB / 1.066 GB, free: 7.496 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.565/0.8209, allocations: 142.3 MB / 1.205 GB, free: 72.66 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.9864, allocations: 150.4 MB / 1.352 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.9867, allocations: 83.23 kB / 1.352 GB, free: 12.7 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.009058/0.9957, allocations: 3.102 MB / 1.355 GB, free: 9.574 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.9958, allocations: 8 kB / 1.355 GB, free: 9.566 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.9958, allocations: 8.469 kB / 1.355 GB, free: 9.559 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.9959, allocations: 180.5 kB / 1.355 GB, free: 9.344 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.9959, allocations: 0.7812 kB / 1.355 GB, free: 9.344 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.996, allocations: 4 kB / 1.355 GB, free: 9.34 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.489e-05/0.9961, allocations: 26.7 kB / 1.356 GB, free: 9.316 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.377e-05/0.9962, allocations: 53.67 kB / 1.356 GB, free: 9.258 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.9962, allocations: 4 kB / 1.356 GB, free: 9.254 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.9962, allocations: 0 / 1.356 GB, free: 9.254 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.9962, allocations: 3.938 kB / 1.356 GB, free: 9.25 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.9966, allocations: 280 kB / 1.356 GB, free: 8.941 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.969e-05/0.9967, allocations: 39.48 kB / 1.356 GB, free: 8.895 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.533e-05/0.9967, allocations: 25.52 kB / 1.356 GB, free: 8.867 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.9968, allocations: 5.078 kB / 1.356 GB, free: 8.863 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.11e-05/0.9969, allocations: 60.16 kB / 1.356 GB, free: 8.793 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.9969, allocations: 4 kB / 1.356 GB, free: 8.789 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0002002/0.9971, allocations: 85.58 kB / 1.356 GB, free: 8.699 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.9971, allocations: 55.41 kB / 1.356 GB, free: 8.633 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/0.9972, allocations: 112.9 kB / 1.356 GB, free: 8.516 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.9972, allocations: 25.7 kB / 1.356 GB, free: 8.484 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.723e-05/0.9973, allocations: 92.27 kB / 1.356 GB, free: 8.387 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.9973, allocations: 11.8 kB / 1.356 GB, free: 8.375 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/0.9973, allocations: 0 / 1.356 GB, free: 8.375 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.034e-05/0.9974, allocations: 318.8 kB / 1.357 GB, free: 8.055 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.956e-05/0.9974, allocations: 23.98 kB / 1.357 GB, free: 8.031 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.186e-05/0.9975, allocations: 39.23 kB / 1.357 GB, free: 7.984 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.08e-05/0.9976, allocations: 19.98 kB / 1.357 GB, free: 7.965 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.9976, allocations: 0 / 1.357 GB, free: 7.965 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001572/0.9977, allocations: 90.41 kB / 1.357 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.9977, allocations: 4 kB / 1.357 GB, free: 7.867 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.9978, allocations: 3.984 kB / 1.357 GB, free: 7.863 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.9978, allocations: 6.594 kB / 1.357 GB, free: 7.859 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.783e-05/0.9979, allocations: 12 kB / 1.357 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.9979, allocations: 3.938 kB / 1.357 GB, free: 7.844 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.183e-05/0.998, allocations: 11.89 kB / 1.357 GB, free: 7.832 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.998, allocations: 4 kB / 1.357 GB, free: 7.828 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 6.916e-05/0.9981, allocations: 109 kB / 1.357 GB, free: 7.715 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.9981, allocations: 15.84 kB / 1.357 GB, free: 7.699 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.9981, allocations: 5.125 kB / 1.357 GB, free: 7.695 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.9981, allocations: 3.984 kB / 1.357 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.9981, allocations: 0 / 1.357 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.9981, allocations: 4 kB / 1.357 GB, free: 7.688 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003081/0.9984, allocations: 320.9 kB / 1.357 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.9985, allocations: 0 / 1.357 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.972e-05/0.9985, allocations: 8.5 kB / 1.357 GB, free: 7.324 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.9985, allocations: 8 kB / 1.357 GB, free: 7.316 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.9985, allocations: 3.984 kB / 1.357 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.9985, allocations: 4.406 kB / 1.357 GB, free: 7.309 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9986, allocations: 0 / 1.357 GB, free: 7.309 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001777/0.9987, allocations: 171.4 kB / 1.357 GB, free: 7.125 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003342/0.9991, allocations: 0.5506 MB / 1.358 GB, free: 6.555 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-05/0.9991, allocations: 85.89 kB / 1.358 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.9992, allocations: 0 / 1.358 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.914e-05/0.9993, allocations: 4 kB / 1.358 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.9993, allocations: 7.984 kB / 1.358 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.9993, allocations: 0 / 1.358 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5.214e-05/0.9994, allocations: 96.03 kB / 1.358 GB, free: 6.348 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008941/1, allocations: 59.78 kB / 1.358 GB, free: 6.289 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.0003537/1.001, allocations: 168.4 kB / 1.358 GB, free: 6.137 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000137/1.001, allocations: 51.94 kB / 1.358 GB, free: 6.086 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/1.001, allocations: 0 / 1.358 GB, free: 6.086 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.364e-05/1.001, allocations: 27.98 kB / 1.358 GB, free: 6.059 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/1.001, allocations: 9.25 kB / 1.359 GB, free: 6.051 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002999/1.001, allocations: 111.3 kB / 1.359 GB, free: 5.922 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/1.002, allocations: 0.6997 MB / 1.359 GB, free: 5.195 MB / 0.8542 GB Notification: Performance of SimCode: time 3e-07/1.002, allocations: 0 / 1.359 GB, free: 5.195 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1)