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.Gunay2016Light.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.Gunay2016Light,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.227/4.227, allocations: 433 MB / 440.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5987/4.825, allocations: 104.3 MB / 0.5319 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/5.068, allocations: 98.72 MB / 0.6283 GB, free: 9.73 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2551/5.323, allocations: 126 MB / 0.7513 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003844/5.324, allocations: 87.58 kB / 0.7514 GB, free: 11.52 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.02255/5.346, allocations: 3.356 MB / 0.7547 GB, free: 8.094 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/5.347, allocations: 8 kB / 0.7547 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/5.347, allocations: 11.91 kB / 0.7547 GB, free: 8.074 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/5.347, allocations: 178.9 kB / 0.7548 GB, free: 7.859 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/5.347, allocations: 0 / 0.7548 GB, free: 7.859 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/5.347, allocations: 4 kB / 0.7549 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002841/5.347, allocations: 47.92 kB / 0.7549 GB, free: 7.809 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/5.348, allocations: 65.66 kB / 0.755 GB, free: 7.738 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/5.348, allocations: 0 / 0.755 GB, free: 7.738 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/5.348, allocations: 3.984 kB / 0.755 GB, free: 7.734 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/5.348, allocations: 4 kB / 0.755 GB, free: 7.73 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009642/5.349, allocations: 289.3 kB / 0.7552 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/5.349, allocations: 83.42 kB / 0.7553 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/5.349, allocations: 32.8 kB / 0.7554 GB, free: 7.285 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.112e-05/5.349, allocations: 8.141 kB / 0.7554 GB, free: 7.277 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/5.35, allocations: 91.22 kB / 0.7554 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.727e-06/5.35, allocations: 0 / 0.7554 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0006061/5.35, allocations: 105.5 kB / 0.7555 GB, free: 7.066 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/5.35, allocations: 51.41 kB / 0.7556 GB, free: 7.004 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/5.351, allocations: 125.2 kB / 0.7557 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/5.351, allocations: 29.69 kB / 0.7557 GB, free: 6.836 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/5.351, allocations: 88.05 kB / 0.7558 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/5.351, allocations: 31.64 kB / 0.7559 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/5.351, allocations: 0 / 0.7559 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001874/5.351, allocations: 314.8 kB / 0.7562 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/5.351, allocations: 23.98 kB / 0.7562 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/5.351, allocations: 65.16 kB / 0.7562 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/5.352, allocations: 23.98 kB / 0.7563 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/5.352, allocations: 0 / 0.7563 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004744/5.352, allocations: 121.3 kB / 0.7564 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/5.352, allocations: 4 kB / 0.7564 GB, free: 6.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/5.352, allocations: 8.094 kB / 0.7564 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/5.352, allocations: 0 / 0.7564 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/5.353, allocations: 23.92 kB / 0.7564 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/5.353, allocations: 0 / 0.7564 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/5.353, allocations: 15.98 kB / 0.7564 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/5.353, allocations: 8 kB / 0.7564 GB, free: 6.086 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.0001491/5.353, allocations: 112.9 kB / 0.7565 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/5.353, allocations: 7.906 kB / 0.7566 GB, free: 5.961 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006148/5.354, allocations: 122.1 kB / 0.7567 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/5.354, allocations: 7.984 kB / 0.7567 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/5.354, allocations: 0 / 0.7567 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/5.354, allocations: 144 / 0.7567 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/5.355, allocations: 406.8 kB / 0.7571 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/5.355, allocations: 0 / 0.7571 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/5.355, allocations: 12 kB / 0.7571 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/5.355, allocations: 0 / 0.7571 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/5.355, allocations: 3.984 kB / 0.7571 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/5.355, allocations: 4 kB / 0.7571 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/5.355, allocations: 4 kB / 0.7571 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000532/5.356, allocations: 207.3 kB / 0.7573 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000683/5.357, allocations: 0.5798 MB / 0.7579 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.926e-05/5.357, allocations: 92.86 kB / 0.7579 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/5.357, allocations: 8 kB / 0.758 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/5.357, allocations: 11.98 kB / 0.758 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.998e-05/5.357, allocations: 15.92 kB / 0.758 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/5.357, allocations: 4 kB / 0.758 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001125/5.357, allocations: 95.27 kB / 0.7581 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002136/5.36, allocations: 55.94 kB / 0.7581 GB, free: 4.246 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 (13): * Single equations (assignments): 10 * 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.0006069/5.36, allocations: 170.2 kB / 0.7583 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003891/5.361, allocations: 79.88 kB / 0.7584 GB, free: 4 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/5.361, allocations: 0 / 0.7584 GB, free: 4 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/5.361, allocations: 44.17 kB / 0.7584 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/5.361, allocations: 23.89 kB / 0.7584 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006882/5.362, allocations: 127.3 kB / 0.7585 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/5.363, allocations: 0.727 MB / 0.7593 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of SimCode: time 1.993e-06/5.363, allocations: 0 / 0.7593 GB, free: 3.031 MB / 0.6355 GB