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.001491/0.001498, allocations: 106.5 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 192.4 kB / 17.29 MB, free: 5.516 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.805/1.805, allocations: 292.3 MB / 0.5496 GB, free: 17.44 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.001449/0.001449, allocations: 70.25 kB / 0.6729 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2396, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003027/0.2427, allocations: 1.531 MB / 0.7863 GB, free: 1.613 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2442, allocations: 0.8033 MB / 0.7871 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.628e-05/0.2442, allocations: 4 kB / 0.7871 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.68e-05/0.2443, allocations: 7.875 kB / 0.7871 GB, free: 0.7891 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.499e-05/0.2444, allocations: 19.73 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 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.0006039/0.245, allocations: 139.6 kB / 0.7872 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.2452, allocations: 99.64 kB / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2453, allocations: 15.98 kB / 0.7873 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.892e-05/0.2454, allocations: 39.84 kB / 0.7874 GB, free: 492 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.2455, allocations: 55.7 kB / 0.7874 GB, free: 436 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.2455, allocations: 8 kB / 0.7874 GB, free: 428 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.2457, allocations: 91.91 kB / 0.7875 GB, free: 336 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.2458, allocations: 23.97 kB / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.815e-05/0.2458, allocations: 47.72 kB / 0.7876 GB, free: 264 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.2461, allocations: 167.5 kB / 0.7877 GB, free: 96 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2461, allocations: 0 / 0.7877 GB, free: 96 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2461, allocations: 0 / 0.7877 GB, free: 96 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2461, allocations: 0 / 0.7877 GB, free: 96 kB / 0.6544 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.3474/0.5935, allocations: 0.4934 MB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.5935, allocations: 8.562 kB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.5936, allocations: 11.78 kB / 0.7882 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.5937, allocations: 178.1 kB / 0.7884 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.5937, allocations: 7.781 kB / 0.7884 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.5938, allocations: 6.5 kB / 0.7884 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.5939, allocations: 82.75 kB / 0.7885 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.594, allocations: 0 / 0.7885 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.594, allocations: 9.938 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.594, allocations: 3.328 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.5941, allocations: 48.84 kB / 0.7886 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.5946, allocations: 335.6 kB / 0.7889 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.5949, allocations: 86.06 kB / 0.789 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.514e-05/0.595, allocations: 40.23 kB / 0.789 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.595, allocations: 4.125 kB / 0.789 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.5952, allocations: 105 kB / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 2.094e-06/0.5953, allocations: 0 / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003999/0.5957, allocations: 172.5 kB / 0.7893 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.5957, allocations: 59.03 kB / 0.7893 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.5958, allocations: 154.8 kB / 0.7895 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.5958, allocations: 27.27 kB / 0.7895 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.5959, allocations: 96.55 kB / 0.7896 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.5959, allocations: 29.59 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.596, allocations: 35.62 kB / 0.7897 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.233e-05/0.596, allocations: 320.8 kB / 0.79 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.5961, allocations: 27.42 kB / 0.79 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.073e-05/0.5962, allocations: 73.53 kB / 0.7901 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.5963, allocations: 109.5 kB / 0.7902 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5963, allocations: 3.141 kB / 0.7902 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002182/0.5966, allocations: 139.4 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.5966, allocations: 7.875 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.5966, allocations: 0 / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.5966, allocations: 5.859 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.5967, allocations: 21.33 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.5968, allocations: 2.625 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.721e-05/0.5969, allocations: 12.09 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.5969, allocations: 6.5 kB / 0.7904 GB, free: 47.25 MB / 0.6544 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 7.177e-05/0.597, allocations: 125.9 kB / 0.7905 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.597, allocations: 12.28 kB / 0.7905 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.5973, allocations: 177.6 kB / 0.7907 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.5973, allocations: 2.625 kB / 0.7907 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5973, allocations: 3.172 kB / 0.7907 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.5973, allocations: 3.031 kB / 0.7907 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005143/0.5979, allocations: 465.6 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5979, allocations: 2.688 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.834e-05/0.598, allocations: 13 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.598, allocations: 0 / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.598, allocations: 4.469 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.598, allocations: 4 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.598, allocations: 0 / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.5983, allocations: 255.2 kB / 0.7914 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.566e-05/0.5983, allocations: 84.67 kB / 0.7915 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.5983, allocations: 1.656 kB / 0.7915 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.5985, allocations: 15.59 kB / 0.7915 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.5985, allocations: 19 kB / 0.7915 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.5986, allocations: 7.688 kB / 0.7915 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.108e-05/0.5986, allocations: 110.8 kB / 0.7916 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5986, allocations: 0.9375 kB / 0.7916 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003187/0.5989, allocations: 44.44 kB / 0.7916 GB, free: 46.48 MB / 0.6544 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.000312/0.5993, allocations: 164 kB / 0.7918 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002413/0.5995, allocations: 94.86 kB / 0.7919 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5995, allocations: 2.938 kB / 0.7919 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.5996, allocations: 56.91 kB / 0.7919 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.6, allocations: 18.11 kB / 0.792 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.6004, allocations: 234.5 kB / 0.7922 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.6005, allocations: 0.7025 MB / 0.7929 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.503e-05/0.6005, allocations: 12.58 kB / 0.7929 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.6006, allocations: 18.7 kB / 0.7929 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.6006, allocations: 0 / 0.7929 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of Templates: time 0.004427/0.605, allocations: 2.003 MB / 0.7949 GB, free: 45.48 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)