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.001286/0.001286, allocations: 108 kB / 15.61 MB, free: 152 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.001414/0.001414, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.544/1.544, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.749/1.749, allocations: 292.3 MB / 0.5489 GB, free: 13.5 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.002568/0.002568, allocations: 68.11 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3022, allocations: 114.6 MB / 0.7835 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003845/0.3061, allocations: 1.543 MB / 0.785 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001803/0.3079, allocations: 0.8043 MB / 0.7858 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.285e-05/0.308, allocations: 0 / 0.7858 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.3081, allocations: 11.86 kB / 0.7858 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.911e-05/0.3082, allocations: 15.81 kB / 0.7858 GB, free: 11.1 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.000553/0.3088, allocations: 127.6 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.3089, allocations: 107.6 kB / 0.786 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.295e-05/0.309, allocations: 7.984 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.793e-05/0.3091, allocations: 47.8 kB / 0.7861 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.778e-05/0.3092, allocations: 43.81 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.3092, allocations: 8 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.3094, allocations: 99.91 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.3095, allocations: 23.91 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.225e-05/0.3095, allocations: 55.66 kB / 0.7863 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.3098, allocations: 163.8 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3098, allocations: 3.938 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3098, allocations: 0 / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3098, allocations: 0 / 0.7864 GB, free: 10.42 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.0007916/0.3106, allocations: 0.4923 MB / 0.7869 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3106, allocations: 12.03 kB / 0.7869 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.802e-05/0.3107, allocations: 42.73 kB / 0.787 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.3107, allocations: 8.844 kB / 0.787 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.3109, allocations: 180.1 kB / 0.7872 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.311, allocations: 4.359 kB / 0.7872 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.311, allocations: 8.375 kB / 0.7872 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.3112, allocations: 85.7 kB / 0.7873 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3112, allocations: 4 kB / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.3113, allocations: 0 / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3113, allocations: 4 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.3114, allocations: 47.97 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006023/0.312, allocations: 340.6 kB / 0.7876 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.3123, allocations: 86.66 kB / 0.7877 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.837e-05/0.3124, allocations: 40.83 kB / 0.7878 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.3124, allocations: 4 kB / 0.7878 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.3127, allocations: 95.33 kB / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 3.096e-06/0.3127, allocations: 0 / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004234/0.3131, allocations: 185.4 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.3132, allocations: 55.41 kB / 0.7881 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3133, allocations: 144.6 kB / 0.7882 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.3133, allocations: 25.7 kB / 0.7882 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.3134, allocations: 96.12 kB / 0.7883 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.3134, allocations: 27.7 kB / 0.7884 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.617e-05/0.3135, allocations: 33.7 kB / 0.7884 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3136, allocations: 322.8 kB / 0.7887 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.809e-05/0.3137, allocations: 31.97 kB / 0.7887 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.962e-05/0.3138, allocations: 81.02 kB / 0.7888 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.314, allocations: 105.1 kB / 0.7889 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.314, allocations: 0 / 0.7889 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000248/0.3143, allocations: 141.3 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3143, allocations: 11.88 kB / 0.7891 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3143, allocations: 0 / 0.7891 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.3143, allocations: 4 kB / 0.7891 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3145, allocations: 23.91 kB / 0.7891 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3145, allocations: 4 kB / 0.7891 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.854e-05/0.3146, allocations: 12.09 kB / 0.7891 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.3146, allocations: 7.984 kB / 0.7891 GB, free: 7.414 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.000107/0.3147, allocations: 129.3 kB / 0.7892 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.3147, allocations: 11.81 kB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003545/0.3151, allocations: 170.3 kB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3151, allocations: 0 / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3151, allocations: 4 kB / 0.7894 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3151, allocations: 4.141 kB / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006306/0.3158, allocations: 466.3 kB / 0.7899 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3158, allocations: 0 / 0.7899 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.508e-05/0.3159, allocations: 15.98 kB / 0.7899 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3159, allocations: 0 / 0.7899 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.3159, allocations: 8 kB / 0.7899 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.3159, allocations: 7.922 kB / 0.7899 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3159, allocations: 7.984 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003344/0.3163, allocations: 248.1 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-05/0.3163, allocations: 85.02 kB / 0.7902 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.3164, allocations: 4 kB / 0.7902 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.3165, allocations: 15.92 kB / 0.7902 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.3166, allocations: 11.98 kB / 0.7902 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.3166, allocations: 8 kB / 0.7902 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.454e-05/0.3167, allocations: 111.2 kB / 0.7904 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3167, allocations: 0 / 0.7904 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003356/0.317, allocations: 44 kB / 0.7904 GB, free: 5.984 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.0009442/0.318, allocations: 0.8492 MB / 0.7912 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003014/0.3183, allocations: 99.88 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3183, allocations: 0 / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.3184, allocations: 59.92 kB / 0.7914 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.3187, allocations: 28.05 kB / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.3205, allocations: 1.67 MB / 0.793 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.3208, allocations: 0.7041 MB / 0.7937 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.244e-05/0.3208, allocations: 8.828 kB / 0.7937 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.3209, allocations: 35.42 kB / 0.7938 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of SimCode: time 7.32e-07/0.3209, allocations: 0 / 0.7938 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.3422, allocations: 3.411 MB / 0.7971 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.958/8.3, allocations: 16.34 kB / 0.7971 GB, free: 15.09 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)