Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.245/2.245, allocations: 248.6 MB / 255.9 MB, free: 7.23 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.001698/0.001697, allocations: 187.9 kB / 315.1 MB, free: 4.273 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.158/2.158, allocations: 205.1 MB / 0.5658 GB, free: 376 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.001294/0.001293, allocations: 86.48 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5179/0.5192, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.742, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6867/1.429, allocations: 134.1 MB / 1.014 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/1.429, allocations: 78.45 kB / 1.014 GB, free: 6.176 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01736/1.447, allocations: 3.503 MB / 1.018 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/1.447, allocations: 11.98 kB / 1.018 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/1.447, allocations: 11.91 kB / 1.018 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/1.447, allocations: 170.9 kB / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/1.447, allocations: 4 kB / 1.018 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/1.447, allocations: 8 kB / 1.018 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000182/1.447, allocations: 38.11 kB / 1.018 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/1.447, allocations: 75.42 kB / 1.018 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/1.447, allocations: 0 / 1.018 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/1.447, allocations: 4 kB / 1.018 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/1.447, allocations: 0 / 1.018 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006877/1.448, allocations: 297.5 kB / 1.018 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/1.449, allocations: 75.58 kB / 1.019 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/1.449, allocations: 34.73 kB / 1.019 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/1.449, allocations: 3.438 kB / 1.019 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/1.449, allocations: 80.75 kB / 1.019 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.436e-06/1.449, allocations: 0 / 1.019 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0006282/1.45, allocations: 116.2 kB / 1.019 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/1.45, allocations: 51.41 kB / 1.019 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/1.45, allocations: 138.3 kB / 1.019 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.479e-05/1.45, allocations: 25.7 kB / 1.019 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.915e-05/1.45, allocations: 90.88 kB / 1.019 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/1.45, allocations: 27.12 kB / 1.019 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/1.45, allocations: 0 / 1.019 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001707/1.45, allocations: 321.2 kB / 1.019 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/1.451, allocations: 27.67 kB / 1.019 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/1.451, allocations: 55.72 kB / 1.019 GB, free: 1.477 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/1.451, allocations: 30.17 kB / 1.02 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/1.451, allocations: 0 / 1.02 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004592/1.451, allocations: 119.4 kB / 1.02 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/1.452, allocations: 4 kB / 1.02 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/1.452, allocations: 3.984 kB / 1.02 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/1.452, allocations: 7.906 kB / 1.02 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/1.452, allocations: 15.98 kB / 1.02 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/1.452, allocations: 7.938 kB / 1.02 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/1.452, allocations: 12.09 kB / 1.02 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/1.452, allocations: 11.23 kB / 1.02 GB, free: 1.289 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,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 0.0001614/1.452, allocations: 105 kB / 1.02 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/1.453, allocations: 19.75 kB / 1.02 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006979/1.453, allocations: 129.6 kB / 1.02 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/1.453, allocations: 4 kB / 1.02 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/1.453, allocations: 0 / 1.02 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/1.453, allocations: 7.938 kB / 1.02 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/1.455, allocations: 403.2 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.455, allocations: 7.984 kB / 1.02 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/1.455, allocations: 15.94 kB / 1.02 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.055e-05/1.455, allocations: 4 kB / 1.02 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/1.455, allocations: 7.484 kB / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/1.455, allocations: 0 / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.455, allocations: 0 / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005697/1.456, allocations: 216.3 kB / 1.021 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008166/1.456, allocations: 0.5855 MB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.662e-05/1.457, allocations: 85.02 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.158e-05/1.457, allocations: 0 / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/1.457, allocations: 11.98 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.455e-05/1.457, allocations: 16.55 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/1.457, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001479/1.457, allocations: 106.3 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002308/1.46, allocations: 66.7 kB / 1.021 GB, free: 15.55 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 (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.0008273/1.461, allocations: 159.9 kB / 1.022 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004354/1.461, allocations: 76.92 kB / 1.022 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.461, allocations: 4.188 kB / 1.022 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/1.461, allocations: 49.38 kB / 1.022 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/1.462, allocations: 11.98 kB / 1.022 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008659/1.463, allocations: 146.8 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/1.463, allocations: 0.7269 MB / 1.023 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of SimCode: time 1.743e-06/1.463, allocations: 3.938 kB / 1.023 GB, free: 14.38 MB / 0.6511 GB