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.561/1.561, allocations: 249.3 MB / 261.8 MB, free: 5.938 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.001678/0.001678, allocations: 180.9 kB / 321.3 MB, free: 14.66 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.655/1.655, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.001132/0.001132, allocations: 90.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.262e-05/3.264e-05, allocations: 0 / 0.788 GB, free: 97.05 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2196, allocations: 106.3 MB / 0.8919 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.785/1.005, allocations: 133.9 MB / 1.023 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/1.005, allocations: 85.02 kB / 1.023 GB, free: 0.8281 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.00978/1.015, allocations: 3.242 MB / 1.026 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.452e-06/1.015, allocations: 0 / 1.026 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.015e-05/1.015, allocations: 4 kB / 1.026 GB, free: 14.04 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.0005978/1.015, allocations: 490 kB / 1.026 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/1.015, allocations: 12.03 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/1.015, allocations: 38.44 kB / 1.026 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/1.015, allocations: 7.906 kB / 1.026 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/1.016, allocations: 179 kB / 1.027 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/1.016, allocations: 7.062 kB / 1.027 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/1.016, allocations: 8 kB / 1.027 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/1.016, allocations: 76.47 kB / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/1.016, allocations: 0 / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/1.016, allocations: 0 / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/1.016, allocations: 0 / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/1.016, allocations: 41.86 kB / 1.027 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005305/1.017, allocations: 336.9 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/1.017, allocations: 76.19 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.253e-05/1.017, allocations: 38.03 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/1.017, allocations: 4 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/1.017, allocations: 96.34 kB / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 2.895e-06/1.017, allocations: 0 / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002778/1.017, allocations: 134.5 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/1.017, allocations: 51.41 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/1.017, allocations: 126.8 kB / 1.028 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/1.017, allocations: 25.7 kB / 1.028 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/1.018, allocations: 99.38 kB / 1.028 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/1.018, allocations: 30.61 kB / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/1.018, allocations: 0 / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001176/1.018, allocations: 322.7 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.363e-05/1.018, allocations: 26.62 kB / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.058e-05/1.018, allocations: 65.83 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.809e-05/1.018, allocations: 33.55 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.018, allocations: 0 / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001982/1.018, allocations: 125.2 kB / 1.028 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/1.018, allocations: 8 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/1.018, allocations: 3.938 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/1.018, allocations: 4 kB / 1.028 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/1.018, allocations: 27.45 kB / 1.028 GB, free: 11.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/1.018, allocations: 7.891 kB / 1.028 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/1.018, allocations: 19.89 kB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/1.019, allocations: 4 kB / 1.028 GB, free: 11.53 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 8.752e-05/1.019, allocations: 121 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/1.019, allocations: 7.906 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/1.019, allocations: 152.1 kB / 1.029 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/1.019, allocations: 4 kB / 1.029 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.019, allocations: 0 / 1.029 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.019, allocations: 3.953 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/1.02, allocations: 433 kB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/1.02, allocations: 0 / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.033e-05/1.02, allocations: 23.11 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/1.02, allocations: 0 / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/1.02, allocations: 3.953 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.02, allocations: 4 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/1.02, allocations: 0 / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/1.02, allocations: 241.5 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/1.02, allocations: 81.02 kB / 1.029 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/1.02, allocations: 7.875 kB / 1.029 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/1.02, allocations: 19.94 kB / 1.029 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/1.02, allocations: 7.984 kB / 1.029 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/1.02, allocations: 11.81 kB / 1.029 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.917e-05/1.02, allocations: 97.77 kB / 1.029 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.02, allocations: 0 / 1.029 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003159/1.021, allocations: 63.25 kB / 1.03 GB, free: 10.31 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.0007557/1.021, allocations: 0.8305 MB / 1.03 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000181/1.022, allocations: 81.67 kB / 1.03 GB, free: 9.438 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.022, allocations: 3.938 kB / 1.03 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.63e-05/1.022, allocations: 54.75 kB / 1.03 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/1.022, allocations: 17.75 kB / 1.031 GB, free: 9.383 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005028/1.022, allocations: 192.4 kB / 1.031 GB, free: 9.184 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/1.023, allocations: 0.7081 MB / 1.031 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.179e-05/1.023, allocations: 12.42 kB / 1.031 GB, free: 8.438 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/1.023, allocations: 32.92 kB / 1.031 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of SimCode: time 3.61e-07/1.023, allocations: 0 / 1.031 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/1.037, allocations: 3.138 MB / 1.034 GB, free: 5.395 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/1.037, allocations: 217.6 kB / 1.035 GB, free: 5.164 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/2.666, allocations: 0 / 1.035 GB, free: 5.164 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)