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.001215/0.001216, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 186.8 kB / 16.62 MB, free: 6.582 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.394/1.394, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.756/1.756, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001589/0.001589, allocations: 66.53 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2242, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002868/0.2271, allocations: 1.537 MB / 0.7851 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.2287, allocations: 0.7887 MB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.689e-05/0.2288, allocations: 3.938 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.2288, allocations: 3.938 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.229, allocations: 23.78 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/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.0007186/0.2297, allocations: 123.6 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.2299, allocations: 99.7 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.23, allocations: 19.97 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.2302, allocations: 39.86 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.395e-05/0.2303, allocations: 47.75 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.2303, allocations: 8 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.2305, allocations: 99.84 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.111e-05/0.2306, allocations: 19.97 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.2306, allocations: 43.8 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.2309, allocations: 167.8 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2309, allocations: 4 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2309, allocations: 3.938 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2309, allocations: 0 / 0.7866 GB, free: 10.2 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.0007507/0.2317, allocations: 496.2 kB / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2317, allocations: 8.031 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.2318, allocations: 34.75 kB / 0.7871 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.2318, allocations: 8.844 kB / 0.7871 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.232, allocations: 184.2 kB / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.232, allocations: 8.375 kB / 0.7873 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.2321, allocations: 4.375 kB / 0.7873 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.2322, allocations: 85.77 kB / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.2323, allocations: 0 / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2323, allocations: 0 / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2323, allocations: 0 / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.2324, allocations: 51.91 kB / 0.7874 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006032/0.2331, allocations: 340.7 kB / 0.7877 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.2333, allocations: 82.61 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.2334, allocations: 40.92 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2334, allocations: 7.938 kB / 0.7879 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.2337, allocations: 99.34 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.2337, allocations: 4 kB / 0.788 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004245/0.2342, allocations: 173.5 kB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.2342, allocations: 59.34 kB / 0.7882 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.2343, allocations: 134 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.2343, allocations: 33.64 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.698e-05/0.2344, allocations: 96.14 kB / 0.7884 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.2344, allocations: 27.64 kB / 0.7885 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.2345, allocations: 33.7 kB / 0.7885 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2346, allocations: 322.8 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.2347, allocations: 27.98 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-05/0.2348, allocations: 79.52 kB / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.235, allocations: 101.1 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.235, allocations: 0 / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002548/0.2353, allocations: 141.4 kB / 0.7891 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2353, allocations: 4 kB / 0.7891 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2353, allocations: 4 kB / 0.7891 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2353, allocations: 0 / 0.7891 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.2354, allocations: 27.86 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2354, allocations: 4 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.725e-05/0.2355, allocations: 19.83 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.2356, allocations: 8 kB / 0.7892 GB, free: 7.223 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 0.0001035/0.2357, allocations: 129.3 kB / 0.7893 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.2357, allocations: 11.89 kB / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.2361, allocations: 161.5 kB / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2361, allocations: 0 / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2361, allocations: 0 / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2361, allocations: 0 / 0.7895 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000582/0.2367, allocations: 466.2 kB / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2367, allocations: 0 / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.668e-05/0.2368, allocations: 8 kB / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2368, allocations: 0 / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.2368, allocations: 7.984 kB / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2368, allocations: 3.938 kB / 0.7899 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2368, allocations: 0 / 0.7899 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.2371, allocations: 243.3 kB / 0.7902 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.2372, allocations: 92.95 kB / 0.7903 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.2372, allocations: 7.938 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.2373, allocations: 7.984 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.2374, allocations: 7.984 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.2374, allocations: 8 kB / 0.7903 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.707e-05/0.2374, allocations: 103.2 kB / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2375, allocations: 0 / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000302/0.2378, allocations: 44 kB / 0.7904 GB, free: 5.844 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.0007688/0.2385, allocations: 0.8361 MB / 0.7912 GB, free: 5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002492/0.2388, allocations: 99.89 kB / 0.7913 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2388, allocations: 0 / 0.7913 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.2389, allocations: 59.91 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.2392, allocations: 22.39 kB / 0.7914 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.2409, allocations: 1.642 MB / 0.793 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.2412, allocations: 0.7041 MB / 0.7937 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.518e-05/0.2412, allocations: 4.438 kB / 0.7937 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.363e-05/0.2413, allocations: 35.86 kB / 0.7938 GB, free: 2.305 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.2413, allocations: 3.938 kB / 0.7938 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.2596, allocations: 3.284 MB / 0.797 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.887, allocations: 9.062 kB / 0.797 GB, free: 15.12 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)