Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.791/1.791, allocations: 289.9 MB / 297.4 MB, free: 6.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001082, allocations: 168.9 kB / 366.7 MB, free: 1.652 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.2 MB / 0.626 GB, free: 7.152 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009599/0.0009598, allocations: 94.34 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.882e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7585/0.7585, allocations: 116.3 MB / 0.9733 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2071/0.9657, allocations: 140.5 MB / 1.111 GB, free: 9.574 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.9659, allocations: 80.86 kB / 1.111 GB, free: 9.496 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.01012/0.9761, allocations: 3.214 MB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.062e-06/0.9761, allocations: 0.8438 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.9761, allocations: 4 kB / 1.114 GB, free: 6.316 MB / 0.7136 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.0006571/0.9768, allocations: 494.1 kB / 1.114 GB, free: 5.773 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.9768, allocations: 8.031 kB / 1.114 GB, free: 5.766 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.9769, allocations: 7.906 kB / 1.114 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.9771, allocations: 190 kB / 1.114 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.9771, allocations: 4 kB / 1.114 GB, free: 5.531 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.9771, allocations: 4 kB / 1.114 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001085/0.9772, allocations: 37.89 kB / 1.115 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.9773, allocations: 69.66 kB / 1.115 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.9774, allocations: 3.938 kB / 1.115 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.9774, allocations: 0 / 1.115 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.9774, allocations: 0 / 1.115 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.9779, allocations: 300.3 kB / 1.115 GB, free: 5.086 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.9781, allocations: 75.56 kB / 1.115 GB, free: 5.004 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.533e-05/0.9782, allocations: 32.86 kB / 1.115 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.9782, allocations: 11.44 kB / 1.115 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.9784, allocations: 92.11 kB / 1.115 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 2.976e-06/0.9784, allocations: 3.984 kB / 1.115 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002983/0.9787, allocations: 129.1 kB / 1.115 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.9787, allocations: 51.41 kB / 1.115 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.497e-05/0.9788, allocations: 124.8 kB / 1.115 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.9789, allocations: 25.7 kB / 1.115 GB, free: 4.504 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.438e-05/0.9789, allocations: 96.12 kB / 1.115 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.979, allocations: 23.66 kB / 1.116 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-06/0.979, allocations: 0 / 1.116 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.9791, allocations: 322.8 kB / 1.116 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.484e-05/0.9791, allocations: 24 kB / 1.116 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.172e-05/0.9792, allocations: 70.34 kB / 1.116 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.595e-05/0.9793, allocations: 26.98 kB / 1.116 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.9793, allocations: 3.938 kB / 1.116 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001747/0.9795, allocations: 117.4 kB / 1.116 GB, free: 3.801 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.9795, allocations: 12 kB / 1.116 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.9795, allocations: 0 / 1.116 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.9795, allocations: 4 kB / 1.116 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.9797, allocations: 15.98 kB / 1.116 GB, free: 3.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.9797, allocations: 1.25 kB / 1.116 GB, free: 3.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.911e-05/0.9798, allocations: 18.42 kB / 1.116 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.9798, allocations: 4 kB / 1.116 GB, free: 3.75 MB / 0.7136 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 9.248e-05/0.9799, allocations: 124.8 kB / 1.116 GB, free: 3.621 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002138/0.9801, allocations: 121.6 kB / 1.116 GB, free: 3.496 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.9801, allocations: 7.906 kB / 1.116 GB, free: 3.488 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.9804, allocations: 134.2 kB / 1.116 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.9804, allocations: 0 / 1.116 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9804, allocations: 4 kB / 1.116 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.9805, allocations: 7.938 kB / 1.116 GB, free: 3.34 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005529/0.981, allocations: 412.4 kB / 1.117 GB, free: 2.895 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.981, allocations: 0 / 1.117 GB, free: 2.895 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.09e-05/0.9811, allocations: 19.92 kB / 1.117 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.9811, allocations: 0 / 1.117 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.9811, allocations: 0 / 1.117 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.9812, allocations: 0 / 1.117 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.279e-06/0.9812, allocations: 3.953 kB / 1.117 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.9814, allocations: 229.8 kB / 1.117 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.9815, allocations: 85.02 kB / 1.117 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.9815, allocations: 3.984 kB / 1.117 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.9816, allocations: 8 kB / 1.117 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.9817, allocations: 18.81 kB / 1.117 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.9817, allocations: 4 kB / 1.117 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.155e-05/0.9818, allocations: 100.4 kB / 1.117 GB, free: 2.402 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9818, allocations: 4 kB / 1.117 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003233/0.9821, allocations: 58.97 kB / 1.117 GB, free: 2.344 MB / 0.7136 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.0007854/0.9829, allocations: 0.8237 MB / 1.118 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001559/0.9831, allocations: 67.94 kB / 1.118 GB, free: 1.441 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.9831, allocations: 0 / 1.118 GB, free: 1.441 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.559e-05/0.9832, allocations: 47.92 kB / 1.118 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.9834, allocations: 11.98 kB / 1.118 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000512/0.9839, allocations: 195.4 kB / 1.119 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.9842, allocations: 0.7002 MB / 1.119 GB, free: 432 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.096e-05/0.9843, allocations: 13.17 kB / 1.119 GB, free: 420 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.897e-05/0.9843, allocations: 27.42 kB / 1.119 GB, free: 392 kB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/0.9843, allocations: 0 / 1.119 GB, free: 392 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/1.007, allocations: 2.801 MB / 1.122 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/1.007, allocations: 178.2 kB / 1.122 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.783, allocations: 0 / 1.122 GB, free: 13.46 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)