Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.421/1.421, allocations: 249.5 MB / 257 MB, free: 6.793 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.0009099/0.0009098, allocations: 176.9 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.0007858/0.0007857, allocations: 80.92 kB / 0.6714 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.83e-05/1.835e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1952, allocations: 106.3 MB / 0.8853 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.701/0.8963, allocations: 134.2 MB / 1.016 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.8966, allocations: 85.12 kB / 1.016 GB, free: 3.164 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.009361/0.906, allocations: 3.216 MB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of FrontEnd: time 3.967e-06/0.906, allocations: 4 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.906, allocations: 0 / 1.02 GB, free: 456 kB / 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.0005777/0.9066, allocations: 490.4 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.9067, allocations: 8.875 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.9067, allocations: 11.91 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.9069, allocations: 182.9 kB / 1.02 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.9069, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.9069, allocations: 7.984 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001091/0.907, allocations: 37.86 kB / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.9072, allocations: 79.83 kB / 1.02 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.9072, allocations: 3.938 kB / 1.02 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.9072, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.9072, allocations: 4 kB / 1.02 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/0.9077, allocations: 302.3 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.9079, allocations: 75.62 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.561e-05/0.9079, allocations: 30.86 kB / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.908, allocations: 0 / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.9081, allocations: 103.9 kB / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.9081, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002743/0.9084, allocations: 121.9 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.9085, allocations: 55.39 kB / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.823e-05/0.9086, allocations: 128.1 kB / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.9086, allocations: 29.39 kB / 1.021 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.9086, allocations: 87.7 kB / 1.021 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.9087, allocations: 34.08 kB / 1.021 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.9087, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.986e-05/0.9088, allocations: 318.4 kB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.157e-05/0.9088, allocations: 25.06 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.258e-05/0.9089, allocations: 58.78 kB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.641e-05/0.909, allocations: 29.48 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.909, allocations: 0 / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001627/0.9091, allocations: 109 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.9092, allocations: 11.94 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.9092, allocations: 0 / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.9092, allocations: 4 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.9093, allocations: 15.98 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.9093, allocations: 7.984 kB / 1.022 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.294e-05/0.9094, allocations: 16 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.9094, allocations: 11.8 kB / 1.022 GB, free: 14.06 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 7.521e-05/0.9095, allocations: 120.8 kB / 1.022 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001934/0.9097, allocations: 125.8 kB / 1.022 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.9097, allocations: 7.906 kB / 1.022 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002489/0.91, allocations: 139.6 kB / 1.022 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.91, allocations: 4.141 kB / 1.022 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.91, allocations: 7.953 kB / 1.022 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.91, allocations: 3.984 kB / 1.022 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000455/0.9105, allocations: 400.6 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.9105, allocations: 0 / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.648e-05/0.9106, allocations: 15.94 kB / 1.023 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.9106, allocations: 0 / 1.023 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.9106, allocations: 11.92 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.9106, allocations: 3.953 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.9106, allocations: 4 kB / 1.023 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.9109, allocations: 220.9 kB / 1.023 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.9109, allocations: 88.95 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.911, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.9111, allocations: 15.98 kB / 1.023 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.9111, allocations: 15.44 kB / 1.023 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.9111, allocations: 11.98 kB / 1.023 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.603e-05/0.9112, allocations: 94.53 kB / 1.023 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9112, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003352/0.9115, allocations: 55.92 kB / 1.023 GB, free: 12.77 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 (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.0007285/0.9123, allocations: 0.826 MB / 1.024 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.9124, allocations: 75.61 kB / 1.024 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.9125, allocations: 0 / 1.024 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.619e-05/0.9125, allocations: 48.73 kB / 1.024 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.9128, allocations: 21.2 kB / 1.024 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005005/0.9133, allocations: 181.6 kB / 1.024 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.9136, allocations: 0.704 MB / 1.025 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.879e-05/0.9136, allocations: 20.69 kB / 1.025 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.539e-05/0.9137, allocations: 32.61 kB / 1.025 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.9137, allocations: 0 / 1.025 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.935, allocations: 2.789 MB / 1.028 GB, free: 8.117 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.9353, allocations: 197.1 kB / 1.028 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.48/2.415, allocations: 0 / 1.028 GB, free: 7.918 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)