Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",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.013/4.013, allocations: 433 MB / 440.3 MB, free: 4.844 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5467/4.559, allocations: 104.3 MB / 0.5319 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/4.809, allocations: 98.72 MB / 0.6283 GB, free: 9.844 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2839/5.093, allocations: 125.7 MB / 0.751 GB, free: 12 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005356/5.094, allocations: 79.59 kB / 0.7511 GB, free: 11.93 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.019/5.113, allocations: 3.009 MB / 0.754 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.059e-05/5.113, allocations: 12 kB / 0.754 GB, free: 8.848 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.705e-05/5.113, allocations: 7.906 kB / 0.754 GB, free: 8.84 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/5.113, allocations: 174.9 kB / 0.7542 GB, free: 8.629 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.811e-05/5.113, allocations: 4 kB / 0.7542 GB, free: 8.625 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/5.113, allocations: 4 kB / 0.7542 GB, free: 8.621 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001796/5.114, allocations: 23.98 kB / 0.7542 GB, free: 8.598 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/5.114, allocations: 57.61 kB / 0.7543 GB, free: 8.535 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/5.114, allocations: 3.906 kB / 0.7543 GB, free: 8.531 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/5.114, allocations: 7.938 kB / 0.7543 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/5.114, allocations: 3.984 kB / 0.7543 GB, free: 8.52 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006949/5.115, allocations: 281.3 kB / 0.7546 GB, free: 8.207 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/5.115, allocations: 34.58 kB / 0.7546 GB, free: 8.164 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.576e-05/5.115, allocations: 29.69 kB / 0.7546 GB, free: 8.133 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/5.115, allocations: 0 / 0.7546 GB, free: 8.133 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/5.115, allocations: 71.33 kB / 0.7547 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.264e-06/5.115, allocations: 4 kB / 0.7547 GB, free: 8.047 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003324/5.116, allocations: 73.59 kB / 0.7548 GB, free: 7.969 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/5.116, allocations: 55.41 kB / 0.7548 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/5.116, allocations: 112.9 kB / 0.7549 GB, free: 7.785 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/5.116, allocations: 25.7 kB / 0.755 GB, free: 7.754 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.465e-05/5.116, allocations: 84.31 kB / 0.7551 GB, free: 7.664 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/5.116, allocations: 15.81 kB / 0.7551 GB, free: 7.648 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-06/5.116, allocations: 0 / 0.7551 GB, free: 7.648 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001366/5.116, allocations: 330.7 kB / 0.7554 GB, free: 7.316 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.927e-05/5.116, allocations: 16 kB / 0.7554 GB, free: 7.301 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.858e-05/5.116, allocations: 34.58 kB / 0.7554 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/5.116, allocations: 27.98 kB / 0.7555 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/5.116, allocations: 0 / 0.7555 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002889/5.117, allocations: 89.58 kB / 0.7555 GB, free: 7.137 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/5.117, allocations: 12.06 kB / 0.7556 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/5.117, allocations: 0 / 0.7556 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/5.117, allocations: 4 kB / 0.7556 GB, free: 7.121 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/5.117, allocations: 19.92 kB / 0.7556 GB, free: 7.102 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/5.117, allocations: 0 / 0.7556 GB, free: 7.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/5.117, allocations: 7.938 kB / 0.7556 GB, free: 7.09 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/5.117, allocations: 4 kB / 0.7556 GB, free: 7.086 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001192/5.117, allocations: 112.9 kB / 0.7557 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/5.117, allocations: 3.906 kB / 0.7557 GB, free: 6.965 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.336e-05/5.117, allocations: 16.36 kB / 0.7557 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/5.117, allocations: 0 / 0.7557 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/5.117, allocations: 0 / 0.7557 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/5.117, allocations: 0 / 0.7557 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000579/5.118, allocations: 323 kB / 0.756 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/5.118, allocations: 0 / 0.756 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.933e-05/5.118, allocations: 8 kB / 0.756 GB, free: 6.582 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/5.118, allocations: 0 / 0.756 GB, free: 6.582 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/5.118, allocations: 7.984 kB / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/5.118, allocations: 0 / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/5.118, allocations: 3.938 kB / 0.756 GB, free: 6.57 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003033/5.119, allocations: 175.4 kB / 0.7562 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004827/5.119, allocations: 0.5586 MB / 0.7568 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/5.119, allocations: 85.02 kB / 0.7568 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/5.119, allocations: 0 / 0.7568 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/5.119, allocations: 9.547 kB / 0.7568 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/5.119, allocations: 4 kB / 0.7568 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/5.119, allocations: 3.984 kB / 0.7569 GB, free: 5.688 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.467e-05/5.12, allocations: 87.28 kB / 0.7569 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001747/5.121, allocations: 51.98 kB / 0.757 GB, free: 5.551 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0006812/5.122, allocations: 180.5 kB / 0.7572 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002767/5.122, allocations: 51.98 kB / 0.7572 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/5.122, allocations: 128 / 0.7572 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/5.122, allocations: 35.92 kB / 0.7572 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/5.123, allocations: 4 kB / 0.7572 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004794/5.123, allocations: 103.6 kB / 0.7573 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/5.124, allocations: 0.7075 MB / 0.758 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of SimCode: time 1.232e-06/5.124, allocations: 3.938 kB / 0.758 GB, free: 4.414 MB / 0.6355 GB