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.001335/0.001335, allocations: 108 kB / 15.6 MB, free: 132 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.00158/0.00158, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.582/1.582, allocations: 205.1 MB / 222.4 MB, free: 4.434 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.79/1.79, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001767/0.001768, allocations: 64.17 kB / 0.6716 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2253, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002788/0.2281, allocations: 1.53 MB / 0.785 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2296, allocations: 0.7848 MB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.842e-05/0.2296, allocations: 0 / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.592e-05/0.2297, allocations: 11.92 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.298e-05/0.2298, allocations: 19.8 kB / 0.7858 GB, free: 11.03 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.0005555/0.2304, allocations: 131.6 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.2305, allocations: 99.7 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.914e-05/0.2306, allocations: 11.94 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.407e-05/0.2307, allocations: 55.83 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.2308, allocations: 43.77 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.2308, allocations: 8 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.231, allocations: 99.84 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.231, allocations: 19.97 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.2311, allocations: 39.8 kB / 0.7863 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.2313, allocations: 159.8 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2313, allocations: 4 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.635e-06/0.2313, allocations: 4 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.2314, allocations: 0 / 0.7864 GB, free: 10.36 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.0007779/0.2321, allocations: 496.2 kB / 0.7869 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2322, allocations: 12.03 kB / 0.7869 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.554e-05/0.2322, allocations: 30.75 kB / 0.7869 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.2323, allocations: 8.844 kB / 0.7869 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.2324, allocations: 188.1 kB / 0.7871 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.2324, allocations: 4.375 kB / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.2325, allocations: 4.375 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.2327, allocations: 89.77 kB / 0.7872 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2327, allocations: 0 / 0.7872 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2327, allocations: 0 / 0.7872 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2327, allocations: 0 / 0.7872 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.2329, allocations: 55.89 kB / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.2335, allocations: 332.7 kB / 0.7876 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.2337, allocations: 86.7 kB / 0.7877 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.766e-05/0.2338, allocations: 40.84 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.2338, allocations: 0 / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.2341, allocations: 107.3 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 2.976e-06/0.2341, allocations: 4 kB / 0.7878 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004115/0.2345, allocations: 173.5 kB / 0.788 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.2346, allocations: 55.41 kB / 0.788 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.2347, allocations: 134 kB / 0.7882 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.2348, allocations: 33.7 kB / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.2348, allocations: 96.06 kB / 0.7883 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.2349, allocations: 23.66 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.269e-05/0.2349, allocations: 33.7 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2351, allocations: 334.7 kB / 0.7886 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.593e-05/0.2352, allocations: 27.98 kB / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2353, allocations: 72.36 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.2355, allocations: 113 kB / 0.7889 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2355, allocations: 0 / 0.7889 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002321/0.2357, allocations: 129.4 kB / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2357, allocations: 8 kB / 0.789 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2357, allocations: 0 / 0.789 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.2358, allocations: 8.031 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.2359, allocations: 19.98 kB / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.2359, allocations: 3.984 kB / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.236, allocations: 15.84 kB / 0.789 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.236, allocations: 8 kB / 0.789 GB, free: 7.387 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.0001029/0.2361, allocations: 132.5 kB / 0.7892 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.2361, allocations: 7.906 kB / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003349/0.2365, allocations: 158.3 kB / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2365, allocations: 4 kB / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2365, allocations: 4 kB / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2365, allocations: 0 / 0.7893 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.2371, allocations: 458.2 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2372, allocations: 0 / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.07e-05/0.2372, allocations: 11.98 kB / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2373, allocations: 8 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2373, allocations: 0 / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2373, allocations: 7.875 kB / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2373, allocations: 0 / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.2376, allocations: 240.3 kB / 0.79 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.2377, allocations: 85.02 kB / 0.7901 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2377, allocations: 0 / 0.7901 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.2378, allocations: 19.92 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.2379, allocations: 15.92 kB / 0.7901 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.2379, allocations: 12.12 kB / 0.7901 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.762e-05/0.238, allocations: 95.27 kB / 0.7902 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.238, allocations: 0 / 0.7902 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003039/0.2383, allocations: 40 kB / 0.7903 GB, free: 6.008 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.0008611/0.2391, allocations: 0.8421 MB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.2394, allocations: 103.8 kB / 0.7912 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2394, allocations: 0 / 0.7912 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.2396, allocations: 52.17 kB / 0.7912 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.2399, allocations: 19.92 kB / 0.7913 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.2419, allocations: 1.643 MB / 0.7929 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.2424, allocations: 0.6924 MB / 0.7935 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.736e-05/0.2424, allocations: 12.42 kB / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.2425, allocations: 31.42 kB / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of SimCode: time 4.369e-06/0.2425, allocations: 0 / 0.7936 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.2621, allocations: 3.277 MB / 0.7968 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.028, allocations: 7.812 kB / 0.7968 GB, free: 15.29 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1)