Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.293/4.293, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5466/4.84, allocations: 104.3 MB / 0.5319 GB, free: 13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/5.062, allocations: 98.73 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2998/5.362, allocations: 125.9 MB / 0.7512 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004784/5.362, allocations: 87.58 kB / 0.7513 GB, free: 11.68 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.01576/5.378, allocations: 3.234 MB / 0.7544 GB, free: 8.383 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/5.378, allocations: 12 kB / 0.7545 GB, free: 8.371 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.962e-05/5.378, allocations: 7.906 kB / 0.7545 GB, free: 8.363 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/5.378, allocations: 174.9 kB / 0.7546 GB, free: 8.152 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/5.378, allocations: 33.69 kB / 0.7547 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.983e-05/5.378, allocations: 4 kB / 0.7547 GB, free: 8.109 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001611/5.379, allocations: 35.98 kB / 0.7547 GB, free: 8.074 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001636/5.379, allocations: 61.61 kB / 0.7548 GB, free: 8.008 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/5.379, allocations: 4 kB / 0.7548 GB, free: 8.004 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/5.379, allocations: 0 / 0.7548 GB, free: 8.004 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/5.379, allocations: 0 / 0.7548 GB, free: 8.004 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/5.38, allocations: 301.3 kB / 0.7551 GB, free: 7.672 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/5.38, allocations: 50.56 kB / 0.7551 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.884e-05/5.38, allocations: 37.66 kB / 0.7551 GB, free: 7.574 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/5.38, allocations: 3.938 kB / 0.7551 GB, free: 7.57 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/5.38, allocations: 83.28 kB / 0.7552 GB, free: 7.477 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.884e-06/5.38, allocations: 0 / 0.7552 GB, free: 7.477 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.000362/5.381, allocations: 93.52 kB / 0.7553 GB, free: 7.379 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/5.381, allocations: 59.41 kB / 0.7554 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/5.381, allocations: 121.1 kB / 0.7555 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/5.381, allocations: 25.7 kB / 0.7555 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.714e-05/5.381, allocations: 100.2 kB / 0.7556 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/5.381, allocations: 15.95 kB / 0.7556 GB, free: 7.027 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/5.381, allocations: 4 kB / 0.7556 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001445/5.381, allocations: 322.7 kB / 0.7559 GB, free: 6.699 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.381e-05/5.381, allocations: 24 kB / 0.756 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/5.381, allocations: 57.14 kB / 0.756 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/5.381, allocations: 27.92 kB / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/5.381, allocations: 96 / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002805/5.382, allocations: 105.5 kB / 0.7561 GB, free: 6.465 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/5.382, allocations: 4 kB / 0.7561 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/5.382, allocations: 4 kB / 0.7561 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/5.382, allocations: 0 / 0.7561 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/5.382, allocations: 19.92 kB / 0.7562 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/5.382, allocations: 4 kB / 0.7562 GB, free: 6.434 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/5.382, allocations: 28.02 kB / 0.7562 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/5.382, allocations: 7.984 kB / 0.7562 GB, free: 6.398 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,lig.occ,$PRE.occ.pulsStart,occ.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001081/5.382, allocations: 111.5 kB / 0.7563 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.617e-05/5.382, allocations: 7.906 kB / 0.7563 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.938e-05/5.383, allocations: 8.5 kB / 0.7563 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/5.383, allocations: 3.938 kB / 0.7563 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/5.383, allocations: 8 kB / 0.7563 GB, free: 6.254 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/5.383, allocations: 7.906 kB / 0.7563 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007601/5.383, allocations: 366.9 kB / 0.7567 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/5.383, allocations: 0 / 0.7567 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/5.384, allocations: 15.98 kB / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/5.384, allocations: 0 / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/5.384, allocations: 0 / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/5.384, allocations: 0 / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/5.384, allocations: 0 / 0.7567 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003379/5.384, allocations: 199.3 kB / 0.7569 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004921/5.384, allocations: 0.5679 MB / 0.7574 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.364e-05/5.385, allocations: 85 kB / 0.7575 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/5.385, allocations: 0 / 0.7575 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/5.385, allocations: 15.98 kB / 0.7575 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.158e-05/5.385, allocations: 11.89 kB / 0.7576 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/5.385, allocations: 4 kB / 0.7576 GB, free: 4.898 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.361e-05/5.385, allocations: 103.2 kB / 0.7577 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001278/5.386, allocations: 51.98 kB / 0.7577 GB, free: 4.746 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: 8 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulsStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0004951/5.387, allocations: 181.7 kB / 0.7579 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002559/5.387, allocations: 71.86 kB / 0.7579 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/5.387, allocations: 0 / 0.7579 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/5.387, allocations: 32 kB / 0.758 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/5.388, allocations: 11.98 kB / 0.758 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005339/5.388, allocations: 131.4 kB / 0.7581 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/5.389, allocations: 0.7272 MB / 0.7588 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of SimCode: time 7.71e-07/5.389, allocations: 0 / 0.7588 GB, free: 3.551 MB / 0.6355 GB