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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 109.4 kB / 15.69 MB, free: 128 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.001059/0.001059, allocations: 189.3 kB / 16.62 MB, free: 6.582 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.666/1.666, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.759/1.759, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.002672/0.002673, allocations: 69.95 kB / 0.6722 GB, free: 25.88 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2957, allocations: 114.5 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003413/0.2992, allocations: 1.554 MB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.3006, allocations: 0.8004 MB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.48e-05/0.3007, allocations: 3.938 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.974e-05/0.3008, allocations: 7.938 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.28e-05/0.3009, allocations: 23.78 kB / 0.7864 GB, free: 10.32 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.0006354/0.3015, allocations: 123.6 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.3016, allocations: 103.6 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.3017, allocations: 12 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.3019, allocations: 55.77 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.065e-05/0.302, allocations: 43.83 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.302, allocations: 8 kB / 0.7868 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.3022, allocations: 95.91 kB / 0.7869 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.153e-05/0.3022, allocations: 23.91 kB / 0.7869 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.065e-05/0.3023, allocations: 43.67 kB / 0.7869 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.3025, allocations: 167.5 kB / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3025, allocations: 0 / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3025, allocations: 0 / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.718e-06/0.3026, allocations: 0 / 0.7871 GB, free: 9.652 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.0008645/0.3034, allocations: 0.504 MB / 0.7876 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3035, allocations: 8.031 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.3035, allocations: 16.84 kB / 0.7876 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.3037, allocations: 178.6 kB / 0.7878 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3037, allocations: 4.375 kB / 0.7878 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.3037, allocations: 16.3 kB / 0.7878 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.3039, allocations: 81.89 kB / 0.7879 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3039, allocations: 4 kB / 0.7879 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.3039, allocations: 4 kB / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3039, allocations: 0 / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.3041, allocations: 43.97 kB / 0.7879 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005732/0.3047, allocations: 340.6 kB / 0.7882 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.3049, allocations: 78.67 kB / 0.7883 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.009e-05/0.305, allocations: 44.83 kB / 0.7884 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.305, allocations: 3.984 kB / 0.7884 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/0.3052, allocations: 99.33 kB / 0.7885 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 3.126e-06/0.3053, allocations: 3.984 kB / 0.7885 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004251/0.3057, allocations: 177.8 kB / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.219e-05/0.3058, allocations: 59.39 kB / 0.7887 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3059, allocations: 145.5 kB / 0.7888 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.3059, allocations: 25.7 kB / 0.7889 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.306, allocations: 96.12 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.306, allocations: 23.72 kB / 0.789 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.3061, allocations: 33.7 kB / 0.789 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3062, allocations: 326.8 kB / 0.7893 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-05/0.3063, allocations: 31.98 kB / 0.7893 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.3064, allocations: 81 kB / 0.7894 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.3067, allocations: 101.1 kB / 0.7895 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.3067, allocations: 7.938 kB / 0.7895 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002413/0.307, allocations: 141.3 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.307, allocations: 4 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.307, allocations: 4 kB / 0.7897 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.307, allocations: 0 / 0.7897 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.3072, allocations: 19.92 kB / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.3072, allocations: 12.08 kB / 0.7897 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.566e-05/0.3073, allocations: 12 kB / 0.7897 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.3073, allocations: 4 kB / 0.7897 GB, free: 6.684 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 8.737e-05/0.3074, allocations: 128.6 kB / 0.7898 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.3074, allocations: 11.91 kB / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004107/0.3078, allocations: 169.3 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3079, allocations: 8 kB / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3079, allocations: 0 / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3079, allocations: 0 / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006349/0.3085, allocations: 466.3 kB / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3085, allocations: 0 / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.3086, allocations: 11.98 kB / 0.7905 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3086, allocations: 7.938 kB / 0.7905 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.3086, allocations: 4 kB / 0.7905 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3086, allocations: 0 / 0.7905 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3086, allocations: 8.078 kB / 0.7905 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.309, allocations: 255.2 kB / 0.7907 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.309, allocations: 85.02 kB / 0.7908 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.309, allocations: 0 / 0.7908 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.3092, allocations: 15.98 kB / 0.7908 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.3092, allocations: 11.92 kB / 0.7908 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.3092, allocations: 8 kB / 0.7908 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.8e-05/0.3093, allocations: 114 kB / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3093, allocations: 0 / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003055/0.3096, allocations: 44 kB / 0.791 GB, free: 5.262 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.0002916/0.3099, allocations: 164.1 kB / 0.7912 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003443/0.3103, allocations: 95.83 kB / 0.7912 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3103, allocations: 4 kB / 0.7913 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.3104, allocations: 55.97 kB / 0.7913 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002952/0.3107, allocations: 31.84 kB / 0.7913 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004642/0.3112, allocations: 247.3 kB / 0.7916 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.3117, allocations: 0.6963 MB / 0.7922 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.79e-05/0.3117, allocations: 12.55 kB / 0.7923 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.835e-05/0.3118, allocations: 19.42 kB / 0.7923 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of SimCode: time 2.7e-07/0.3118, allocations: 0 / 0.7923 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of Templates: time 0.004808/0.3166, allocations: 1.995 MB / 0.7942 GB, free: 1.926 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (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 & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)