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.001183/0.001183, allocations: 105.4 kB / 15.7 MB, free: 24 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.001226/0.001226, allocations: 195.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.57/1.57, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.839/1.839, 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.002463/0.002463, allocations: 68.05 kB / 0.6718 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2793, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003635/0.283, allocations: 1.546 MB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001646/0.2847, allocations: 0.8082 MB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.214e-05/0.2848, allocations: 0 / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.433e-05/0.2849, allocations: 7.875 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.285, allocations: 23.8 kB / 0.786 GB, free: 10.86 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.0008793/0.2859, allocations: 143.5 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.2861, allocations: 87.77 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.2863, allocations: 15.98 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.2864, allocations: 47.78 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.2866, allocations: 47.77 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.103e-05/0.2866, allocations: 12 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.2868, allocations: 99.84 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.422e-05/0.2869, allocations: 27.89 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.962e-05/0.287, allocations: 39.8 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.2873, allocations: 163.8 kB / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.2874, allocations: 0 / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.825e-06/0.2874, allocations: 0 / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.2874, allocations: 0 / 0.7866 GB, free: 10.19 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.001003/0.2884, allocations: 0.5001 MB / 0.7871 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.2885, allocations: 8.031 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.55e-05/0.2885, allocations: 42.73 kB / 0.7872 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.2886, allocations: 8.844 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.2888, allocations: 184.1 kB / 0.7873 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.2888, allocations: 4.375 kB / 0.7873 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.2888, allocations: 8.359 kB / 0.7874 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.2891, allocations: 85.7 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2891, allocations: 0 / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.2891, allocations: 8 kB / 0.7874 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.2891, allocations: 4 kB / 0.7874 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.2893, allocations: 47.91 kB / 0.7875 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.2899, allocations: 328.7 kB / 0.7878 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.2901, allocations: 86.7 kB / 0.7879 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.2903, allocations: 40.83 kB / 0.7879 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.2903, allocations: 4 kB / 0.7879 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.2906, allocations: 95.34 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.542e-06/0.2906, allocations: 0 / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004761/0.2911, allocations: 181.3 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.2911, allocations: 63.39 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2913, allocations: 141.6 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.2913, allocations: 29.7 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.265e-05/0.2914, allocations: 100.1 kB / 0.7885 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.2914, allocations: 19.72 kB / 0.7885 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.2915, allocations: 33.7 kB / 0.7886 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2916, allocations: 326.8 kB / 0.7889 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.235e-05/0.2917, allocations: 31.97 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.2918, allocations: 73.08 kB / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.292, allocations: 117 kB / 0.7891 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.292, allocations: 0 / 0.7891 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002769/0.2923, allocations: 137.3 kB / 0.7892 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.2924, allocations: 4 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2924, allocations: 0 / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.2924, allocations: 4 kB / 0.7892 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.2926, allocations: 19.98 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.2926, allocations: 8.078 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.2927, allocations: 12 kB / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.2927, allocations: 11.92 kB / 0.7893 GB, free: 7.176 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.0001394/0.2929, allocations: 128.6 kB / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.2929, allocations: 11.81 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/0.2933, allocations: 177.5 kB / 0.7896 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2933, allocations: 0 / 0.7896 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.2934, allocations: 4 kB / 0.7896 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2934, allocations: 4 kB / 0.7896 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007588/0.2941, allocations: 458.3 kB / 0.79 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2942, allocations: 0 / 0.79 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.342e-05/0.2942, allocations: 19.92 kB / 0.79 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2943, allocations: 0 / 0.79 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.2943, allocations: 4 kB / 0.79 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.2943, allocations: 3.938 kB / 0.79 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2943, allocations: 7.938 kB / 0.7901 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.2947, allocations: 247.3 kB / 0.7903 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.2947, allocations: 85.02 kB / 0.7904 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.2947, allocations: 4 kB / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.2949, allocations: 11.92 kB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.212e-05/0.2949, allocations: 15.98 kB / 0.7904 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.295, allocations: 4 kB / 0.7904 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.274e-05/0.2951, allocations: 117.6 kB / 0.7905 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2951, allocations: 3.938 kB / 0.7905 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000389/0.2955, allocations: 40 kB / 0.7906 GB, free: 5.754 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.0008558/0.2963, allocations: 0.8475 MB / 0.7914 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002771/0.2966, allocations: 99.81 kB / 0.7915 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2966, allocations: 0 / 0.7915 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.2968, allocations: 55.98 kB / 0.7915 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.2971, allocations: 20.11 kB / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.299, allocations: 1.675 MB / 0.7932 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.2992, allocations: 0.7078 MB / 0.7939 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.547e-05/0.2993, allocations: 12.55 kB / 0.7939 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-05/0.2994, allocations: 39.36 kB / 0.7939 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of SimCode: time 3.91e-07/0.2994, allocations: 0 / 0.7939 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.3201, allocations: 3.425 MB / 0.7973 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/8.008, allocations: 21.48 kB / 0.7973 GB, free: 14.85 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)