Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 106.7 kB / 16.36 MB, free: 6.309 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.001138/0.001138, allocations: 188.7 kB / 17.29 MB, free: 5.875 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.393/1.393, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.853/1.853, allocations: 292.3 MB / 0.5496 GB, free: 17.47 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.001427/0.001427, allocations: 75.19 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2529, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002906/0.2558, allocations: 1.527 MB / 0.7863 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.2573, allocations: 0.7954 MB / 0.787 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.881e-05/0.2573, allocations: 0 / 0.787 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.485e-05/0.2574, allocations: 7.875 kB / 0.7871 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.417e-05/0.2575, allocations: 23.84 kB / 0.7871 GB, free: 0.8164 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.0005903/0.2581, allocations: 127.5 kB / 0.7872 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.2583, allocations: 87.7 kB / 0.7873 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.2584, allocations: 12 kB / 0.7873 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.463e-05/0.2585, allocations: 39.89 kB / 0.7873 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.855e-05/0.2586, allocations: 35.84 kB / 0.7874 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.2586, allocations: 15.88 kB / 0.7874 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.2588, allocations: 95.91 kB / 0.7875 GB, free: 420 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.2588, allocations: 23.91 kB / 0.7875 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.173e-05/0.2589, allocations: 39.78 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.2591, allocations: 151.5 kB / 0.7877 GB, free: 204 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2591, allocations: 0 / 0.7877 GB, free: 204 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2591, allocations: 0 / 0.7877 GB, free: 204 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2592, allocations: 0 / 0.7877 GB, free: 204 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.4363/0.6955, allocations: 479.7 kB / 0.7881 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.6956, allocations: 9.375 kB / 0.7881 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.6956, allocations: 12.47 kB / 0.7882 GB, free: 48.78 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.6958, allocations: 175.3 kB / 0.7883 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.372e-05/0.6959, allocations: 39.86 kB / 0.7884 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.6959, allocations: 6.609 kB / 0.7884 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002218/0.6961, allocations: 76.17 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.6961, allocations: 3.938 kB / 0.7884 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.6962, allocations: 3.125 kB / 0.7884 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.6962, allocations: 0 / 0.7884 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.6964, allocations: 48.61 kB / 0.7885 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/0.6969, allocations: 323.4 kB / 0.7888 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.6971, allocations: 71.11 kB / 0.7889 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.6972, allocations: 40.66 kB / 0.7889 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.6973, allocations: 5.891 kB / 0.7889 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.6975, allocations: 98.61 kB / 0.789 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.6975, allocations: 1.844 kB / 0.789 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004851/0.698, allocations: 166.6 kB / 0.7892 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.698, allocations: 52 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.666e-05/0.6982, allocations: 133.3 kB / 0.7893 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.6982, allocations: 35.3 kB / 0.7894 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.6982, allocations: 95.91 kB / 0.7895 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.6982, allocations: 23.62 kB / 0.7895 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.6983, allocations: 32.47 kB / 0.7895 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.561e-05/0.6984, allocations: 323.2 kB / 0.7898 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.6985, allocations: 31.69 kB / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.6986, allocations: 77.17 kB / 0.7899 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.6988, allocations: 104.3 kB / 0.79 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.6988, allocations: 1.031 kB / 0.79 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002777/0.6991, allocations: 144.1 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6991, allocations: 5.438 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.6992, allocations: 5.656 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.6992, allocations: 2.906 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.6993, allocations: 15.36 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.6993, allocations: 3.906 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.6994, allocations: 13.61 kB / 0.7902 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.6995, allocations: 5.812 kB / 0.7902 GB, free: 47.37 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001013/0.6996, allocations: 135.7 kB / 0.7903 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.6996, allocations: 7.625 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.6996, allocations: 15.72 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.6996, allocations: 0 / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.6997, allocations: 0 / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.6997, allocations: 6.531 kB / 0.7904 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005393/0.7002, allocations: 425.4 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.7002, allocations: 0.5625 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-05/0.7003, allocations: 14.56 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.7003, allocations: 0 / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.7003, allocations: 5.375 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.7004, allocations: 2.734 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.7004, allocations: 5.438 kB / 0.7908 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.7007, allocations: 229.6 kB / 0.791 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.233e-05/0.7007, allocations: 87.7 kB / 0.7911 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.7007, allocations: 0 / 0.7911 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.7009, allocations: 13.38 kB / 0.7911 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.7009, allocations: 12.59 kB / 0.7911 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.7009, allocations: 8.234 kB / 0.7911 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.68e-05/0.701, allocations: 98.38 kB / 0.7912 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.701, allocations: 2.781 kB / 0.7912 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000334/0.7013, allocations: 47.12 kB / 0.7913 GB, free: 46.62 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0003625/0.7017, allocations: 168.5 kB / 0.7914 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.702, allocations: 86.22 kB / 0.7915 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.702, allocations: 0.6562 kB / 0.7915 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.7022, allocations: 51.81 kB / 0.7916 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.7025, allocations: 14.02 kB / 0.7916 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.703, allocations: 231.4 kB / 0.7918 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.7031, allocations: 0.6954 MB / 0.7925 GB, free: 45.69 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.7032, allocations: 21.05 kB / 0.7925 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.7032, allocations: 0 / 0.7925 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.003673/0.7069, allocations: 1.866 MB / 0.7943 GB, free: 45.56 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1)