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.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.317/4.317, allocations: 433 MB / 440.3 MB, free: 4.793 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5452/4.862, allocations: 104.3 MB / 0.5319 GB, free: 13.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/5.125, allocations: 98.72 MB / 0.6283 GB, free: 9.781 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2514/5.376, allocations: 126 MB / 0.7513 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003362/5.377, allocations: 83.59 kB / 0.7514 GB, free: 11.51 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01627/5.393, allocations: 3.448 MB / 0.7548 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/5.393, allocations: 8 kB / 0.7548 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.434e-05/5.393, allocations: 7.906 kB / 0.7548 GB, free: 7.98 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002365/5.393, allocations: 178.9 kB / 0.755 GB, free: 7.766 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/5.393, allocations: 4 kB / 0.755 GB, free: 7.762 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/5.393, allocations: 4 kB / 0.755 GB, free: 7.758 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001742/5.393, allocations: 39.89 kB / 0.755 GB, free: 7.719 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/5.394, allocations: 77.58 kB / 0.7551 GB, free: 7.637 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/5.394, allocations: 3.938 kB / 0.7551 GB, free: 7.633 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/5.394, allocations: 4 kB / 0.7551 GB, free: 7.629 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/5.394, allocations: 4 kB / 0.7551 GB, free: 7.625 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006724/5.394, allocations: 285.3 kB / 0.7554 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/5.395, allocations: 79.39 kB / 0.7555 GB, free: 7.223 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/5.395, allocations: 28.86 kB / 0.7555 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/5.395, allocations: 8.141 kB / 0.7555 GB, free: 7.184 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/5.395, allocations: 91.28 kB / 0.7556 GB, free: 7.082 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.878e-06/5.395, allocations: 0 / 0.7556 GB, free: 7.082 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000434/5.396, allocations: 109.5 kB / 0.7557 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/5.396, allocations: 51.41 kB / 0.7557 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/5.396, allocations: 136.7 kB / 0.7559 GB, free: 6.77 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/5.396, allocations: 29.7 kB / 0.7559 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/5.396, allocations: 88.12 kB / 0.756 GB, free: 6.645 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/5.396, allocations: 23.62 kB / 0.756 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/5.396, allocations: 0 / 0.756 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001471/5.396, allocations: 322.8 kB / 0.7563 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.309e-05/5.396, allocations: 23.98 kB / 0.7563 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/5.396, allocations: 68.97 kB / 0.7564 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/5.396, allocations: 27.98 kB / 0.7564 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/5.396, allocations: 0 / 0.7564 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003025/5.397, allocations: 113.6 kB / 0.7565 GB, free: 6.043 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/5.397, allocations: 19.88 kB / 0.7565 GB, free: 6.023 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/5.397, allocations: 4 kB / 0.7566 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/5.397, allocations: 4 kB / 0.7566 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/5.397, allocations: 15.98 kB / 0.7566 GB, free: 6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/5.397, allocations: 4 kB / 0.7566 GB, free: 5.996 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/5.397, allocations: 11.98 kB / 0.7566 GB, free: 5.984 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/5.397, allocations: 8 kB / 0.7566 GB, free: 5.977 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,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001134/5.397, allocations: 117.4 kB / 0.7567 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/5.397, allocations: 7.906 kB / 0.7567 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/5.398, allocations: 130.1 kB / 0.7568 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/5.398, allocations: 4 kB / 0.7568 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/5.398, allocations: 0 / 0.7568 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/5.398, allocations: 0 / 0.7568 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000861/5.399, allocations: 410.8 kB / 0.7572 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/5.399, allocations: 0 / 0.7572 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/5.399, allocations: 15.94 kB / 0.7572 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/5.399, allocations: 0 / 0.7572 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/5.399, allocations: 7.984 kB / 0.7573 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/5.399, allocations: 4 kB / 0.7573 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/5.399, allocations: 4 kB / 0.7573 GB, free: 5.23 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003877/5.4, allocations: 216.9 kB / 0.7575 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005357/5.4, allocations: 0.5857 MB / 0.758 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/5.4, allocations: 85.02 kB / 0.7581 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/5.4, allocations: 4 kB / 0.7581 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/5.4, allocations: 11.98 kB / 0.7581 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/5.401, allocations: 11.89 kB / 0.7581 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/5.401, allocations: 11.98 kB / 0.7582 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001021/5.401, allocations: 99.28 kB / 0.7583 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001434/5.402, allocations: 59.86 kB / 0.7583 GB, free: 4.102 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulsStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0008337/5.403, allocations: 173.1 kB / 0.7585 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0008813/5.404, allocations: 75.92 kB / 0.7585 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/5.404, allocations: 0 / 0.7585 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003557/5.404, allocations: 56.11 kB / 0.7586 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/5.405, allocations: 15.88 kB / 0.7586 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006675/5.406, allocations: 143.2 kB / 0.7588 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000408/5.406, allocations: 0.7231 MB / 0.7595 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of SimCode: time 1.263e-06/5.406, allocations: 0 / 0.7595 GB, free: 2.875 MB / 0.6355 GB