Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",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.325/2.325, allocations: 248.6 MB / 255.9 MB, free: 7.164 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.001673/0.001672, allocations: 189.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.147/2.147, allocations: 205.1 MB / 0.5658 GB, free: 300 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.001307/0.001307, allocations: 90.58 kB / 0.67 GB, free: 5.512 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5031/0.5044, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.7554, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7029/1.458, allocations: 131.8 MB / 1.012 GB, free: 8.379 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.459, allocations: 67.34 kB / 1.012 GB, free: 8.344 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.009502/1.468, allocations: 2.071 MB / 1.014 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.468, allocations: 8 kB / 1.014 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.247e-05/1.468, allocations: 5.125 kB / 1.014 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/1.468, allocations: 179 kB / 1.014 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/1.469, allocations: 0 / 1.014 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/1.469, allocations: 0 / 1.014 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.242e-05/1.469, allocations: 11.91 kB / 1.014 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.163e-05/1.469, allocations: 33.69 kB / 1.015 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/1.469, allocations: 3.938 kB / 1.015 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/1.469, allocations: 0 / 1.015 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/1.469, allocations: 4 kB / 1.015 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/1.469, allocations: 134 kB / 1.015 GB, free: 6.078 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.256e-05/1.469, allocations: 25.83 kB / 1.015 GB, free: 6.047 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.215e-05/1.469, allocations: 16.92 kB / 1.015 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/1.469, allocations: 7.938 kB / 1.015 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/1.469, allocations: 57.12 kB / 1.015 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.934e-06/1.469, allocations: 0 / 1.015 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001924/1.469, allocations: 45.31 kB / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/1.47, allocations: 51.41 kB / 1.015 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.97e-05/1.47, allocations: 96.69 kB / 1.015 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/1.47, allocations: 25.7 kB / 1.015 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/1.47, allocations: 80.14 kB / 1.015 GB, free: 5.637 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/1.47, allocations: 3.906 kB / 1.015 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/1.47, allocations: 3.5 kB / 1.015 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.47, allocations: 322.7 kB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.495e-05/1.47, allocations: 4 kB / 1.015 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.306e-05/1.47, allocations: 35 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.177e-05/1.47, allocations: 15.11 kB / 1.015 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.47, allocations: 0 / 1.015 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001455/1.47, allocations: 56.75 kB / 1.015 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/1.47, allocations: 4.938 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.47, allocations: 0 / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/1.47, allocations: 4 kB / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/1.47, allocations: 8.094 kB / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.47, allocations: 7.906 kB / 1.015 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.98e-05/1.47, allocations: 0 / 1.015 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/1.471, allocations: 4 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y,y,$PRE.curSeed,curSeed,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001082/1.471, allocations: 116.7 kB / 1.016 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/1.471, allocations: 3.906 kB / 1.016 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/1.471, allocations: 7.688 kB / 1.016 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.471, allocations: 0 / 1.016 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/1.471, allocations: 0 / 1.016 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/1.471, allocations: 4 kB / 1.016 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/1.471, allocations: 134.2 kB / 1.016 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/1.471, allocations: 0 / 1.016 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.907e-05/1.471, allocations: 0 / 1.016 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/1.471, allocations: 4 kB / 1.016 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/1.471, allocations: 7.984 kB / 1.016 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.471, allocations: 0 / 1.016 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/1.471, allocations: 0 / 1.016 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001837/1.471, allocations: 79.67 kB / 1.016 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006027/1.472, allocations: 475.2 kB / 1.016 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.744e-05/1.472, allocations: 81.02 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/1.472, allocations: 3.438 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.025e-05/1.472, allocations: 0 / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/1.472, allocations: 4 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/1.472, allocations: 3.938 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.315e-05/1.472, allocations: 83.28 kB / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001208/1.474, allocations: 43.3 kB / 1.016 GB, free: 4.059 MB / 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: 3 ($whenCondition1,y,curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005417/1.474, allocations: 152.8 kB / 1.017 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001443/1.474, allocations: 27.52 kB / 1.017 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.474, allocations: 8.062 kB / 1.017 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.155e-05/1.474, allocations: 11.25 kB / 1.017 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/1.474, allocations: 4 kB / 1.017 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/1.475, allocations: 79.42 kB / 1.017 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00039/1.475, allocations: 0.6889 MB / 1.017 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of SimCode: time 1.333e-06/1.475, allocations: 0 / 1.017 GB, free: 3.062 MB / 0.6355 GB