Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.521/2.521, allocations: 248.6 MB / 255.9 MB, free: 7.113 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.001675/0.001675, allocations: 188 kB / 315.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.1 MB / 0.5658 GB, free: 388 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001784/0.001783, allocations: 87.27 kB / 0.67 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4965/0.4983, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.7556, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7025/1.458, allocations: 133.9 MB / 1.014 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/1.459, allocations: 83.5 kB / 1.014 GB, free: 6.273 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.01739/1.476, allocations: 3.293 MB / 1.018 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/1.476, allocations: 12 kB / 1.018 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.086e-05/1.476, allocations: 7.906 kB / 1.018 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/1.476, allocations: 174.9 kB / 1.018 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.943e-05/1.476, allocations: 33.69 kB / 1.018 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/1.476, allocations: 4 kB / 1.018 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001594/1.477, allocations: 30.5 kB / 1.018 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/1.477, allocations: 64.34 kB / 1.018 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.477, allocations: 0 / 1.018 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/1.477, allocations: 0 / 1.018 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/1.477, allocations: 4 kB / 1.018 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/1.478, allocations: 305.3 kB / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/1.479, allocations: 52.39 kB / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/1.479, allocations: 33.91 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.142e-05/1.479, allocations: 0 / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002824/1.479, allocations: 82.48 kB / 1.018 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 5.03e-06/1.479, allocations: 0 / 1.018 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0005704/1.48, allocations: 95.31 kB / 1.018 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/1.48, allocations: 59.5 kB / 1.018 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/1.48, allocations: 119.7 kB / 1.019 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/1.48, allocations: 25.7 kB / 1.019 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/1.48, allocations: 84.38 kB / 1.019 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.875e-05/1.48, allocations: 23.33 kB / 1.019 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.728e-05/1.48, allocations: 0 / 1.019 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001843/1.481, allocations: 321.9 kB / 1.019 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/1.481, allocations: 23.12 kB / 1.019 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/1.481, allocations: 59.22 kB / 1.019 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/1.481, allocations: 27.02 kB / 1.019 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/1.481, allocations: 0 / 1.019 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005636/1.482, allocations: 107.5 kB / 1.019 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/1.482, allocations: 8.031 kB / 1.019 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/1.482, allocations: 4 kB / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/1.482, allocations: 0 / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/1.482, allocations: 19.92 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/1.482, allocations: 4 kB / 1.019 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/1.483, allocations: 27.83 kB / 1.019 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/1.483, allocations: 4 kB / 1.019 GB, free: 1.598 MB / 0.6355 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 0.0001995/1.483, allocations: 116.4 kB / 1.019 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/1.483, allocations: 7.906 kB / 1.019 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/1.483, allocations: 7.5 kB / 1.019 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/1.483, allocations: 96 / 1.019 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.483, allocations: 4 kB / 1.019 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/1.483, allocations: 3.984 kB / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/1.485, allocations: 374.2 kB / 1.02 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/1.485, allocations: 0 / 1.02 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/1.485, allocations: 11.98 kB / 1.02 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/1.485, allocations: 3.938 kB / 1.02 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/1.485, allocations: 11.98 kB / 1.02 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.485, allocations: 0 / 1.02 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/1.485, allocations: 3.984 kB / 1.02 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006232/1.486, allocations: 188.8 kB / 1.02 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008544/1.487, allocations: 0.5671 MB / 1.021 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/1.487, allocations: 85.02 kB / 1.021 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/1.487, allocations: 3.984 kB / 1.021 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/1.487, allocations: 15.98 kB / 1.021 GB, free: 184 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/1.487, allocations: 11.36 kB / 1.021 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/1.487, allocations: 4 kB / 1.021 GB, free: 172 kB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001261/1.487, allocations: 102.1 kB / 1.021 GB, free: 80 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002557/1.49, allocations: 66.62 kB / 1.021 GB, free: 16 kB / 0.6355 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.0008688/1.491, allocations: 159 kB / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003705/1.491, allocations: 60.88 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.491, allocations: 4.25 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/1.492, allocations: 41.98 kB / 1.021 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/1.492, allocations: 17.81 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000578/1.493, allocations: 123.5 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/1.493, allocations: 0.7146 MB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of SimCode: time 1.493e-06/1.493, allocations: 0 / 1.022 GB, free: 14.91 MB / 0.6511 GB