Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.934/1.934, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 189.2 kB / 487 MB, free: 5.422 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 221.3 MB / 0.7819 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001019, allocations: 92.47 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5572/0.5583, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.8045, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6579/1.462, allocations: 150.6 MB / 1.352 GB, free: 16.23 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/1.463, allocations: 82.02 kB / 1.352 GB, free: 16.23 MB / 0.8073 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.01017/1.473, allocations: 3.321 MB / 1.356 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/1.473, allocations: 9.344 kB / 1.356 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.513e-05/1.473, allocations: 10.25 kB / 1.356 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/1.473, allocations: 176.4 kB / 1.356 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.067e-05/1.473, allocations: 36.03 kB / 1.356 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/1.473, allocations: 4.031 kB / 1.356 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.433e-05/1.473, allocations: 29.64 kB / 1.356 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/1.474, allocations: 67.88 kB / 1.356 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/1.474, allocations: 4.609 kB / 1.356 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/1.474, allocations: 0.5 kB / 1.356 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/1.474, allocations: 1.656 kB / 1.356 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/1.474, allocations: 307.9 kB / 1.356 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.768e-05/1.474, allocations: 60.84 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.946e-05/1.474, allocations: 26.3 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/1.474, allocations: 3.984 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/1.474, allocations: 82.56 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/1.474, allocations: 1.156 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.000232/1.475, allocations: 97.03 kB / 1.357 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/1.475, allocations: 54.17 kB / 1.357 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/1.475, allocations: 121.5 kB / 1.357 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/1.475, allocations: 26.86 kB / 1.357 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.406e-05/1.475, allocations: 88.03 kB / 1.357 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/1.475, allocations: 20.5 kB / 1.357 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/1.475, allocations: 0 / 1.357 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.159e-05/1.475, allocations: 320.7 kB / 1.357 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.295e-05/1.475, allocations: 24.11 kB / 1.357 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-05/1.475, allocations: 57.91 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.302e-05/1.475, allocations: 23.73 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/1.475, allocations: 1.188 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001737/1.475, allocations: 108.5 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/1.475, allocations: 8.75 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/1.475, allocations: 2.922 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/1.475, allocations: 2.531 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/1.475, allocations: 16.64 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/1.475, allocations: 2.312 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/1.475, allocations: 22.98 kB / 1.357 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/1.476, allocations: 8.344 kB / 1.357 GB, free: 14.26 MB / 0.8073 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 5.754e-05/1.476, allocations: 112.7 kB / 1.358 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/1.476, allocations: 11.97 kB / 1.358 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/1.476, allocations: 12.41 kB / 1.358 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/1.476, allocations: 1.219 kB / 1.358 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.476, allocations: 4 kB / 1.358 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/1.476, allocations: 2.375 kB / 1.358 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004051/1.476, allocations: 370.5 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.476, allocations: 0 / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.572e-05/1.476, allocations: 14.88 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/1.476, allocations: 2.094 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/1.476, allocations: 2.875 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/1.476, allocations: 3.938 kB / 1.358 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.476, allocations: 8.625 kB / 1.358 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001692/1.476, allocations: 187.9 kB / 1.358 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001976/1.477, allocations: 0.5662 MB / 1.359 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/1.477, allocations: 84.94 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/1.477, allocations: 1 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/1.477, allocations: 15.19 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/1.477, allocations: 12.91 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/1.477, allocations: 8.562 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.769e-05/1.477, allocations: 95.83 kB / 1.359 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00091/1.478, allocations: 57.31 kB / 1.359 GB, free: 13.01 MB / 0.8073 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.0003994/1.478, allocations: 174.8 kB / 1.359 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001922/1.478, allocations: 70.2 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.478, allocations: 0 / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.885e-05/1.479, allocations: 38.62 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/1.479, allocations: 16.62 kB / 1.359 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/1.479, allocations: 119.8 kB / 1.359 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003347/1.48, allocations: 0.7194 MB / 1.36 GB, free: 28.1 MB / 0.823 GB Notification: Performance of SimCode: time 2.8e-07/1.48, allocations: 0 / 1.36 GB, free: 28.1 MB / 0.823 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)