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.Zhang2012WindowsAll.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.Zhang2012WindowsAll,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.301/4.301, allocations: 433 MB / 440.3 MB, free: 4.742 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.552/4.853, allocations: 104.3 MB / 0.5319 GB, free: 13.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/5.123, allocations: 98.72 MB / 0.6283 GB, free: 9.75 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2702/5.393, allocations: 125.7 MB / 0.751 GB, free: 11.9 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/5.394, allocations: 83.56 kB / 0.7511 GB, free: 11.82 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.01556/5.409, allocations: 3.005 MB / 0.754 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/5.409, allocations: 12 kB / 0.754 GB, free: 8.746 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.952e-05/5.41, allocations: 7.906 kB / 0.754 GB, free: 8.738 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/5.41, allocations: 178.9 kB / 0.7542 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/5.41, allocations: 0 / 0.7542 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/5.41, allocations: 8 kB / 0.7542 GB, free: 8.516 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001206/5.41, allocations: 20 kB / 0.7542 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/5.41, allocations: 57.61 kB / 0.7543 GB, free: 8.434 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/5.41, allocations: 3.906 kB / 0.7543 GB, free: 8.43 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/5.41, allocations: 0 / 0.7543 GB, free: 8.43 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/5.41, allocations: 4 kB / 0.7543 GB, free: 8.426 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007297/5.411, allocations: 277.3 kB / 0.7546 GB, free: 8.117 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/5.411, allocations: 38.56 kB / 0.7546 GB, free: 8.07 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.018e-05/5.411, allocations: 25.67 kB / 0.7546 GB, free: 8.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/5.411, allocations: 0 / 0.7546 GB, free: 8.043 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001535/5.411, allocations: 71.33 kB / 0.7547 GB, free: 7.961 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/5.411, allocations: 4 kB / 0.7547 GB, free: 7.957 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003417/5.412, allocations: 81.64 kB / 0.7548 GB, free: 7.871 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/5.412, allocations: 55.41 kB / 0.7548 GB, free: 7.805 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/5.412, allocations: 112.9 kB / 0.7549 GB, free: 7.688 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/5.412, allocations: 25.7 kB / 0.755 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.539e-05/5.412, allocations: 80.33 kB / 0.755 GB, free: 7.57 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/5.412, allocations: 15.81 kB / 0.7551 GB, free: 7.555 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-06/5.412, allocations: 0 / 0.7551 GB, free: 7.555 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001397/5.412, allocations: 326.7 kB / 0.7554 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.912e-05/5.412, allocations: 20 kB / 0.7554 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.818e-05/5.412, allocations: 38.56 kB / 0.7554 GB, free: 7.16 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.958e-05/5.413, allocations: 19.94 kB / 0.7554 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/5.413, allocations: 3.938 kB / 0.7554 GB, free: 7.137 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002705/5.413, allocations: 93.64 kB / 0.7555 GB, free: 7.039 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/5.413, allocations: 11.94 kB / 0.7555 GB, free: 7.027 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/5.413, allocations: 4.062 kB / 0.7555 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/5.413, allocations: 0 / 0.7555 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/5.413, allocations: 15.98 kB / 0.7556 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/5.413, allocations: 0 / 0.7556 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/5.413, allocations: 7.938 kB / 0.7556 GB, free: 7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/5.413, allocations: 4 kB / 0.7556 GB, free: 6.996 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.0001147/5.413, allocations: 120.9 kB / 0.7557 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/5.413, allocations: 3.906 kB / 0.7557 GB, free: 6.867 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/5.413, allocations: 12.38 kB / 0.7557 GB, free: 6.855 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/5.413, allocations: 0 / 0.7557 GB, free: 6.855 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/5.413, allocations: 3.938 kB / 0.7557 GB, free: 6.852 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/5.413, allocations: 0 / 0.7557 GB, free: 6.852 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000518/5.414, allocations: 319 kB / 0.756 GB, free: 6.496 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/5.414, allocations: 4 kB / 0.756 GB, free: 6.492 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.413e-05/5.414, allocations: 11.98 kB / 0.756 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/5.414, allocations: 0 / 0.756 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/5.414, allocations: 7.938 kB / 0.756 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/5.414, allocations: 0 / 0.756 GB, free: 6.473 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/5.414, allocations: 3.984 kB / 0.756 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002868/5.414, allocations: 179.4 kB / 0.7562 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004851/5.415, allocations: 0.5521 MB / 0.7568 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/5.415, allocations: 85.02 kB / 0.7568 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/5.415, allocations: 3.984 kB / 0.7568 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/5.415, allocations: 4 kB / 0.7568 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/5.415, allocations: 3.984 kB / 0.7568 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/5.415, allocations: 4 kB / 0.7568 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.747e-05/5.416, allocations: 87.28 kB / 0.7569 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003999/5.42, allocations: 51.98 kB / 0.757 GB, free: 5.453 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.0006163/5.42, allocations: 178.7 kB / 0.7572 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002692/5.421, allocations: 47.98 kB / 0.7572 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/5.421, allocations: 0 / 0.7572 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/5.421, allocations: 36.53 kB / 0.7572 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007561/5.421, allocations: 4 kB / 0.7572 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005122/5.422, allocations: 107.6 kB / 0.7573 GB, free: 5.055 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004048/5.422, allocations: 0.7075 MB / 0.758 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of SimCode: time 1.343e-06/5.422, allocations: 0 / 0.758 GB, free: 4.32 MB / 0.6355 GB