Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.274/1.274, allocations: 249.4 MB / 256.7 MB, free: 7.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009304/0.0009304, allocations: 192.4 kB / 316 MB, free: 3.555 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.071/1.071, allocations: 205.1 MB / 0.5667 GB, free: 15.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.0007803/0.0007803, allocations: 98.56 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3219/0.3227, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.4854, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4937/0.9791, allocations: 134.2 MB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.9793, allocations: 81.38 kB / 1.016 GB, free: 4.016 MB / 0.6355 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.009333/0.9887, allocations: 3.277 MB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.9887, allocations: 8 kB / 1.019 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.9888, allocations: 11.91 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.9889, allocations: 190.7 kB / 1.019 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.989, allocations: 29.7 kB / 1.019 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.9891, allocations: 4 kB / 1.019 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.57e-05/0.9892, allocations: 30.36 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.9893, allocations: 60.05 kB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.9893, allocations: 0 / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.9893, allocations: 3.984 kB / 1.019 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.9893, allocations: 3.938 kB / 1.019 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000465/0.9898, allocations: 299.8 kB / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.9899, allocations: 60.55 kB / 1.02 GB, free: 448 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.203e-05/0.99, allocations: 34.34 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.99, allocations: 0 / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.9901, allocations: 88.06 kB / 1.02 GB, free: 332 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.9901, allocations: 0 / 1.02 GB, free: 332 kB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.000236/0.9904, allocations: 87.95 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.9904, allocations: 58.53 kB / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.654e-05/0.9905, allocations: 120.4 kB / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.9905, allocations: 29.7 kB / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.9906, allocations: 95.95 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.9906, allocations: 15.03 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.9906, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.9908, allocations: 328.8 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.13e-05/0.9908, allocations: 15.06 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.799e-05/0.9909, allocations: 59.14 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.799e-05/0.9909, allocations: 26.86 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.991, allocations: 0 / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001609/0.9911, allocations: 102.7 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.9911, allocations: 8 kB / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.9911, allocations: 96 / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.9912, allocations: 12.06 kB / 1.021 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.9913, allocations: 19.97 kB / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.9913, allocations: 3.938 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.9914, allocations: 23.83 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.9914, allocations: 4 kB / 1.021 GB, free: 15.34 MB / 0.6511 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,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.529e-05/0.9915, allocations: 112.8 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.9915, allocations: 11.84 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.9916, allocations: 11.38 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.9916, allocations: 0 / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.9916, allocations: 3.984 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.9916, allocations: 3.906 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.992, allocations: 369.1 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.992, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.389e-05/0.9921, allocations: 19.36 kB / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.9921, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.9922, allocations: 4.75 kB / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.9922, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.9922, allocations: 4 kB / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001889/0.9924, allocations: 193 kB / 1.021 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003361/0.9927, allocations: 0.5587 MB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.528e-05/0.9928, allocations: 85.3 kB / 1.022 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.9928, allocations: 4 kB / 1.022 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.9929, allocations: 15.98 kB / 1.022 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.938e-05/0.993, allocations: 19.77 kB / 1.022 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.993, allocations: 11.48 kB / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.032e-05/0.9931, allocations: 93.72 kB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000928/0.994, allocations: 59.67 kB / 1.022 GB, free: 13.76 MB / 0.6511 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0004082/0.9944, allocations: 161.2 kB / 1.022 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.9946, allocations: 69.86 kB / 1.022 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.9946, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.607e-05/0.9947, allocations: 37.75 kB / 1.022 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.995, allocations: 17.09 kB / 1.023 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.9954, allocations: 124.9 kB / 1.023 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.9957, allocations: 0.7191 MB / 1.023 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.9957, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)