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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 107.4 kB / 15.34 MB, free: 0.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 192.7 kB / 16.25 MB, free: 6.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.595/1.595, allocations: 292.3 MB / 0.5486 GB, free: 13.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 72.11 kB / 0.6711 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1758, allocations: 114.5 MB / 0.783 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002448/0.1783, allocations: 1.585 MB / 0.7845 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.1794, allocations: 0.7761 MB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.434e-05/0.1795, allocations: 0 / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.282e-05/0.1795, allocations: 3.938 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.1796, allocations: 19.86 kB / 0.7853 GB, free: 11.39 MB / 0.6075 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 NFTyping.typeClassSections: time 0.0004476/0.1801, allocations: 115.8 kB / 0.7854 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.1802, allocations: 99.69 kB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.86e-05/0.1803, allocations: 11.98 kB / 0.7855 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.544e-05/0.1804, allocations: 39.86 kB / 0.7856 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.362e-05/0.1804, allocations: 47.75 kB / 0.7856 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.1805, allocations: 8 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.1806, allocations: 95.91 kB / 0.7857 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.1807, allocations: 27.97 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.949e-05/0.1807, allocations: 43.78 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.181, allocations: 171.7 kB / 0.7859 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.181, allocations: 0 / 0.7859 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.113e-06/0.181, allocations: 0 / 0.7859 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.181, allocations: 0 / 0.7859 GB, free: 10.74 MB / 0.6075 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.0006531/0.1816, allocations: 496.2 kB / 0.7864 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.1817, allocations: 8.031 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1817, allocations: 38.75 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.1818, allocations: 8.844 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1819, allocations: 183 kB / 0.7866 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.1819, allocations: 4.375 kB / 0.7866 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.1819, allocations: 4.375 kB / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001921/0.1821, allocations: 89.7 kB / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1821, allocations: 0 / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.1822, allocations: 0 / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1822, allocations: 0 / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.1823, allocations: 51.97 kB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.1828, allocations: 340.6 kB / 0.7871 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.183, allocations: 78.67 kB / 0.7872 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.733e-05/0.1831, allocations: 40.84 kB / 0.7872 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.1832, allocations: 8 kB / 0.7872 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.1834, allocations: 99.31 kB / 0.7873 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.1834, allocations: 4 kB / 0.7873 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003975/0.1838, allocations: 173.5 kB / 0.7875 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.1838, allocations: 55.41 kB / 0.7875 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.1839, allocations: 138 kB / 0.7877 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.184, allocations: 29.7 kB / 0.7877 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/0.184, allocations: 96.08 kB / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.1841, allocations: 31.62 kB / 0.7878 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.1841, allocations: 33.7 kB / 0.7879 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.1842, allocations: 322.8 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.695e-05/0.1843, allocations: 27.98 kB / 0.7882 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.634e-05/0.1844, allocations: 81.06 kB / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.1846, allocations: 101.1 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1846, allocations: 8 kB / 0.7884 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002355/0.1849, allocations: 133.4 kB / 0.7885 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.1849, allocations: 4 kB / 0.7885 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1849, allocations: 11.92 kB / 0.7885 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1849, allocations: 4 kB / 0.7885 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.185, allocations: 19.92 kB / 0.7885 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.185, allocations: 4 kB / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1851, allocations: 23.92 kB / 0.7886 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.1852, allocations: 8 kB / 0.7886 GB, free: 7.754 MB / 0.6075 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.1853, allocations: 124.6 kB / 0.7887 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.1853, allocations: 7.906 kB / 0.7887 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003283/0.1856, allocations: 166.3 kB / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1856, allocations: 0 / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1856, allocations: 0 / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1856, allocations: 0 / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005576/0.1862, allocations: 458.2 kB / 0.7893 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1862, allocations: 0 / 0.7893 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.1863, allocations: 8 kB / 0.7893 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1863, allocations: 0 / 0.7893 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.1863, allocations: 7.984 kB / 0.7893 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1863, allocations: 3.938 kB / 0.7893 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1863, allocations: 0 / 0.7893 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.1866, allocations: 247.3 kB / 0.7895 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.626e-05/0.1867, allocations: 85.02 kB / 0.7896 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.1867, allocations: 4 kB / 0.7896 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.1869, allocations: 11.92 kB / 0.7896 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.1869, allocations: 11.92 kB / 0.7897 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.1869, allocations: 8 kB / 0.7897 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.797e-05/0.187, allocations: 109.8 kB / 0.7898 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.187, allocations: 0 / 0.7898 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003058/0.1873, allocations: 44 kB / 0.7898 GB, free: 6.379 MB / 0.6075 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007226/0.188, allocations: 0.8292 MB / 0.7906 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002495/0.1883, allocations: 95.89 kB / 0.7907 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1883, allocations: 0 / 0.7907 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.1884, allocations: 59.28 kB / 0.7908 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.1887, allocations: 23.92 kB / 0.7908 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.1903, allocations: 1.665 MB / 0.7924 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.1906, allocations: 0.7002 MB / 0.7931 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.1906, allocations: 8.422 kB / 0.7931 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.724e-05/0.1907, allocations: 35.86 kB / 0.7931 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of SimCode: time 1.543e-06/0.1907, allocations: 0 / 0.7931 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8096/1, allocations: 3.135 MB / 0.7962 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/1.001, allocations: 253.7 kB / 0.7964 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.834, allocations: 0 / 0.7964 GB, free: 15.57 MB / 0.6231 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/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)