Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_7_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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.292/2.292, allocations: 248.6 MB / 255.9 MB, free: 372 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001879/0.001878, allocations: 182.2 kB / 315.1 MB, free: 7.781 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.337/2.337, allocations: 205.1 MB / 0.5658 GB, free: 25.46 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001841/0.001841, allocations: 91.33 kB / 0.67 GB, free: 2.953 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.318/0.3199, allocations: 112.4 MB / 0.7797 GB, free: 2.48 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5496/0.8695, allocations: 106.2 MB / 0.8835 GB, free: 77.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2498/1.119, allocations: 133 MB / 1.013 GB, free: 8.086 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003676/1.12, allocations: 83.94 kB / 1.013 GB, free: 8.004 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.01766/1.138, allocations: 3.411 MB / 1.017 GB, free: 4.527 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.138, allocations: 8 kB / 1.017 GB, free: 4.52 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/1.138, allocations: 7.906 kB / 1.017 GB, free: 4.512 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/1.138, allocations: 180.7 kB / 1.017 GB, free: 4.297 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/1.138, allocations: 0 / 1.017 GB, free: 4.297 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/1.138, allocations: 4 kB / 1.017 GB, free: 4.293 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001893/1.138, allocations: 35.98 kB / 1.017 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/1.138, allocations: 73.59 kB / 1.017 GB, free: 4.18 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/1.138, allocations: 0 / 1.017 GB, free: 4.18 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/1.138, allocations: 0 / 1.017 GB, free: 4.18 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/1.138, allocations: 4 kB / 1.017 GB, free: 4.176 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007471/1.139, allocations: 297.3 kB / 1.017 GB, free: 3.848 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/1.14, allocations: 74.72 kB / 1.017 GB, free: 3.766 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/1.14, allocations: 32.86 kB / 1.017 GB, free: 3.73 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/1.14, allocations: 3.938 kB / 1.017 GB, free: 3.727 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/1.14, allocations: 99.28 kB / 1.018 GB, free: 3.617 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 2.886e-06/1.14, allocations: 0 / 1.018 GB, free: 3.617 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.0004679/1.14, allocations: 97.52 kB / 1.018 GB, free: 3.516 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/1.14, allocations: 63.39 kB / 1.018 GB, free: 3.441 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/1.141, allocations: 113.3 kB / 1.018 GB, free: 3.32 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/1.141, allocations: 25.7 kB / 1.018 GB, free: 3.289 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/1.141, allocations: 92.05 kB / 1.018 GB, free: 3.195 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/1.141, allocations: 31.8 kB / 1.018 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/1.141, allocations: 0 / 1.018 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001434/1.141, allocations: 318.8 kB / 1.018 GB, free: 2.844 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.142e-05/1.141, allocations: 27.92 kB / 1.018 GB, free: 2.816 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/1.141, allocations: 60.81 kB / 1.018 GB, free: 2.742 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/1.141, allocations: 31.98 kB / 1.018 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.141, allocations: 0 / 1.018 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003515/1.142, allocations: 121.3 kB / 1.018 GB, free: 2.586 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/1.142, allocations: 4 kB / 1.018 GB, free: 2.582 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/1.142, allocations: 0 / 1.018 GB, free: 2.582 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/1.142, allocations: 4 kB / 1.018 GB, free: 2.578 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/1.142, allocations: 15.98 kB / 1.019 GB, free: 2.562 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/1.142, allocations: 8.094 kB / 1.019 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/1.142, allocations: 11.98 kB / 1.019 GB, free: 2.543 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/1.142, allocations: 4 kB / 1.019 GB, free: 2.539 MB / 0.6667 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.pulseStart,booleanPulse.pulseStart) * 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.0001303/1.143, allocations: 120.8 kB / 1.019 GB, free: 2.414 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/1.143, allocations: 11.89 kB / 1.019 GB, free: 2.402 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005011/1.143, allocations: 122.8 kB / 1.019 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/1.143, allocations: 0 / 1.019 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.143, allocations: 0 / 1.019 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/1.143, allocations: 3.938 kB / 1.019 GB, free: 2.277 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008929/1.144, allocations: 405.3 kB / 1.019 GB, free: 1.84 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/1.144, allocations: 0 / 1.019 GB, free: 1.84 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/1.144, allocations: 15.84 kB / 1.019 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/1.144, allocations: 0 / 1.019 GB, free: 1.824 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/1.144, allocations: 7.984 kB / 1.019 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/1.144, allocations: 0 / 1.019 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.144, allocations: 0 / 1.019 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003887/1.145, allocations: 211.4 kB / 1.019 GB, free: 1.594 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006071/1.145, allocations: 0.5766 MB / 1.02 GB, free: 1 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.375e-05/1.145, allocations: 85.02 kB / 1.02 GB, free: 0.8984 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.425e-05/1.146, allocations: 3.906 kB / 1.02 GB, free: 0.8945 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/1.146, allocations: 15.98 kB / 1.02 GB, free: 0.8789 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/1.146, allocations: 15.92 kB / 1.02 GB, free: 0.8633 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/1.146, allocations: 7.938 kB / 1.02 GB, free: 0.8555 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001031/1.146, allocations: 99.27 kB / 1.02 GB, free: 0.7578 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001319/1.147, allocations: 51.94 kB / 1.02 GB, free: 0.707 MB / 0.6667 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.pulseStart) * 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.0005527/1.148, allocations: 176.7 kB / 1.02 GB, free: 0.5352 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003413/1.148, allocations: 78.8 kB / 1.02 GB, free: 472 kB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.148, allocations: 0 / 1.02 GB, free: 472 kB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001482/1.148, allocations: 47.88 kB / 1.021 GB, free: 424 kB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/1.149, allocations: 18.64 kB / 1.021 GB, free: 408 kB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006548/1.15, allocations: 143.4 kB / 1.021 GB, free: 240 kB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004642/1.15, allocations: 0.7191 MB / 1.021 GB, free: 15.49 MB / 0.6823 GB Notification: Performance of SimCode: time 2.574e-06/1.15, allocations: 0 / 1.021 GB, free: 15.49 MB / 0.6823 GB