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.203/2.203, allocations: 248.5 MB / 261.1 MB, free: 6.043 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.001513/0.001512, allocations: 173.9 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 1.986/1.986, allocations: 205.2 MB / 0.571 GB, free: 11.75 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.00114/0.00114, allocations: 105.9 kB / 0.6754 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.181e-05/5.218e-05, allocations: 4 kB / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.251, allocations: 106.2 MB / 0.8907 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8881/1.139, allocations: 133.8 MB / 1.021 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/1.14, allocations: 81.12 kB / 1.021 GB, free: 1.461 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.01594/1.155, allocations: 3.32 MB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.623e-06/1.156, allocations: 0 / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.406e-06/1.156, allocations: 4 kB / 1.025 GB, free: 14.62 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009267/1.157, allocations: 0.4885 MB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/1.157, allocations: 12.03 kB / 1.025 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/1.157, allocations: 30.56 kB / 1.025 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/1.157, allocations: 19.41 kB / 1.025 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/1.157, allocations: 178.9 kB / 1.025 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/1.157, allocations: 4 kB / 1.025 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/1.157, allocations: 7.125 kB / 1.025 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/1.157, allocations: 81.66 kB / 1.025 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/1.157, allocations: 0 / 1.025 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/1.157, allocations: 3.984 kB / 1.025 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/1.157, allocations: 7.953 kB / 1.025 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/1.157, allocations: 41.09 kB / 1.026 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008238/1.158, allocations: 330.6 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002645/1.159, allocations: 79.05 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/1.159, allocations: 31.61 kB / 1.026 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/1.159, allocations: 4 kB / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/1.159, allocations: 110.6 kB / 1.026 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 2.575e-06/1.159, allocations: 0 / 1.026 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0004093/1.159, allocations: 128.1 kB / 1.026 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/1.16, allocations: 53.66 kB / 1.026 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/1.16, allocations: 129.4 kB / 1.026 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/1.16, allocations: 29.2 kB / 1.026 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.122e-05/1.16, allocations: 95.5 kB / 1.026 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/1.16, allocations: 33.89 kB / 1.026 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/1.16, allocations: 4 kB / 1.026 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.16, allocations: 320.2 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.55e-05/1.16, allocations: 30.86 kB / 1.027 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/1.16, allocations: 66.84 kB / 1.027 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/1.16, allocations: 26.86 kB / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/1.16, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003149/1.161, allocations: 133.7 kB / 1.027 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/1.161, allocations: 4 kB / 1.027 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.161, allocations: 7.938 kB / 1.027 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/1.161, allocations: 0 / 1.027 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/1.161, allocations: 23.92 kB / 1.027 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/1.161, allocations: 3.984 kB / 1.027 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/1.161, allocations: 19.92 kB / 1.027 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/1.161, allocations: 4.094 kB / 1.027 GB, free: 12.08 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.0001019/1.161, allocations: 112.7 kB / 1.027 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.207e-05/1.161, allocations: 15.77 kB / 1.027 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/1.162, allocations: 165.5 kB / 1.027 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/1.162, allocations: 7.969 kB / 1.027 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.162, allocations: 0 / 1.027 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/1.162, allocations: 0 / 1.027 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008628/1.163, allocations: 462.8 kB / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.163, allocations: 0 / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/1.163, allocations: 15.98 kB / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.163, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/1.163, allocations: 4 kB / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/1.163, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.163, allocations: 0 / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00042/1.164, allocations: 244.4 kB / 1.028 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-05/1.164, allocations: 88.97 kB / 1.028 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/1.164, allocations: 3.562 kB / 1.028 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/1.164, allocations: 15.98 kB / 1.028 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/1.164, allocations: 11.17 kB / 1.028 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/1.164, allocations: 7.984 kB / 1.028 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.797e-05/1.164, allocations: 107.6 kB / 1.028 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4e-07/1.164, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000475/1.165, allocations: 54.92 kB / 1.028 GB, free: 10.82 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.001137/1.166, allocations: 0.8449 MB / 1.029 GB, free: 10 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000306/1.166, allocations: 88.66 kB / 1.029 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.166, allocations: 0 / 1.029 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/1.166, allocations: 51.38 kB / 1.029 GB, free: 9.902 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/1.167, allocations: 19.11 kB / 1.029 GB, free: 9.887 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008012/1.167, allocations: 203.6 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/1.168, allocations: 0.7082 MB / 1.03 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.269e-05/1.168, allocations: 8.844 kB / 1.03 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.757e-05/1.168, allocations: 36.61 kB / 1.03 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of SimCode: time 9.72e-07/1.168, allocations: 0 / 1.03 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/1.199, allocations: 3.283 MB / 1.033 GB, free: 5.781 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003528/1.199, allocations: 211.9 kB / 1.034 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.743, allocations: 0 / 1.034 GB, free: 5.551 MB / 0.6511 GB