Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.478/2.478, allocations: 248.7 MB / 256.2 MB, free: 7.047 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.00153/0.00153, allocations: 187.5 kB / 315.4 MB, free: 4.043 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.141/2.141, allocations: 205.3 MB / 0.5662 GB, free: 0.5703 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.001141/0.001141, allocations: 95.61 kB / 0.6704 GB, free: 5.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.249e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2068, allocations: 106.3 MB / 0.8841 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.894/1.101, allocations: 133.9 MB / 1.015 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/1.101, allocations: 82.38 kB / 1.015 GB, free: 5.203 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.01536/1.117, allocations: 3.12 MB / 1.018 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.733e-06/1.117, allocations: 0 / 1.018 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.186e-06/1.117, allocations: 4 kB / 1.018 GB, free: 2.555 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0009646/1.118, allocations: 471.8 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/1.118, allocations: 12.03 kB / 1.018 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.385e-05/1.118, allocations: 11.86 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/1.118, allocations: 171 kB / 1.019 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/1.118, allocations: 41.69 kB / 1.019 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/1.118, allocations: 3.984 kB / 1.019 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001491/1.118, allocations: 34.36 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/1.119, allocations: 58.3 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/1.119, allocations: 0.875 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/1.119, allocations: 3.938 kB / 1.019 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/1.119, allocations: 3.984 kB / 1.019 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008237/1.119, allocations: 311.4 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/1.12, allocations: 51.89 kB / 1.019 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.361e-05/1.12, allocations: 30.47 kB / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/1.12, allocations: 8.891 kB / 1.019 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/1.12, allocations: 88.72 kB / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.056e-06/1.12, allocations: 0 / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0004217/1.12, allocations: 106.1 kB / 1.019 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/1.121, allocations: 63.28 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/1.121, allocations: 120.7 kB / 1.02 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/1.121, allocations: 25.7 kB / 1.02 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.571e-05/1.121, allocations: 96.59 kB / 1.02 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/1.121, allocations: 14.98 kB / 1.02 GB, free: 0.7773 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/1.121, allocations: 8 kB / 1.02 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001507/1.121, allocations: 314.1 kB / 1.02 GB, free: 468 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.412e-05/1.121, allocations: 25.98 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/1.121, allocations: 58.91 kB / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.447e-05/1.121, allocations: 26.92 kB / 1.02 GB, free: 364 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.121, allocations: 0 / 1.02 GB, free: 364 kB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002819/1.122, allocations: 111.5 kB / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/1.122, allocations: 4 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.122, allocations: 5.875 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/1.122, allocations: 0 / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/1.122, allocations: 23.92 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/1.122, allocations: 4.125 kB / 1.02 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/1.122, allocations: 23.88 kB / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/1.122, allocations: 4 kB / 1.02 GB, free: 196 kB / 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,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001156/1.122, allocations: 104.2 kB / 1.02 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000333/1.123, allocations: 113.1 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/1.123, allocations: 7.906 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/1.123, allocations: 9.125 kB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/1.123, allocations: 7.953 kB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/1.123, allocations: 4 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/1.123, allocations: 3.938 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000759/1.124, allocations: 378.1 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/1.124, allocations: 0 / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/1.124, allocations: 15.92 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/1.124, allocations: 5.156 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/1.124, allocations: 7.938 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/1.124, allocations: 4.844 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.124, allocations: 0 / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/1.124, allocations: 202.8 kB / 1.021 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/1.124, allocations: 88.91 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/1.124, allocations: 0 / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/1.125, allocations: 23.94 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.224e-05/1.125, allocations: 15.36 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/1.125, allocations: 0 / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.96e-05/1.125, allocations: 98.39 kB / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.9e-07/1.125, allocations: 0 / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005067/1.125, allocations: 55.86 kB / 1.021 GB, free: 15.06 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.001109/1.127, allocations: 0.8078 MB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002665/1.127, allocations: 67.67 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.127, allocations: 256 / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/1.127, allocations: 38.25 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/1.127, allocations: 15.94 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007763/1.128, allocations: 160.5 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/1.128, allocations: 0.704 MB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.506e-05/1.129, allocations: 12.66 kB / 1.023 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.536e-05/1.129, allocations: 26.8 kB / 1.023 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of SimCode: time 1.152e-06/1.129, allocations: 0 / 1.023 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04033/1.169, allocations: 2.581 MB / 1.026 GB, free: 10.67 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003444/1.169, allocations: 192.7 kB / 1.026 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/3.522, allocations: 0 / 1.026 GB, free: 10.47 MB / 0.6511 GB