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.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",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.032/4.032, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5733/4.606, allocations: 104.3 MB / 0.5319 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/4.856, allocations: 98.71 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.259/5.115, allocations: 125.7 MB / 0.751 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/5.116, allocations: 83.58 kB / 0.7511 GB, free: 11.87 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.02123/5.137, allocations: 3.007 MB / 0.754 GB, free: 8.805 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/5.137, allocations: 11.94 kB / 0.754 GB, free: 8.793 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/5.137, allocations: 7.906 kB / 0.754 GB, free: 8.785 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/5.137, allocations: 170.9 kB / 0.7542 GB, free: 8.578 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/5.137, allocations: 3.984 kB / 0.7542 GB, free: 8.574 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/5.137, allocations: 8 kB / 0.7542 GB, free: 8.566 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001241/5.138, allocations: 31.92 kB / 0.7543 GB, free: 8.535 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/5.138, allocations: 49.67 kB / 0.7543 GB, free: 8.48 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/5.138, allocations: 3.906 kB / 0.7543 GB, free: 8.477 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/5.138, allocations: 8 kB / 0.7543 GB, free: 8.469 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/5.138, allocations: 0 / 0.7543 GB, free: 8.469 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005965/5.138, allocations: 281.3 kB / 0.7546 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/5.139, allocations: 34.58 kB / 0.7546 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.347e-05/5.139, allocations: 29.64 kB / 0.7546 GB, free: 8.082 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/5.139, allocations: 3.984 kB / 0.7546 GB, free: 8.078 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/5.139, allocations: 59.41 kB / 0.7547 GB, free: 8.008 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.244e-06/5.139, allocations: 4 kB / 0.7547 GB, free: 8.004 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0004053/5.139, allocations: 77.58 kB / 0.7548 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/5.139, allocations: 55.41 kB / 0.7548 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/5.139, allocations: 109 kB / 0.7549 GB, free: 7.742 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/5.14, allocations: 29.64 kB / 0.755 GB, free: 7.707 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.323e-05/5.14, allocations: 88.33 kB / 0.7551 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.964e-05/5.14, allocations: 19.86 kB / 0.7551 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/5.14, allocations: 0 / 0.7551 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001998/5.14, allocations: 318.8 kB / 0.7554 GB, free: 7.273 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/5.14, allocations: 23.98 kB / 0.7554 GB, free: 7.25 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/5.14, allocations: 38.52 kB / 0.7554 GB, free: 7.203 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/5.14, allocations: 23.98 kB / 0.7555 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/5.14, allocations: 0 / 0.7555 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004393/5.141, allocations: 89.53 kB / 0.7555 GB, free: 7.086 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/5.141, allocations: 7.984 kB / 0.7555 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/5.141, allocations: 4.062 kB / 0.7556 GB, free: 7.074 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/5.141, allocations: 0 / 0.7556 GB, free: 7.074 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/5.141, allocations: 12 kB / 0.7556 GB, free: 7.062 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/5.141, allocations: 0 / 0.7556 GB, free: 7.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/5.141, allocations: 11.92 kB / 0.7556 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/5.141, allocations: 4 kB / 0.7556 GB, free: 7.047 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.0001663/5.142, allocations: 120.8 kB / 0.7557 GB, free: 6.922 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/5.142, allocations: 7.906 kB / 0.7557 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.657e-05/5.142, allocations: 8.359 kB / 0.7557 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/5.142, allocations: 0 / 0.7557 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/5.142, allocations: 0 / 0.7557 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/5.142, allocations: 0 / 0.7557 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005147/5.142, allocations: 331.1 kB / 0.756 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/5.142, allocations: 0 / 0.756 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.045e-05/5.142, allocations: 4 kB / 0.756 GB, free: 6.535 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/5.142, allocations: 4 kB / 0.756 GB, free: 6.531 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/5.142, allocations: 7.984 kB / 0.756 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/5.142, allocations: 7.938 kB / 0.756 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/5.142, allocations: 0 / 0.756 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002777/5.143, allocations: 171.4 kB / 0.7562 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000416/5.143, allocations: 0.5544 MB / 0.7568 GB, free: 5.758 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/5.143, allocations: 85.02 kB / 0.7568 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/5.143, allocations: 0 / 0.7568 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/5.143, allocations: 5.562 kB / 0.7568 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/5.143, allocations: 7.984 kB / 0.7568 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/5.143, allocations: 4 kB / 0.7569 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.013e-05/5.144, allocations: 91.92 kB / 0.7569 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001277/5.145, allocations: 55.94 kB / 0.757 GB, free: 5.496 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.0004984/5.145, allocations: 172.2 kB / 0.7572 GB, free: 5.32 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002831/5.146, allocations: 51.94 kB / 0.7572 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/5.146, allocations: 3.938 kB / 0.7572 GB, free: 5.266 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/5.146, allocations: 32.11 kB / 0.7572 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/5.146, allocations: 4 kB / 0.7572 GB, free: 5.23 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/5.147, allocations: 103.6 kB / 0.7573 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/5.147, allocations: 0.7075 MB / 0.758 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of SimCode: time 8.82e-07/5.147, allocations: 0 / 0.758 GB, free: 4.371 MB / 0.6355 GB