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.001037/0.001037, 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.001068/0.001068, allocations: 193 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.424/1.424, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.661/1.661, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.001353/0.001354, allocations: 71.61 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2287, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003304/0.232, allocations: 1.538 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.2336, allocations: 0.8082 MB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.898e-05/0.2337, allocations: 3.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.2337, allocations: 3.938 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.2339, allocations: 23.73 kB / 0.7858 GB, free: 10.98 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.0007602/0.2347, allocations: 135.6 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.2348, allocations: 103.6 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.235, allocations: 8 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2351, allocations: 47.78 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.2352, allocations: 43.81 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.2352, allocations: 8 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.2354, allocations: 95.91 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.347e-05/0.2355, allocations: 23.92 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.329e-05/0.2355, allocations: 43.73 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.2359, allocations: 167.8 kB / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2359, allocations: 0 / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.725e-06/0.2359, allocations: 0 / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.2359, allocations: 3.938 kB / 0.7864 GB, free: 10.31 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.0009046/0.2368, allocations: 0.5001 MB / 0.7869 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2369, allocations: 16.03 kB / 0.7869 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.589e-05/0.2369, allocations: 30.75 kB / 0.787 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.237, allocations: 8.844 kB / 0.787 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.2372, allocations: 191 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.2372, allocations: 4.375 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.2372, allocations: 4.375 kB / 0.7872 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.2374, allocations: 85.7 kB / 0.7873 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2375, allocations: 0 / 0.7873 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.2375, allocations: 0 / 0.7873 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2375, allocations: 4 kB / 0.7873 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.2376, allocations: 51.95 kB / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006292/0.2383, allocations: 336.6 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.2385, allocations: 82.66 kB / 0.7877 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.2386, allocations: 48.78 kB / 0.7878 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.2387, allocations: 0 / 0.7878 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.239, allocations: 103.4 kB / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.239, allocations: 0 / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004415/0.2394, allocations: 181.3 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.2395, allocations: 59.41 kB / 0.7881 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.2396, allocations: 133.8 kB / 0.7882 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.2396, allocations: 33.69 kB / 0.7882 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.2397, allocations: 92.14 kB / 0.7883 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.2397, allocations: 27.69 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.895e-05/0.2398, allocations: 37.7 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.24, allocations: 326.8 kB / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.692e-05/0.24, allocations: 23.98 kB / 0.7887 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2401, allocations: 85 kB / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.2403, allocations: 105.1 kB / 0.7889 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.2403, allocations: 4 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002491/0.2406, allocations: 141.3 kB / 0.789 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2406, allocations: 4.938 kB / 0.7891 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.2406, allocations: 4 kB / 0.7891 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2407, allocations: 3.938 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.2408, allocations: 19.92 kB / 0.7891 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.2408, allocations: 7.984 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.937e-05/0.2409, allocations: 12.08 kB / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.2409, allocations: 12 kB / 0.7891 GB, free: 7.289 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 9.585e-05/0.241, allocations: 120.8 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.2411, allocations: 11.81 kB / 0.7892 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003551/0.2414, allocations: 174.3 kB / 0.7894 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2414, allocations: 4 kB / 0.7894 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2414, allocations: 0 / 0.7894 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.2415, allocations: 4 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005951/0.2421, allocations: 465.8 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2421, allocations: 4 kB / 0.7899 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.95e-05/0.2422, allocations: 8.141 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2422, allocations: 0 / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.2422, allocations: 11.97 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2422, allocations: 3.938 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2422, allocations: 4 kB / 0.7899 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.2425, allocations: 251.2 kB / 0.7901 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.2426, allocations: 85.02 kB / 0.7902 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.2426, allocations: 0 / 0.7902 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.2428, allocations: 11.92 kB / 0.7902 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.2428, allocations: 15.98 kB / 0.7902 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.2429, allocations: 11.92 kB / 0.7902 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.9e-05/0.243, allocations: 114.1 kB / 0.7904 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.71e-07/0.243, allocations: 0 / 0.7904 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003426/0.2433, allocations: 47.98 kB / 0.7904 GB, free: 5.867 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.0008928/0.2442, allocations: 0.8478 MB / 0.7912 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002735/0.2445, allocations: 95.89 kB / 0.7913 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2445, allocations: 0 / 0.7913 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.2446, allocations: 59.89 kB / 0.7914 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.245, allocations: 28.55 kB / 0.7914 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.2468, allocations: 1.669 MB / 0.793 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.2471, allocations: 0.7041 MB / 0.7937 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.574e-05/0.2471, allocations: 16.77 kB / 0.7937 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.566e-05/0.2472, allocations: 31.42 kB / 0.7938 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of SimCode: time 3.8e-07/0.2472, allocations: 0 / 0.7938 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.2679, allocations: 3.412 MB / 0.7971 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.146/7.414, allocations: 11.41 kB / 0.7971 GB, free: 14.97 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)