Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.486/1.486, allocations: 289.8 MB / 297.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 180.2 kB / 366.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 0.6256 GB, free: 7.422 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009469/0.0009469, allocations: 87.53 kB / 0.7395 GB, free: 39.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.297/0.298, allocations: 122.4 MB / 0.8591 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7364/1.034, allocations: 116.3 MB / 0.9726 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/1.213, allocations: 138.3 MB / 1.108 GB, free: 12.15 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/1.214, allocations: 69.39 kB / 1.108 GB, free: 12.09 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.005872/1.22, allocations: 2.076 MB / 1.11 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.22, allocations: 9.125 kB / 1.11 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.817e-05/1.22, allocations: 3.906 kB / 1.11 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/1.22, allocations: 161.3 kB / 1.11 GB, free: 9.773 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/1.22, allocations: 4.812 kB / 1.11 GB, free: 9.77 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/1.22, allocations: 0 / 1.11 GB, free: 9.77 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.796e-05/1.22, allocations: 8.438 kB / 1.11 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.246e-05/1.22, allocations: 39.66 kB / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/1.22, allocations: 0 / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/1.22, allocations: 0 / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/1.22, allocations: 0 / 1.11 GB, free: 9.719 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001716/1.22, allocations: 135.8 kB / 1.11 GB, free: 9.551 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.888e-05/1.22, allocations: 30.61 kB / 1.11 GB, free: 9.512 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.638e-05/1.22, allocations: 9.828 kB / 1.11 GB, free: 9.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/1.22, allocations: 0.75 kB / 1.11 GB, free: 9.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.843e-05/1.221, allocations: 59.69 kB / 1.11 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 2.635e-06/1.221, allocations: 4.484 kB / 1.11 GB, free: 9.43 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.000166/1.221, allocations: 50.12 kB / 1.11 GB, free: 9.375 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/1.221, allocations: 52 kB / 1.11 GB, free: 9.312 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/1.221, allocations: 89.88 kB / 1.11 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/1.221, allocations: 30.7 kB / 1.11 GB, free: 9.184 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/1.221, allocations: 84.12 kB / 1.111 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/1.221, allocations: 5.312 kB / 1.111 GB, free: 9.094 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-06/1.221, allocations: 1.062 kB / 1.111 GB, free: 9.094 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001133/1.221, allocations: 318.8 kB / 1.111 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.77e-05/1.221, allocations: 4.906 kB / 1.111 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.461e-05/1.221, allocations: 29.12 kB / 1.111 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/1.221, allocations: 16.7 kB / 1.111 GB, free: 8.715 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/1.221, allocations: 0 / 1.111 GB, free: 8.715 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.698e-05/1.221, allocations: 62.41 kB / 1.111 GB, free: 8.648 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/1.221, allocations: 4.719 kB / 1.111 GB, free: 8.645 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.221, allocations: 0 / 1.111 GB, free: 8.645 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/1.221, allocations: 5.031 kB / 1.111 GB, free: 8.641 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.369e-05/1.221, allocations: 7.984 kB / 1.111 GB, free: 8.633 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/1.221, allocations: 4.469 kB / 1.111 GB, free: 8.629 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.622e-05/1.222, allocations: 6.438 kB / 1.111 GB, free: 8.625 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/1.222, allocations: 8.438 kB / 1.111 GB, free: 8.617 MB / 0.7136 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 9.931e-05/1.222, allocations: 113.7 kB / 1.111 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/1.222, allocations: 3.938 kB / 1.111 GB, free: 8.5 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.09e-05/1.222, allocations: 3.688 kB / 1.111 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/1.222, allocations: 4.594 kB / 1.111 GB, free: 8.484 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/1.222, allocations: 1.188 kB / 1.111 GB, free: 8.484 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/1.222, allocations: 3.906 kB / 1.111 GB, free: 8.48 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/1.222, allocations: 130.2 kB / 1.111 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/1.222, allocations: 1.375 kB / 1.111 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/1.222, allocations: 0 / 1.111 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/1.222, allocations: 0.5625 kB / 1.111 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/1.222, allocations: 7.984 kB / 1.111 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.222, allocations: 1.438 kB / 1.111 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.222, allocations: 0 / 1.111 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001143/1.222, allocations: 73.94 kB / 1.111 GB, free: 8.219 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003399/1.222, allocations: 483.3 kB / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/1.223, allocations: 77.67 kB / 1.112 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/1.223, allocations: 2.781 kB / 1.112 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.45e-05/1.223, allocations: 0.5312 kB / 1.112 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/1.223, allocations: 8.078 kB / 1.112 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/1.223, allocations: 4.5 kB / 1.112 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.58e-05/1.223, allocations: 79.5 kB / 1.112 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000853/1.224, allocations: 44.78 kB / 1.112 GB, free: 7.5 MB / 0.7136 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.000407/1.224, allocations: 163.5 kB / 1.112 GB, free: 7.344 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.852e-05/1.224, allocations: 23.94 kB / 1.112 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/1.224, allocations: 288 / 1.112 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.875e-05/1.224, allocations: 12 kB / 1.112 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001049/1.224, allocations: 3.484 kB / 1.112 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002406/1.225, allocations: 78.16 kB / 1.112 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002751/1.225, allocations: 0.6876 MB / 1.113 GB, free: 6.5 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/1.225, allocations: 0 / 1.113 GB, free: 6.5 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)