Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.338/1.338, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 191.5 kB / 361.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.099/1.099, allocations: 205.1 MB / 0.6195 GB, free: 10.35 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007712/0.0007713, allocations: 89.16 kB / 0.7326 GB, free: 44.28 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.218/0.2188, allocations: 121.4 MB / 0.8511 GB, free: 2.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5317/0.7505, allocations: 115.3 MB / 0.9638 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.9017, allocations: 139.5 MB / 1.1 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.902, allocations: 81.48 kB / 1.1 GB, free: 456 kB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.009763/0.9118, allocations: 3.407 MB / 1.103 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.9118, allocations: 8.5 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.08e-05/0.9119, allocations: 11.89 kB / 1.103 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.912, allocations: 180.2 kB / 1.104 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.912, allocations: 0.5156 kB / 1.104 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.9121, allocations: 4 kB / 1.104 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001199/0.9122, allocations: 42.77 kB / 1.104 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.9123, allocations: 74.22 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.9123, allocations: 0 / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.9124, allocations: 2.016 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.9124, allocations: 0 / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.9128, allocations: 302.7 kB / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.913, allocations: 67.62 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6e-05/0.9131, allocations: 33.48 kB / 1.104 GB, free: 12.26 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.9131, allocations: 5.203 kB / 1.104 GB, free: 12.26 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001397/0.9133, allocations: 89.56 kB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.9133, allocations: 3.938 kB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002653/0.9135, allocations: 105.5 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.9136, allocations: 55.39 kB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.528e-05/0.9137, allocations: 117.3 kB / 1.104 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.9137, allocations: 29.7 kB / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.9137, allocations: 80.14 kB / 1.105 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.9138, allocations: 33.2 kB / 1.105 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.9138, allocations: 0 / 1.105 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.9139, allocations: 326.8 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.811e-05/0.914, allocations: 23.98 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.533e-05/0.9141, allocations: 60.75 kB / 1.105 GB, free: 11.28 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.095e-05/0.9141, allocations: 32.92 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9141, allocations: 0 / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001853/0.9143, allocations: 118.2 kB / 1.105 GB, free: 11.13 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.9143, allocations: 4 kB / 1.105 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.9144, allocations: 0 / 1.105 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.9144, allocations: 4 kB / 1.105 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.9145, allocations: 15.98 kB / 1.105 GB, free: 11.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.9145, allocations: 8.094 kB / 1.105 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.9146, allocations: 20.58 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.9146, allocations: 4 kB / 1.105 GB, free: 11.07 MB / 0.7136 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 7.713e-05/0.9147, allocations: 119 kB / 1.105 GB, free: 10.96 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.9148, allocations: 11.89 kB / 1.105 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.915, allocations: 130 kB / 1.105 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.9151, allocations: 0.7031 kB / 1.105 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.9151, allocations: 4 kB / 1.105 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.9151, allocations: 0 / 1.105 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004758/0.9156, allocations: 400.7 kB / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.9156, allocations: 0 / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.68e-05/0.9156, allocations: 8 kB / 1.106 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.9157, allocations: 7.984 kB / 1.106 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.9157, allocations: 0 / 1.106 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.9157, allocations: 3.938 kB / 1.106 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.9157, allocations: 0 / 1.106 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002268/0.9159, allocations: 212 kB / 1.106 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003217/0.9163, allocations: 0.5803 MB / 1.107 GB, free: 9.535 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.9163, allocations: 85.02 kB / 1.107 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.9163, allocations: 0 / 1.107 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.9165, allocations: 15.98 kB / 1.107 GB, free: 9.418 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.9165, allocations: 9.984 kB / 1.107 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.9166, allocations: 10.25 kB / 1.107 GB, free: 9.402 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.994e-05/0.9166, allocations: 95.27 kB / 1.107 GB, free: 9.309 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009731/0.9176, allocations: 67.77 kB / 1.107 GB, free: 9.242 MB / 0.7136 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.0003804/0.918, allocations: 173.9 kB / 1.107 GB, free: 9.082 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001758/0.9182, allocations: 71.92 kB / 1.107 GB, free: 9.012 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.9182, allocations: 0 / 1.107 GB, free: 9.012 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.921e-05/0.9183, allocations: 51.88 kB / 1.107 GB, free: 8.961 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.9185, allocations: 13.86 kB / 1.107 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003878/0.9189, allocations: 136.3 kB / 1.107 GB, free: 8.793 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.9192, allocations: 0.718 MB / 1.108 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of SimCode: time 2.9e-07/0.9192, allocations: 0 / 1.108 GB, free: 8.051 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_maint.8.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)