Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 4.246/4.246, allocations: 433 MB / 440.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5711/4.817, allocations: 104.3 MB / 0.5319 GB, free: 13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/5.071, allocations: 98.72 MB / 0.6283 GB, free: 9.844 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3036/5.375, allocations: 123.9 MB / 0.7492 GB, free: 13.81 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/5.375, allocations: 79.59 kB / 0.7493 GB, free: 13.74 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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.00935/5.384, allocations: 2.068 MB / 0.7513 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.063e-05/5.384, allocations: 12 kB / 0.7514 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/5.384, allocations: 0 / 0.7514 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/5.385, allocations: 163 kB / 0.7515 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/5.385, allocations: 7.844 kB / 0.7515 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/5.385, allocations: 8 kB / 0.7515 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.882e-05/5.385, allocations: 7.984 kB / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.225e-05/5.385, allocations: 37.67 kB / 0.7516 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/5.385, allocations: 0 / 0.7516 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/5.385, allocations: 4 kB / 0.7516 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/5.385, allocations: 0 / 0.7516 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/5.385, allocations: 134.3 kB / 0.7517 GB, free: 11.17 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.79e-05/5.385, allocations: 22.58 kB / 0.7517 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.402e-05/5.385, allocations: 24.7 kB / 0.7517 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/5.385, allocations: 0 / 0.7517 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.688e-05/5.385, allocations: 47.5 kB / 0.7518 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/5.385, allocations: 4 kB / 0.7518 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001871/5.386, allocations: 41.69 kB / 0.7518 GB, free: 11 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/5.386, allocations: 55.41 kB / 0.7519 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/5.386, allocations: 92.98 kB / 0.752 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/5.386, allocations: 25.7 kB / 0.752 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.11e-05/5.386, allocations: 84.14 kB / 0.7521 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/5.386, allocations: 11.81 kB / 0.7521 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-06/5.386, allocations: 0 / 0.7521 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001332/5.386, allocations: 310.8 kB / 0.7524 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/5.386, allocations: 8 kB / 0.7524 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.398e-05/5.386, allocations: 39.48 kB / 0.7524 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.828e-05/5.386, allocations: 11.94 kB / 0.7524 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/5.386, allocations: 0 / 0.7524 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001409/5.386, allocations: 57.62 kB / 0.7525 GB, free: 10.26 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/5.386, allocations: 8 kB / 0.7525 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/5.386, allocations: 0 / 0.7525 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/5.386, allocations: 8 kB / 0.7525 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/5.387, allocations: 11.98 kB / 0.7525 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/5.387, allocations: 0 / 0.7525 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.067e-05/5.387, allocations: 4 kB / 0.7525 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/5.387, allocations: 0 / 0.7525 GB, free: 10.23 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 8.928e-05/5.387, allocations: 108.9 kB / 0.7526 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/5.387, allocations: 3.906 kB / 0.7526 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/5.387, allocations: 7.688 kB / 0.7526 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/5.387, allocations: 0 / 0.7526 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/5.387, allocations: 8 kB / 0.7526 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/5.387, allocations: 3.984 kB / 0.7527 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/5.387, allocations: 126.2 kB / 0.7528 GB, free: 9.934 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/5.387, allocations: 7.906 kB / 0.7528 GB, free: 9.926 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.055e-05/5.387, allocations: 3.984 kB / 0.7528 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/5.387, allocations: 3.938 kB / 0.7528 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/5.387, allocations: 0 / 0.7528 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/5.387, allocations: 0 / 0.7528 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/5.387, allocations: 4 kB / 0.7528 GB, free: 9.914 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001397/5.387, allocations: 81.77 kB / 0.7529 GB, free: 9.816 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003275/5.388, allocations: 469.5 kB / 0.7533 GB, free: 9.336 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/5.388, allocations: 85.02 kB / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/5.388, allocations: 0 / 0.7534 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.949e-05/5.388, allocations: 4.078 kB / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.441e-05/5.388, allocations: 0 / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/5.388, allocations: 8 kB / 0.7534 GB, free: 9.223 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.906e-05/5.388, allocations: 79.28 kB / 0.7535 GB, free: 9.145 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001248/5.389, allocations: 47.92 kB / 0.7535 GB, free: 9.098 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.0005438/5.39, allocations: 164.8 kB / 0.7537 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001502/5.39, allocations: 28.03 kB / 0.7537 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/5.39, allocations: 0 / 0.7537 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.161e-05/5.39, allocations: 12 kB / 0.7537 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/5.39, allocations: 3.906 kB / 0.7537 GB, free: 8.887 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/5.39, allocations: 67.84 kB / 0.7538 GB, free: 8.797 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003037/5.391, allocations: 0.6876 MB / 0.7545 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of SimCode: time 8.71e-07/5.391, allocations: 3.938 kB / 0.7545 GB, free: 8.082 MB / 0.6355 GB