Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.197/1.197, 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.001002/0.001002, allocations: 185.9 kB / 316 MB, free: 7.227 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.378/1.378, allocations: 205.1 MB / 0.5667 GB, free: 23.69 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.001004/0.001004, allocations: 76.67 kB / 0.671 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.206/0.207, allocations: 112.5 MB / 0.7808 GB, free: 400 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4183/0.6254, allocations: 106.3 MB / 0.8847 GB, free: 76.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.7738, allocations: 133.2 MB / 1.015 GB, free: 6.863 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.7741, allocations: 79.95 kB / 1.015 GB, free: 6.785 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.01043/0.7845, allocations: 3.49 MB / 1.018 GB, free: 3.23 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.7846, allocations: 8 kB / 1.018 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.7846, allocations: 7.906 kB / 1.018 GB, free: 3.215 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.7848, allocations: 182.9 kB / 1.018 GB, free: 2.996 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.7848, allocations: 4 kB / 1.018 GB, free: 2.992 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.7848, allocations: 4 kB / 1.018 GB, free: 2.988 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001243/0.785, allocations: 43.83 kB / 1.018 GB, free: 2.945 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.7851, allocations: 73.64 kB / 1.019 GB, free: 2.867 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.7851, allocations: 0 / 1.019 GB, free: 2.867 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.7851, allocations: 0 / 1.019 GB, free: 2.867 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.7851, allocations: 4 kB / 1.019 GB, free: 2.863 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.7857, allocations: 289.3 kB / 1.019 GB, free: 2.543 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.7859, allocations: 82.7 kB / 1.019 GB, free: 2.453 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.847e-05/0.7859, allocations: 28.86 kB / 1.019 GB, free: 2.422 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.786, allocations: 4 kB / 1.019 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/0.7861, allocations: 87.31 kB / 1.019 GB, free: 2.32 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.7861, allocations: 0 / 1.019 GB, free: 2.32 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.000285/0.7864, allocations: 117.3 kB / 1.019 GB, free: 2.199 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.7864, allocations: 55.34 kB / 1.019 GB, free: 2.133 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.7866, allocations: 130.7 kB / 1.019 GB, free: 2 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.7866, allocations: 29.7 kB / 1.019 GB, free: 1.965 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.7866, allocations: 88.12 kB / 1.019 GB, free: 1.875 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.871e-05/0.7867, allocations: 27.56 kB / 1.019 GB, free: 1.848 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.7867, allocations: 4 kB / 1.019 GB, free: 1.844 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.7868, allocations: 318.8 kB / 1.02 GB, free: 1.523 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.864e-05/0.7868, allocations: 23.98 kB / 1.02 GB, free: 1.5 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.7869, allocations: 64.53 kB / 1.02 GB, free: 1.422 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.262e-05/0.787, allocations: 23.98 kB / 1.02 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.787, allocations: 0 / 1.02 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002025/0.7872, allocations: 113.4 kB / 1.02 GB, free: 1.281 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.7872, allocations: 11.89 kB / 1.02 GB, free: 1.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.7873, allocations: 4.094 kB / 1.02 GB, free: 1.266 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.7873, allocations: 4 kB / 1.02 GB, free: 1.262 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.7874, allocations: 23.92 kB / 1.02 GB, free: 1.238 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.7874, allocations: 4 kB / 1.02 GB, free: 1.234 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.7875, allocations: 11.98 kB / 1.02 GB, free: 1.223 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.7876, allocations: 4 kB / 1.02 GB, free: 1.219 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.002e-05/0.7876, allocations: 114.5 kB / 1.02 GB, free: 1.102 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.948e-05/0.7877, allocations: 8.047 kB / 1.02 GB, free: 1.094 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.788, allocations: 142 kB / 1.02 GB, free: 0.9492 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.788, allocations: 4 kB / 1.02 GB, free: 0.9453 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.788, allocations: 0 / 1.02 GB, free: 0.9453 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.788, allocations: 0 / 1.02 GB, free: 0.9453 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005676/0.7886, allocations: 403 kB / 1.021 GB, free: 0.5078 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.7886, allocations: 7.922 kB / 1.021 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.011e-05/0.7887, allocations: 15.94 kB / 1.021 GB, free: 496 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.7887, allocations: 4 kB / 1.021 GB, free: 492 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.7887, allocations: 7.984 kB / 1.021 GB, free: 484 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7887, allocations: 4 kB / 1.021 GB, free: 480 kB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7887, allocations: 0 / 1.021 GB, free: 480 kB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002588/0.789, allocations: 218.4 kB / 1.021 GB, free: 248 kB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004093/0.7894, allocations: 0.5856 MB / 1.021 GB, free: 15.64 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.086e-05/0.7895, allocations: 85.02 kB / 1.022 GB, free: 15.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.7895, allocations: 4 kB / 1.022 GB, free: 15.53 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.7896, allocations: 11.98 kB / 1.022 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.7897, allocations: 15.89 kB / 1.022 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.7897, allocations: 4 kB / 1.022 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.045e-05/0.7898, allocations: 111.8 kB / 1.022 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009624/0.7907, allocations: 55.98 kB / 1.022 GB, free: 15.34 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 (14): * Single equations (assignments): 11 * 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.0004468/0.7912, allocations: 163.4 kB / 1.022 GB, free: 15.18 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001923/0.7914, allocations: 75.92 kB / 1.022 GB, free: 15.1 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.7914, allocations: 0 / 1.022 GB, free: 15.1 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.144e-05/0.7915, allocations: 47.94 kB / 1.022 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.7918, allocations: 24.11 kB / 1.022 GB, free: 15.03 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.7922, allocations: 147.2 kB / 1.022 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.7925, allocations: 0.7231 MB / 1.023 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of SimCode: time 2.31e-07/0.7925, allocations: 0 / 1.023 GB, free: 14.11 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)