Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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 7.0.3-maint.7.0.x/package.mo): time 1.184/1.184, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 180.1 kB / 316 MB, free: 7.188 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.1 MB / 0.5667 GB, free: 23.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008622/0.0008625, allocations: 86.08 kB / 0.671 GB, free: 0.9375 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2066/0.2075, allocations: 112.5 MB / 0.7808 GB, free: 368 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4476/0.6551, allocations: 106.3 MB / 0.8846 GB, free: 76.26 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1503/0.8054, allocations: 133.2 MB / 1.015 GB, free: 6.891 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.8057, allocations: 79.95 kB / 1.015 GB, free: 6.812 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.009944/0.8156, allocations: 3.414 MB / 1.018 GB, free: 3.336 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.8157, allocations: 11.94 kB / 1.018 GB, free: 3.324 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.8157, allocations: 11.84 kB / 1.018 GB, free: 3.312 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.8159, allocations: 174.9 kB / 1.018 GB, free: 3.102 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.8159, allocations: 0 / 1.018 GB, free: 3.102 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.8159, allocations: 4 kB / 1.018 GB, free: 3.098 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001188/0.8161, allocations: 39.98 kB / 1.018 GB, free: 3.059 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.8162, allocations: 69.59 kB / 1.018 GB, free: 2.984 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.8162, allocations: 0 / 1.018 GB, free: 2.984 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.8162, allocations: 0 / 1.018 GB, free: 2.984 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.8163, allocations: 7.984 kB / 1.018 GB, free: 2.977 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.8167, allocations: 297.3 kB / 1.019 GB, free: 2.648 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.8169, allocations: 70.72 kB / 1.019 GB, free: 2.57 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.226e-05/0.817, allocations: 32.86 kB / 1.019 GB, free: 2.535 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.817, allocations: 4.141 kB / 1.019 GB, free: 2.531 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001217/0.8172, allocations: 95.28 kB / 1.019 GB, free: 2.426 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.8172, allocations: 0 / 1.019 GB, free: 2.426 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.0002785/0.8174, allocations: 109.5 kB / 1.019 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.8175, allocations: 51.41 kB / 1.019 GB, free: 2.25 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.8176, allocations: 116.1 kB / 1.019 GB, free: 2.129 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.8176, allocations: 29.7 kB / 1.019 GB, free: 2.094 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.8176, allocations: 88.05 kB / 1.019 GB, free: 2.004 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.8177, allocations: 31.64 kB / 1.019 GB, free: 1.973 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.8177, allocations: 3.938 kB / 1.019 GB, free: 1.969 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.8178, allocations: 322.8 kB / 1.02 GB, free: 1.645 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.848e-05/0.8179, allocations: 20 kB / 1.02 GB, free: 1.625 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.276e-05/0.8179, allocations: 61.14 kB / 1.02 GB, free: 1.547 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.105e-05/0.818, allocations: 31.98 kB / 1.02 GB, free: 1.516 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.818, allocations: 0 / 1.02 GB, free: 1.516 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001897/0.8182, allocations: 113.4 kB / 1.02 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.8182, allocations: 4 kB / 1.02 GB, free: 1.395 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.8182, allocations: 7.984 kB / 1.02 GB, free: 1.387 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.8183, allocations: 0 / 1.02 GB, free: 1.387 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.8184, allocations: 15.98 kB / 1.02 GB, free: 1.371 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.8184, allocations: 12.03 kB / 1.02 GB, free: 1.359 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.8185, allocations: 8 kB / 1.02 GB, free: 1.352 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.8185, allocations: 11.98 kB / 1.02 GB, free: 1.34 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.178e-05/0.8186, allocations: 113.8 kB / 1.02 GB, free: 1.223 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.8187, allocations: 11.91 kB / 1.02 GB, free: 1.211 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.8189, allocations: 123.8 kB / 1.02 GB, free: 1.09 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.8189, allocations: 7.938 kB / 1.02 GB, free: 1.082 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.819, allocations: 4 kB / 1.02 GB, free: 1.078 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.819, allocations: 0 / 1.02 GB, free: 1.078 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005272/0.8195, allocations: 398.9 kB / 1.021 GB, free: 0.6445 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.8195, allocations: 0 / 1.021 GB, free: 0.6445 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.223e-05/0.8196, allocations: 24 kB / 1.021 GB, free: 0.6211 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6211 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.8196, allocations: 3.984 kB / 1.021 GB, free: 0.6172 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6172 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.8196, allocations: 0 / 1.021 GB, free: 0.6172 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002288/0.8199, allocations: 222.3 kB / 1.021 GB, free: 396 kB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003326/0.8202, allocations: 0.5662 MB / 1.021 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.8203, allocations: 88.92 kB / 1.021 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.8203, allocations: 3.938 kB / 1.021 GB, free: 15.69 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.8204, allocations: 15.98 kB / 1.021 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.8205, allocations: 15.98 kB / 1.021 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.8205, allocations: 3.984 kB / 1.021 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.21e-05/0.8206, allocations: 98.52 kB / 1.022 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009603/0.8215, allocations: 55.98 kB / 1.022 GB, free: 15.51 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0003635/0.8219, allocations: 167.8 kB / 1.022 GB, free: 15.34 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.8221, allocations: 75.92 kB / 1.022 GB, free: 15.27 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8221, allocations: 0 / 1.022 GB, free: 15.27 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 7.919e-05/0.8222, allocations: 43.94 kB / 1.022 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.8224, allocations: 15.89 kB / 1.022 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003837/0.8228, allocations: 134.8 kB / 1.022 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.8231, allocations: 0.7231 MB / 1.023 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/0.8231, allocations: 0 / 1.023 GB, free: 14.3 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)