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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.353/2.353, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001581/0.001581, allocations: 180.3 kB / 325.5 MB, free: 2.898 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.37/2.37, allocations: 205.4 MB / 0.5764 GB, free: 21.17 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.001144/0.001144, allocations: 93.7 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004858/0.0004858, allocations: 12.91 kB / 0.795 GB, free: 136 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2143, allocations: 106.3 MB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2337/0.4481, allocations: 133.8 MB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003532/0.4485, allocations: 83.95 kB / 1.03 GB, free: 11.89 MB / 0.6823 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: Performance of FrontEnd - DAE generated: time 0.0161/0.4646, allocations: 3.264 MB / 1.033 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.295e-06/0.4647, allocations: 0 / 1.033 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.764e-05/0.4647, allocations: 4 kB / 1.033 GB, free: 8.609 MB / 0.6823 GB 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.001011/0.4657, allocations: 0.4921 MB / 1.033 GB, free: 8.051 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.4658, allocations: 12.03 kB / 1.033 GB, free: 8.039 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.804e-05/0.4659, allocations: 42.48 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.4659, allocations: 11.86 kB / 1.033 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.4661, allocations: 175 kB / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.4661, allocations: 0 / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.4662, allocations: 8 kB / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.4665, allocations: 81.64 kB / 1.034 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.4665, allocations: 3.984 kB / 1.034 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.4665, allocations: 0 / 1.034 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.4666, allocations: 4 kB / 1.034 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.4668, allocations: 55.91 kB / 1.034 GB, free: 7.609 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008556/0.4677, allocations: 336.6 kB / 1.034 GB, free: 7.23 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.4681, allocations: 86.67 kB / 1.034 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.4681, allocations: 4.078 kB / 1.034 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/0.4685, allocations: 103.3 kB / 1.034 GB, free: 7.02 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.936e-06/0.4685, allocations: 0 / 1.034 GB, free: 7.02 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0008055/0.4693, allocations: 185.7 kB / 1.034 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.4694, allocations: 59.41 kB / 1.034 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.4696, allocations: 126.5 kB / 1.034 GB, free: 6.629 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.4696, allocations: 33.7 kB / 1.035 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.839e-05/0.4697, allocations: 88.14 kB / 1.035 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.583e-05/0.4698, allocations: 35.78 kB / 1.035 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.18e-05/0.4698, allocations: 0 / 1.035 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.47, allocations: 322.8 kB / 1.035 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.4701, allocations: 27.98 kB / 1.035 GB, free: 6.113 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.4703, allocations: 77.08 kB / 1.035 GB, free: 6.02 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.4705, allocations: 37.7 kB / 1.035 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4705, allocations: 0 / 1.035 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000449/0.471, allocations: 145.4 kB / 1.035 GB, free: 5.836 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.471, allocations: 5.875 kB / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.471, allocations: 144 / 1.035 GB, free: 5.832 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.4711, allocations: 4 kB / 1.035 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.4713, allocations: 27.86 kB / 1.035 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.4713, allocations: 4 kB / 1.035 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.4715, allocations: 19.89 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.4715, allocations: 8.094 kB / 1.035 GB, free: 5.77 MB / 0.6823 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 () * Number of clocked 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.0001544/0.4717, allocations: 121.8 kB / 1.035 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.4717, allocations: 11.89 kB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.4723, allocations: 162.3 kB / 1.036 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4724, allocations: 0 / 1.036 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.4724, allocations: 3.953 kB / 1.036 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.4724, allocations: 11.94 kB / 1.036 GB, free: 5.449 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.4734, allocations: 443.9 kB / 1.036 GB, free: 4.961 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.4734, allocations: 4 kB / 1.036 GB, free: 4.957 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.4736, allocations: 8 kB / 1.036 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.4736, allocations: 4 kB / 1.036 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.4736, allocations: 11.94 kB / 1.036 GB, free: 4.934 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.4737, allocations: 0 / 1.036 GB, free: 4.934 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4737, allocations: 0 / 1.036 GB, free: 4.934 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005455/0.4742, allocations: 251.2 kB / 1.036 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.789e-05/0.4743, allocations: 84.95 kB / 1.036 GB, free: 4.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.4744, allocations: 12 kB / 1.036 GB, free: 4.559 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.4746, allocations: 15.94 kB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.654e-05/0.4746, allocations: 11.98 kB / 1.036 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.4747, allocations: 8 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 9.458e-05/0.4748, allocations: 100.5 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.61e-07/0.4748, allocations: 0 / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004994/0.4753, allocations: 55.94 kB / 1.037 GB, free: 4.371 MB / 0.6823 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) * Number of clocked states: 0 () * 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.001313/0.4766, allocations: 0.839 MB / 1.037 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004418/0.4771, allocations: 104.1 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.4771, allocations: 0 / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.4773, allocations: 67.83 kB / 1.038 GB, free: 3.355 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.4777, allocations: 19.94 kB / 1.038 GB, free: 3.336 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.4792, allocations: 1.241 MB / 1.039 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.4796, allocations: 0.7043 MB / 1.039 GB, free: 1.293 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001016/0.4797, allocations: 12.42 kB / 1.039 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.971e-05/0.4798, allocations: 31.42 kB / 1.039 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of SimCode: time 1.202e-06/0.4798, allocations: 0 / 1.039 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.5072, allocations: 3.101 MB / 1.043 GB, free: 14.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003502/0.5077, allocations: 229.4 kB / 1.043 GB, free: 14.06 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/2.961, allocations: 2.672 kB / 1.043 GB, free: 14.06 MB / 0.698 GB