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.317/2.317, allocations: 248.5 MB / 261.1 MB, free: 5.98 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.001613/0.001612, allocations: 180.1 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.1 MB / 0.571 GB, free: 11.83 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.001091/0.001091, allocations: 95.42 kB / 0.6754 GB, free: 0.9219 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.746e-05/4.758e-05, allocations: 4 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2174, allocations: 106.2 MB / 0.8907 GB, free: 7.48 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8713/1.089, allocations: 133.7 MB / 1.021 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/1.089, allocations: 84.62 kB / 1.021 GB, free: 1.582 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.01533/1.105, allocations: 3.137 MB / 1.024 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.933e-06/1.105, allocations: 0 / 1.024 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.045e-06/1.105, allocations: 4 kB / 1.024 GB, free: 14.89 MB / 0.6511 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.0009548/1.106, allocations: 469.3 kB / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/1.106, allocations: 8.031 kB / 1.025 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.52e-05/1.106, allocations: 41.8 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/1.106, allocations: 15.86 kB / 1.025 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/1.106, allocations: 167.6 kB / 1.025 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/1.106, allocations: 41.31 kB / 1.025 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/1.106, allocations: 7.938 kB / 1.025 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/1.106, allocations: 67.42 kB / 1.025 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/1.106, allocations: 0.875 kB / 1.025 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/1.106, allocations: 0 / 1.025 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/1.106, allocations: 3.938 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/1.107, allocations: 43.05 kB / 1.025 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008845/1.107, allocations: 339.5 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/1.108, allocations: 59.78 kB / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.332e-05/1.108, allocations: 31.28 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/1.108, allocations: 4 kB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/1.108, allocations: 86.81 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 3.497e-06/1.108, allocations: 0 / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0003889/1.109, allocations: 113.2 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/1.109, allocations: 63.08 kB / 1.026 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/1.109, allocations: 119 kB / 1.026 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/1.109, allocations: 28.58 kB / 1.026 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/1.109, allocations: 95.16 kB / 1.026 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/1.109, allocations: 28.81 kB / 1.026 GB, free: 13 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.889e-06/1.109, allocations: 0 / 1.026 GB, free: 13 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001533/1.109, allocations: 321.5 kB / 1.026 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/1.109, allocations: 23.3 kB / 1.026 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/1.109, allocations: 57.97 kB / 1.026 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/1.11, allocations: 33.92 kB / 1.027 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.11, allocations: 0 / 1.027 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003239/1.11, allocations: 124.1 kB / 1.027 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/1.11, allocations: 4.094 kB / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/1.11, allocations: 4.562 kB / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/1.11, allocations: 7.953 kB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/1.11, allocations: 24.05 kB / 1.027 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/1.11, allocations: 4 kB / 1.027 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/1.11, allocations: 19.11 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/1.11, allocations: 8 kB / 1.027 GB, free: 12.4 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,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.0001221/1.111, allocations: 115.6 kB / 1.027 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/1.111, allocations: 7.906 kB / 1.027 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/1.111, allocations: 16.19 kB / 1.027 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.111, allocations: 3.953 kB / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.111, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.111, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008011/1.112, allocations: 410.4 kB / 1.027 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/1.112, allocations: 0 / 1.027 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/1.112, allocations: 15.98 kB / 1.027 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/1.112, allocations: 3.953 kB / 1.027 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/1.112, allocations: 7.359 kB / 1.027 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/1.112, allocations: 4 kB / 1.027 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.112, allocations: 0 / 1.027 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/1.112, allocations: 208.9 kB / 1.027 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/1.112, allocations: 81.11 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/1.112, allocations: 11.94 kB / 1.028 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/1.113, allocations: 15.98 kB / 1.028 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/1.113, allocations: 10.36 kB / 1.028 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/1.113, allocations: 7.984 kB / 1.028 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001068/1.113, allocations: 99.2 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.01e-07/1.113, allocations: 0 / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004756/1.113, allocations: 63.33 kB / 1.028 GB, free: 11.33 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.001116/1.114, allocations: 0.8064 MB / 1.029 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002869/1.115, allocations: 73.42 kB / 1.029 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.115, allocations: 256 / 1.029 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/1.115, allocations: 47.23 kB / 1.029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/1.115, allocations: 11.05 kB / 1.029 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007797/1.116, allocations: 179.8 kB / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/1.116, allocations: 0.7004 MB / 1.03 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001021/1.117, allocations: 8.672 kB / 1.03 GB, free: 9.508 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.048e-05/1.117, allocations: 33.36 kB / 1.03 GB, free: 9.488 MB / 0.6511 GB Notification: Performance of SimCode: time 8.62e-07/1.117, allocations: 0 / 1.03 GB, free: 9.488 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/1.14, allocations: 2.931 MB / 1.032 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000329/1.14, allocations: 204.2 kB / 1.033 GB, free: 6.465 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/3.573, allocations: 0 / 1.033 GB, free: 6.465 MB / 0.6511 GB