Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.001046/0.001046, allocations: 105.4 kB / 15.7 MB, free: 28 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.001197/0.001197, allocations: 194.2 kB / 16.64 MB, free: 6.453 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.722/1.722, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001439/0.001439, allocations: 67.09 kB / 0.6718 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2813, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003106/0.2845, allocations: 1.545 MB / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.286, allocations: 0.8082 MB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.762e-05/0.286, allocations: 0 / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.068e-05/0.2861, allocations: 7.875 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.383e-05/0.2862, allocations: 19.73 kB / 0.786 GB, free: 10.85 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.000612/0.2868, allocations: 135.6 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.287, allocations: 99.69 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.638e-05/0.2871, allocations: 8 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2872, allocations: 43.84 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.557e-05/0.2873, allocations: 55.69 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.2873, allocations: 8 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.2875, allocations: 99.91 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.08e-05/0.2876, allocations: 27.91 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.692e-05/0.2876, allocations: 43.77 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.2879, allocations: 167.8 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2879, allocations: 0 / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2879, allocations: 0 / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2879, allocations: 0 / 0.7866 GB, free: 10.17 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.0008338/0.2888, allocations: 0.4962 MB / 0.7871 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2888, allocations: 12.03 kB / 0.7871 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.819e-05/0.2889, allocations: 42.73 kB / 0.7872 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.2889, allocations: 8.844 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.2891, allocations: 180.1 kB / 0.7873 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.2891, allocations: 384 / 0.7873 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.2891, allocations: 12.31 kB / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.2893, allocations: 89.69 kB / 0.7874 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.2893, allocations: 0 / 0.7874 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.2894, allocations: 0 / 0.7874 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2894, allocations: 3.938 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.2895, allocations: 51.97 kB / 0.7875 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.2901, allocations: 340.6 kB / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.2904, allocations: 78.67 kB / 0.7879 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.017e-05/0.2905, allocations: 40.84 kB / 0.7879 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.2905, allocations: 0 / 0.7879 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.2908, allocations: 103.4 kB / 0.788 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.402e-06/0.2908, allocations: 0 / 0.788 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004372/0.2912, allocations: 181.4 kB / 0.7882 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.2913, allocations: 51.41 kB / 0.7882 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2914, allocations: 153.6 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.2914, allocations: 25.7 kB / 0.7884 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.626e-05/0.2915, allocations: 96.14 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.2915, allocations: 27.69 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.277e-05/0.2916, allocations: 29.7 kB / 0.7886 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2917, allocations: 326.8 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.94e-05/0.2918, allocations: 27.98 kB / 0.7889 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.2919, allocations: 85 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.2921, allocations: 101.1 kB / 0.7891 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2922, allocations: 4 kB / 0.7891 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002578/0.2924, allocations: 141.3 kB / 0.7892 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2925, allocations: 8 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2925, allocations: 0 / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2925, allocations: 4 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.2926, allocations: 19.92 kB / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2926, allocations: 0 / 0.7892 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.931e-05/0.2927, allocations: 15.98 kB / 0.7893 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.2927, allocations: 8.094 kB / 0.7893 GB, free: 7.164 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.0001068/0.2929, allocations: 132.8 kB / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.21e-05/0.2929, allocations: 11.81 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.2933, allocations: 170.3 kB / 0.7896 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2933, allocations: 0 / 0.7896 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.2933, allocations: 7.938 kB / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2933, allocations: 0 / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006114/0.2939, allocations: 470.3 kB / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2939, allocations: 0 / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.101e-05/0.294, allocations: 15.98 kB / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.294, allocations: 0 / 0.79 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.294, allocations: 4 kB / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.2941, allocations: 11.88 kB / 0.7901 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2941, allocations: 0 / 0.7901 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.2944, allocations: 247.2 kB / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/0.2945, allocations: 89 kB / 0.7904 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.2945, allocations: 4 kB / 0.7904 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.2946, allocations: 11.94 kB / 0.7904 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.2947, allocations: 11.97 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.2947, allocations: 4 kB / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.289e-05/0.2948, allocations: 114.1 kB / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2948, allocations: 4 kB / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003385/0.2951, allocations: 47.98 kB / 0.7906 GB, free: 5.73 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 (14): * Single equations (assignments): 11 * 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.0009343/0.2961, allocations: 0.8497 MB / 0.7914 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003038/0.2964, allocations: 91.89 kB / 0.7915 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2964, allocations: 3.938 kB / 0.7915 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.2965, allocations: 55.91 kB / 0.7915 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.2969, allocations: 23.92 kB / 0.7916 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.299, allocations: 1.672 MB / 0.7932 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.2993, allocations: 0.7001 MB / 0.7939 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.004e-05/0.2994, allocations: 16.48 kB / 0.7939 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.013e-05/0.2994, allocations: 35.42 kB / 0.7939 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.2994, allocations: 4 kB / 0.7939 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.3237, allocations: 3.424 MB / 0.7973 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/7.969, allocations: 9.75 kB / 0.7973 GB, free: 14.84 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)