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.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.352/4.352, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5742/4.926, allocations: 104.3 MB / 0.5319 GB, free: 12.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/5.17, allocations: 98.72 MB / 0.6283 GB, free: 9.789 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/5.412, allocations: 125.9 MB / 0.7512 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/5.413, allocations: 87.58 kB / 0.7513 GB, free: 11.62 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.01659/5.429, allocations: 3.23 MB / 0.7545 GB, free: 8.328 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/5.43, allocations: 8 kB / 0.7545 GB, free: 8.32 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.381e-05/5.43, allocations: 7.906 kB / 0.7545 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/5.43, allocations: 186.9 kB / 0.7547 GB, free: 8.09 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/5.43, allocations: 3.906 kB / 0.7547 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/5.43, allocations: 4 kB / 0.7547 GB, free: 8.082 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001515/5.43, allocations: 27.98 kB / 0.7547 GB, free: 8.055 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/5.43, allocations: 61.67 kB / 0.7548 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/5.43, allocations: 0 / 0.7548 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/5.43, allocations: 0 / 0.7548 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/5.43, allocations: 7.984 kB / 0.7548 GB, free: 7.98 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009321/5.431, allocations: 301.2 kB / 0.7551 GB, free: 7.648 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/5.431, allocations: 54.58 kB / 0.7551 GB, free: 7.586 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.119e-05/5.432, allocations: 29.56 kB / 0.7551 GB, free: 7.555 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/5.432, allocations: 4 kB / 0.7551 GB, free: 7.551 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/5.432, allocations: 79.42 kB / 0.7552 GB, free: 7.461 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.405e-06/5.432, allocations: 0 / 0.7552 GB, free: 7.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.000427/5.432, allocations: 97.47 kB / 0.7553 GB, free: 7.359 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/5.432, allocations: 55.41 kB / 0.7554 GB, free: 7.293 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/5.432, allocations: 109 kB / 0.7555 GB, free: 7.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/5.432, allocations: 33.64 kB / 0.7555 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/5.433, allocations: 88.38 kB / 0.7556 GB, free: 7.047 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/5.433, allocations: 27.67 kB / 0.7556 GB, free: 7.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/5.433, allocations: 7.938 kB / 0.7556 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001363/5.433, allocations: 322.8 kB / 0.7559 GB, free: 6.688 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/5.433, allocations: 16 kB / 0.7559 GB, free: 6.672 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/5.433, allocations: 53.16 kB / 0.756 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.908e-05/5.433, allocations: 27.98 kB / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/5.433, allocations: 0 / 0.756 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002889/5.433, allocations: 113.3 kB / 0.7561 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/5.433, allocations: 4 kB / 0.7561 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/5.433, allocations: 0 / 0.7561 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/5.433, allocations: 4 kB / 0.7561 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/5.434, allocations: 20.11 kB / 0.7562 GB, free: 6.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/5.434, allocations: 3.938 kB / 0.7562 GB, free: 6.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/5.434, allocations: 15.98 kB / 0.7562 GB, free: 6.41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/5.434, allocations: 4 kB / 0.7562 GB, free: 6.406 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.000131/5.434, allocations: 116.9 kB / 0.7563 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/5.434, allocations: 11.89 kB / 0.7563 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000403/5.435, allocations: 113.9 kB / 0.7564 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/5.435, allocations: 7.938 kB / 0.7564 GB, free: 6.148 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/5.435, allocations: 0 / 0.7564 GB, free: 6.148 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/5.435, allocations: 3.984 kB / 0.7564 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008058/5.435, allocations: 367.2 kB / 0.7568 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/5.435, allocations: 0 / 0.7568 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/5.436, allocations: 15.92 kB / 0.7568 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/5.436, allocations: 7.906 kB / 0.7568 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/5.436, allocations: 0 / 0.7568 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/5.436, allocations: 3.984 kB / 0.7568 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/5.436, allocations: 0 / 0.7568 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003269/5.436, allocations: 199.4 kB / 0.757 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004496/5.436, allocations: 0.5638 MB / 0.7575 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/5.437, allocations: 85.02 kB / 0.7576 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/5.437, allocations: 3.938 kB / 0.7576 GB, free: 4.816 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/5.437, allocations: 19.92 kB / 0.7576 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/5.437, allocations: 16.06 kB / 0.7577 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/5.437, allocations: 4 kB / 0.7577 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.514e-05/5.437, allocations: 96.02 kB / 0.7578 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001329/5.438, allocations: 59.84 kB / 0.7578 GB, free: 4.625 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 (12): * Single equations (assignments): 9 * 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.0005388/5.439, allocations: 177.5 kB / 0.758 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003098/5.439, allocations: 63.94 kB / 0.758 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/5.439, allocations: 0 / 0.758 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/5.439, allocations: 43.92 kB / 0.7581 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/5.44, allocations: 12.75 kB / 0.7581 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005986/5.44, allocations: 131.3 kB / 0.7582 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004153/5.441, allocations: 0.7153 MB / 0.7589 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of SimCode: time 1.022e-06/5.441, allocations: 0 / 0.7589 GB, free: 3.441 MB / 0.6355 GB