Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.295/2.295, allocations: 248.7 MB / 256.2 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001668/0.001667, allocations: 180.8 kB / 315.4 MB, free: 3.977 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.226/2.226, allocations: 205.3 MB / 0.5662 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 90.53 kB / 0.6704 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.283e-05, allocations: 0 / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2034, allocations: 106.3 MB / 0.8841 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8558/1.059, allocations: 134 MB / 1.015 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/1.06, allocations: 78.52 kB / 1.015 GB, free: 4.996 MB / 0.6355 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.01604/1.076, allocations: 3.306 MB / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.894e-06/1.076, allocations: 0 / 1.018 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.151e-05/1.076, allocations: 4 kB / 1.018 GB, free: 2.195 MB / 0.6355 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.0008803/1.077, allocations: 498.7 kB / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/1.077, allocations: 12.03 kB / 1.019 GB, free: 1.641 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/1.077, allocations: 11.86 kB / 1.019 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/1.077, allocations: 188.7 kB / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/1.077, allocations: 0 / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/1.077, allocations: 4 kB / 1.019 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001589/1.077, allocations: 37.98 kB / 1.019 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/1.077, allocations: 75.53 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/1.077, allocations: 0 / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/1.077, allocations: 0 / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/1.077, allocations: 3.953 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007469/1.078, allocations: 299.9 kB / 1.019 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/1.078, allocations: 76.41 kB / 1.019 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.228e-05/1.079, allocations: 34.05 kB / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/1.079, allocations: 0 / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/1.079, allocations: 92.7 kB / 1.02 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.044e-06/1.079, allocations: 0 / 1.02 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0004281/1.079, allocations: 129.8 kB / 1.02 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/1.079, allocations: 56.59 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/1.08, allocations: 125.1 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/1.08, allocations: 29.64 kB / 1.02 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.543e-05/1.08, allocations: 101.7 kB / 1.02 GB, free: 412 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/1.08, allocations: 30.48 kB / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/1.08, allocations: 0 / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001412/1.08, allocations: 321.7 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.247e-05/1.08, allocations: 22.05 kB / 1.02 GB, free: 44 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/1.08, allocations: 62.06 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.762e-05/1.08, allocations: 31.39 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.08, allocations: 4 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003028/1.081, allocations: 118.8 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/1.081, allocations: 8 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/1.081, allocations: 0 / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/1.081, allocations: 7.953 kB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/1.081, allocations: 18.05 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/1.081, allocations: 7.938 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/1.081, allocations: 15.92 kB / 1.021 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/1.081, allocations: 4 kB / 1.021 GB, free: 15.79 MB / 0.6511 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.0001129/1.081, allocations: 112.6 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003518/1.082, allocations: 128.2 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/1.082, allocations: 11.86 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004794/1.082, allocations: 153.3 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/1.082, allocations: 4 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.082, allocations: 0 / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/1.082, allocations: 0 / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008559/1.083, allocations: 425.3 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/1.083, allocations: 0 / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/1.083, allocations: 12 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/1.083, allocations: 0 / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/1.083, allocations: 3.984 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/1.083, allocations: 7.984 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/1.083, allocations: 4 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/1.084, allocations: 236.9 kB / 1.022 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/1.084, allocations: 88.97 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/1.084, allocations: 3.984 kB / 1.022 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/1.084, allocations: 8 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.343e-05/1.084, allocations: 18.72 kB / 1.022 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/1.084, allocations: 4 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.523e-05/1.084, allocations: 105.3 kB / 1.022 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.51e-07/1.084, allocations: 0 / 1.022 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000513/1.085, allocations: 55.47 kB / 1.022 GB, free: 14.48 MB / 0.6511 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 (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.001147/1.086, allocations: 0.8379 MB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002825/1.086, allocations: 78.11 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.086, allocations: 0 / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/1.086, allocations: 46.75 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/1.087, allocations: 15.61 kB / 1.023 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008265/1.088, allocations: 200.5 kB / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/1.088, allocations: 0.7041 MB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001066/1.088, allocations: 12.55 kB / 1.024 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.765e-05/1.088, allocations: 30.05 kB / 1.024 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of SimCode: time 9.22e-07/1.088, allocations: 4 kB / 1.024 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03933/1.128, allocations: 2.942 MB / 1.027 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003129/1.128, allocations: 185.1 kB / 1.027 GB, free: 9.453 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.465/3.593, allocations: 0 / 1.027 GB, free: 9.453 MB / 0.6511 GB