Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.358/2.358, allocations: 248.6 MB / 255.9 MB, free: 7.176 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.001788/0.001788, allocations: 181.2 kB / 315.1 MB, free: 4.289 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.177/2.177, allocations: 205.1 MB / 0.5658 GB, free: 392 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.002068/0.002067, allocations: 91.27 kB / 0.67 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5073/0.5094, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.7339, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6862/1.42, allocations: 134 MB / 1.014 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004185/1.421, allocations: 80.95 kB / 1.014 GB, free: 6.266 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.01655/1.437, allocations: 3.288 MB / 1.018 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/1.437, allocations: 16 kB / 1.018 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/1.437, allocations: 11.81 kB / 1.018 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/1.438, allocations: 166.6 kB / 1.018 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/1.438, allocations: 3.984 kB / 1.018 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.4e-05/1.438, allocations: 7.906 kB / 1.018 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001571/1.438, allocations: 30.12 kB / 1.018 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/1.438, allocations: 64.84 kB / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.609e-06/1.438, allocations: 0 / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/1.438, allocations: 0 / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.438, allocations: 0 / 1.018 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/1.439, allocations: 305.2 kB / 1.018 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/1.439, allocations: 56.5 kB / 1.018 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.979e-05/1.439, allocations: 32.28 kB / 1.018 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/1.439, allocations: 0 / 1.018 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/1.439, allocations: 77.77 kB / 1.018 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.014e-06/1.439, allocations: 0 / 1.018 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003653/1.44, allocations: 98.72 kB / 1.018 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/1.44, allocations: 66.73 kB / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/1.44, allocations: 118.2 kB / 1.019 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/1.44, allocations: 29.7 kB / 1.019 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/1.44, allocations: 83.31 kB / 1.019 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/1.44, allocations: 23.33 kB / 1.019 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/1.44, allocations: 0 / 1.019 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001759/1.44, allocations: 318.7 kB / 1.019 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.43e-05/1.44, allocations: 22.73 kB / 1.019 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/1.44, allocations: 60.91 kB / 1.019 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.031e-05/1.441, allocations: 22.92 kB / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.441, allocations: 0 / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002878/1.441, allocations: 114 kB / 1.019 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/1.441, allocations: 6.969 kB / 1.019 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/1.441, allocations: 12.06 kB / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/1.441, allocations: 0 / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/1.441, allocations: 16.86 kB / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/1.441, allocations: 4 kB / 1.019 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/1.441, allocations: 11.98 kB / 1.019 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/1.441, allocations: 4 kB / 1.019 GB, free: 1.633 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.0001221/1.442, allocations: 120.1 kB / 1.019 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/1.442, allocations: 7.906 kB / 1.019 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004506/1.442, allocations: 105.3 kB / 1.02 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/1.442, allocations: 4 kB / 1.02 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.442, allocations: 0 / 1.02 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/1.442, allocations: 2.312 kB / 1.02 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007958/1.443, allocations: 384.2 kB / 1.02 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/1.443, allocations: 0 / 1.02 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/1.443, allocations: 15.98 kB / 1.02 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/1.443, allocations: 0 / 1.02 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/1.443, allocations: 0 / 1.02 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/1.443, allocations: 3.906 kB / 1.02 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.443, allocations: 4 kB / 1.02 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003204/1.444, allocations: 205.2 kB / 1.02 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004765/1.444, allocations: 0.5636 MB / 1.021 GB, free: 252 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/1.444, allocations: 85 kB / 1.021 GB, free: 148 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/1.444, allocations: 8 kB / 1.021 GB, free: 140 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/1.444, allocations: 11.98 kB / 1.021 GB, free: 128 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/1.444, allocations: 7.984 kB / 1.021 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/1.444, allocations: 3.281 kB / 1.021 GB, free: 120 kB / 0.6355 GB Notification: Performance of sort global known variables: time 8.252e-05/1.445, allocations: 101.5 kB / 1.021 GB, free: 24 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001435/1.446, allocations: 54.23 kB / 1.021 GB, free: 15.97 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 (12): * Single equations (assignments): 9 * 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.0005651/1.447, allocations: 180.4 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002831/1.447, allocations: 61.67 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.447, allocations: 0 / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001267/1.447, allocations: 48.98 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/1.447, allocations: 14.08 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/1.448, allocations: 121.1 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000551/1.449, allocations: 0.7114 MB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of SimCode: time 1.392e-06/1.449, allocations: 0 / 1.022 GB, free: 14.84 MB / 0.6511 GB