Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.001047/0.001047, allocations: 187.8 kB / 316 MB, free: 3.566 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000793/0.0007929, allocations: 89.53 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3379/0.3387, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.5077, allocations: 106.3 MB / 0.8846 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4775/0.9853, allocations: 132.1 MB / 1.014 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.9855, allocations: 74.64 kB / 1.014 GB, free: 6.445 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.005361/0.9909, allocations: 2.071 MB / 1.016 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.9909, allocations: 8 kB / 1.016 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.991, allocations: 7.562 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.538e-05/0.9911, allocations: 159.1 kB / 1.016 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.9911, allocations: 4 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.9911, allocations: 3.906 kB / 1.016 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.517e-05/0.9912, allocations: 7.938 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.407e-05/0.9912, allocations: 41.3 kB / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-06/0.9912, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.9912, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.9913, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001138/0.9914, allocations: 138.2 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.307e-05/0.9914, allocations: 29.73 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.19e-05/0.9915, allocations: 12.3 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.9915, allocations: 3.906 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.836e-05/0.9915, allocations: 57.19 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.9916, allocations: 4 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.000128/0.9917, allocations: 44.75 kB / 1.016 GB, free: 4.023 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.9917, allocations: 51.41 kB / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.182e-05/0.9918, allocations: 89 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.9918, allocations: 28.58 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/0.9918, allocations: 84.12 kB / 1.016 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.9919, allocations: 11.8 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.9919, allocations: 0 / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.992, allocations: 322.3 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.399e-05/0.992, allocations: 4 kB / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.905e-05/0.992, allocations: 26.19 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.442e-05/0.9921, allocations: 19.48 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.9921, allocations: 0 / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.368e-05/0.9922, allocations: 60.19 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.729e-06/0.9922, allocations: 4 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.9922, allocations: 0 / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.9922, allocations: 4.844 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.551e-05/0.9923, allocations: 11.89 kB / 1.017 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.9923, allocations: 4 kB / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.224e-05/0.9923, allocations: 3.5 kB / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.9923, allocations: 4 kB / 1.017 GB, free: 3.273 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 5.934e-05/0.9924, allocations: 104.9 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/0.9924, allocations: 8 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.9924, allocations: 11.62 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.9924, allocations: 0 / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.9924, allocations: 3.938 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.9924, allocations: 0 / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.749e-05/0.9925, allocations: 134 kB / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.9925, allocations: 0 / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.307e-05/0.9926, allocations: 3.906 kB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.9926, allocations: 3.938 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.9926, allocations: 4 kB / 1.017 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.9926, allocations: 11.17 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.9926, allocations: 0 / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.82e-05/0.9927, allocations: 68.03 kB / 1.017 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002289/0.9929, allocations: 482.1 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.993, allocations: 81.02 kB / 1.018 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.993, allocations: 4 kB / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.146e-05/0.993, allocations: 0 / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.794e-05/0.993, allocations: 4.094 kB / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.9931, allocations: 3.984 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.369e-05/0.9931, allocations: 75.28 kB / 1.018 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007607/0.9939, allocations: 42.44 kB / 1.018 GB, free: 2.18 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.000289/0.9942, allocations: 162 kB / 1.018 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.923e-05/0.9942, allocations: 27.86 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.9942, allocations: 0 / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.483e-05/0.9943, allocations: 11.94 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.213e-05/0.9944, allocations: 3.906 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001738/0.9945, allocations: 71.33 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.9948, allocations: 0.6956 MB / 1.019 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.9948, allocations: 0 / 1.019 GB, free: 1.176 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)